/* ============================================
   Smith Bros Roofing - Main Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #7B2FBE;
  --primary-dark: #5B1A9A;
  --primary-light: #EDE9FE;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --dark: #111827;
  --medium: #374151;
  --muted: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { color: var(--medium); line-height: 1.8; }

.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.logo-text .brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--medium);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--medium);
  transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-menu .menu-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  margin-left: 15px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 1001;
  padding: 80px 24px 100px;
  overflow-y: auto;
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--primary); }

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-menu .mobile-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

/* Hero: left edge aligns with navbar logo, extends full width to the right */
.hero > .container {
  max-width: none;
  width: 100%;
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 175px 0 80px;
  overflow: hidden;
  background: url('../images/hero-intro.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1;
}

.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #c084fc;
  color: var(--dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 span {
  color: #c084fc;
}

.hero .btn-accent {
  background: #9333ea;
  border-color: #9333ea;
  color: #fff;
}
.hero .btn-accent:hover {
  background: #7e22ce;
  border-color: #7e22ce;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 760px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.05) 10px,
    rgba(255,255,255,0.05) 20px
  );
}

/* Page hero (smaller) */
.page-hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #1a0533 0%, #3B0764 40%, #5B21B6 70%, #7C3AED 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='xMidYMid slice'%3E%3Ccircle cx='1150' cy='40' r='260' fill='rgba(167,139,250,0.08)'/%3E%3Ccircle cx='80' cy='260' r='210' fill='rgba(109,40,217,0.08)'/%3E%3Cpath d='M-100,240 Q300,130 660,195 Q1000,255 1310,135 Q1430,85 1550,125 L1550,185 Q1430,145 1310,195 Q1000,315 660,255 Q300,195 -100,305Z' fill='rgba(255,255,255,0.06)'/%3E%3Cpath d='M-100,140 Q260,55 560,115 Q860,175 1160,65 Q1360,5 1550,55 L1550,98 Q1360,48 1160,108 Q860,218 560,158 Q260,98 -100,183Z' fill='rgba(255,255,255,0.05)'/%3E%3Cpath d='M-100,238 Q300,128 660,193 Q1000,253 1310,133 Q1430,83 1550,123' stroke='rgba(255,255,255,0.22)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M-100,138 Q260,53 560,113 Q860,173 1160,63 Q1360,3 1550,53' stroke='rgba(255,255,255,0.16)' stroke-width='1' fill='none'/%3E%3C/svg%3E") center/cover no-repeat,
    radial-gradient(ellipse 50% 120% at 88% 50%, rgba(167,139,250,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 120% at 12% 50%, rgba(109,40,217,0.1) 0%, transparent 70%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a, .breadcrumb span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.services-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.services-grid--centered .service-card {
  flex: 0 0 260px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-carousel {
  margin: -36px -28px 24px;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 24px;
}

.service-card .card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.service-card:hover .card-link {
  gap: 10px;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */

/* Flexbox so partial last rows center rather than stretch */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 0 1 calc(25% - 24px);
  min-width: 220px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: white;
}

.feature-text h4 {
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 0.9rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 40px; }

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-style: italic;
  color: var(--medium);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.reviewer-info .name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.reviewer-info .date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   CONTACT FORM & INFO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text p {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
}

.contact-item-text a:hover { color: var(--primary); }

.contact-form {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* ============================================
   ABOUT PAGE SPECIFICS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.about-image-badge .badge-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-image-badge .badge-text {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.value-check {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.value-item span {
  font-weight: 500;
  color: var(--medium);
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-detail-content h2 {
  margin-bottom: 20px;
}

.service-detail-content p {
  margin-bottom: 20px;
}

.service-list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--medium);
  font-size: 0.95rem;
}

.service-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.service-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info box */
.info-box {
  background: var(--primary-light);
  border: 1px solid rgba(123, 47, 190, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.info-box p {
  font-size: 0.9rem;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--primary);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

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

.footer-brand .logo-icon {
  background: var(--primary);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 16px 0 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease;
  font-size: 1rem;
  font-weight: 700;
}

.social-btn:hover { background: var(--primary); }

.footer-col h5 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover { color: white; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item .icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-contact-item a:hover { color: white; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: white; }

/* ============================================
   BANNER / NOTICE BAR
   ============================================ */
.top-bar {
  background: var(--primary);
  padding: 10px 0;
  text-align: center;
}

.top-bar p {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.step-item {
  flex: 0 0 220px;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-item h4 {
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.9rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-item.open .faq-toggle {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 0.95rem;
}

/* ============================================
   COVERAGE AREA
   ============================================ */
.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coverage-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   TWO-COLUMN UTILITY GRID
   ============================================ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.two-col-grid.align-center { align-items: center; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- 1024px and below --- */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-grid { grid-template-columns: 1fr; }

  /* Reset rtl direction used for alternating service layouts */
  .service-detail-grid,
  .service-detail-grid > * { direction: ltr; }

  /* Feature items wider on tablet */
  .feature-item { flex: 0 1 calc(50% - 16px); }
}

/* --- 768px and below --- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn { display: none; }

  /* Hero */
  .hero { min-height: auto; padding: 165px 0 60px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat .stat-number { font-size: 1.6rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header.centered { margin-bottom: 40px; }

  /* Services grid - 2 columns on tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Steps grid */
  .steps-grid { gap: 28px; }

  /* Features - single column on mobile */
  .feature-item { flex: 0 1 100%; }

  /* Stats */
  .stats-bar { padding: 36px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Footer */
  .footer { padding: 56px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Contact */
  .about-image-badge { display: none; }
  .contact-form { padding: 24px; }

  /* CTA */
  .cta-section { padding: 60px 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Service detail - stack on mobile */
  .service-visual { aspect-ratio: 1/1; }
}

/* --- 480px and below --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .page-hero { padding: 110px 0 52px; }

  /* Hero */
  .hero > .container { padding-left: 16px; padding-right: 16px; }
  .hero-badge { font-size: 0.78rem; padding: 6px 12px; }
  .hero-stats { gap: 16px; }
  .hero-stat .stat-number { font-size: 1.4rem; }

  /* Single column cards on very small screens */
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .number { font-size: 2rem; }

  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Buttons full width */
  .btn-lg { padding: 16px 24px; font-size: 1rem; }

  /* Top bar smaller */
  .top-bar p { font-size: 0.78rem; }

  /* Floating widget */
  .float-widget { bottom: 12px; right: 12px; }
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,7,100,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item-overlay svg {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-item-overlay { background: rgba(59,7,100,0.55); }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-counter {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 16px;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
