/* ============================================
   Capital Roofing Solutions - Premium Static Site
   ============================================ */

:root {
  --red: #E31837;
  --red-dark: #b81230;
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray-900: #111111;
  --gray-800: #1f1f1f;
  --gray-700: #2d2d2d;
  --gray-600: #444444;
  --gray-500: #666666;
  --gray-400: #888888;
  --gray-300: #aaaaaa;
  --gray-200: #d4d4d4;
  --gray-100: #f0f0f0;
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Oswald', 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--red); }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  transition: height 0.3s;
}

.navbar.scrolled .logo-img {
  height: 55px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  background: var(--red);
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-phone:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--gray-900);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(227, 24, 55, 0.15);
  border: 1px solid rgba(227, 24, 55, 0.3);
  color: var(--red);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 24, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Section Headers
   ============================================ */
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .service-line {
  width: 100%;
  background: var(--red);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(227, 24, 55, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--red);
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: var(--red);
  color: var(--white);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gray-200);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Storm Damage Banner
   ============================================ */
.storm-banner {
  position: relative;
  overflow: hidden;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storm-radar-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.radar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.storm-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.storm-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
}

.storm-icon {
  color: var(--white);
  opacity: 0.9;
}

.storm-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.storm-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Radar sweep animation */
.radar-sweep {
  transform-origin: 200px 100px;
  animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image-bg {
  position: absolute;
  inset: 0;
  background: url('../images/family-3.JPG') center/cover no-repeat;
}

.about-image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.3), rgba(10,10,10,0.1));
}

.about-image-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-logo {
  width: 80%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.exp-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.exp-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.about-text {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 40px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}

/* ============================================
   Family Owned Section
   ============================================ */
.family-section {
  padding: 100px 0;
  background: var(--gray-100);
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.family-content {
  order: 1;
}

.family-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.family-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.family-value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.family-value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(227, 24, 55, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.family-value h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.family-value p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}

.family-images {
  order: 2;
  position: relative;
}

.family-img-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.family-img-main img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.family-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--red);
  color: var(--white);
  padding: 20px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.family-badge-text {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
}

.family-badge-text strong {
  font-size: 20px;
  display: block;
}

@media (max-width: 768px) {
  .family-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .family-images { order: 1; }
  .family-content { order: 2; }
  .family-img-badge {
    bottom: -15px;
    left: auto;
    right: 20px;
  }
  .family-section { padding: 60px 0 80px; }
}

/* ============================================
   HAAG Certification Section
   ============================================ */
.certification {
  padding: 120px 0;
  background: linear-gradient(135deg, #0c1929 0%, #1a2d45 100%);
  position: relative;
  overflow: hidden;
}

.certification::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(227, 24, 55, 0.05), transparent 70%);
}

.cert-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 80px;
  align-items: center;
}

.cert-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cert-badge-wrapper::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
}

.cert-badge-img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  position: relative;
  z-index: 1;
}

.certification .section-title {
  color: var(--white);
}

.cert-text {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 36px;
}

.cert-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cert-benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cert-benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(227, 24, 55, 0.15);
  border: 1px solid rgba(227, 24, 55, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.cert-benefit h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.cert-benefit p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ============================================
   Projects / Gallery Section
   ============================================ */
.projects {
  padding: 120px 0;
  background: var(--gray-900);
}

.projects .section-title {
  color: var(--white);
}

.projects .section-desc {
  color: rgba(255,255,255,0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

.project-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.project-item:nth-child(4) { grid-column: span 2; }

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-label {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  padding: 120px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--gray-100);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card.featured {
  background: var(--gray-900);
  border-color: var(--gray-700);
}

.testimonial-card.featured .testimonial-text {
  color: rgba(255,255,255,0.8);
}

.testimonial-card.featured .author-name {
  color: var(--white);
}

.testimonial-card.featured .author-date {
  color: rgba(255,255,255,0.4);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
}

.author-date {
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: var(--red);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-title .text-red {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 6px;
}

.cta-text {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}

.cta-banner .btn-primary:hover {
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(227, 24, 55, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.contact-card a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: var(--red);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--gray-100);
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(227, 24, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--red);
  padding-left: 8px;
}

.footer-contact p {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--red);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid .project-item:nth-child(1) { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 250px 1fr; gap: 48px; }
  .cert-badge-img { width: 220px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--gray-900);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.active { right: 0; }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Keep phone visible but make it compact */
  .nav-phone {
    font-size: 0;
    padding: 10px;
    border-radius: 50%;
    min-width: unset;
  }
  .nav-phone svg { margin: 0; }

  .hamburger { display: flex; }

  .logo-img { height: 55px; }
  .navbar.scrolled .logo-img { height: 45px; }

  .hero-content { padding: 140px 24px 60px; }
  .hero-stats { display: none; }
  .hero-title { font-size: 48px; }

  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .cert-badge-img { width: 200px; }
  .cert-benefits { align-items: center; }
  .cert-benefit { text-align: left; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid .project-item:nth-child(1) { grid-column: span 2; }

  .contact-form-wrapper { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .scroll-indicator { display: none; }

  .about-features { grid-template-columns: 1fr; }

  .experience-badge {
    right: 20px;
    bottom: -10px;
  }

  /* Storm banner mobile */
  .storm-banner { height: 180px; }
  .storm-banner-content { padding: 32px 20px; }
  .storm-title { letter-spacing: 2px; }
  .storm-subtitle { letter-spacing: 2px; font-size: 0.8rem; }

  /* Sticky mobile CTA bar */
  .mobile-cta {
    display: flex !important;
  }

  /* Add bottom padding so footer content isn't hidden behind sticky CTA */
  .footer { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 42px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }

  .logo-img { height: 48px; }
  .navbar.scrolled .logo-img { height: 40px; }

  .storm-banner { height: 160px; }
  .storm-title { letter-spacing: 1px; }

  .hero-subtitle { font-size: 15px; }

  .stat-number { font-size: 20px; }
  .stat-label { font-size: 7px; }
}

/* ============================================
   Sticky Mobile CTA Bar
   ============================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--red);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 100%;
}

.mobile-cta svg {
  flex-shrink: 0;
}
