/* ============================================================
   Irrigation Innovations LLC — Design System
   Brand: #0D84B0 (blue) / #0B3142 (dark navy)
   Font: Inter (modern-sans)
   Vibe: clean-modern
   ============================================================ */

/* --- 1. CSS Custom Properties --- */
:root {
  --color-primary: #0D84B0;
  --color-secondary: #0B3142;
  --color-accent: #0FA3D9;
  --color-dark: #071E29;
  --color-light-blue: #E8F4F8;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-heading: #1a1a1a;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-footer-link: #90C5D9;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-padding: 80px;
  --section-padding-sm: 48px;
  --container-width: 1140px;
  --gap: 32px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-btn: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--color-text-muted); }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.lead { font-size: 1.125rem; line-height: 1.8; color: var(--color-text-muted); }
strong { font-weight: 600; }

/* --- 4. Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-padding) 0; }
.section--dark {
  background-color: var(--color-secondary);
  color: #FFFFFF;
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: #FFFFFF; }
.section--dark p { color: rgba(255,255,255,0.85); }
.section--dark .section-label { color: var(--color-accent); }
.section--dark .muted { color: rgba(255,255,255,0.7); }
.section--alt { background-color: var(--color-bg-alt); }
.section--primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}
.section--primary h1, .section--primary h2, .section--primary h3,
.section--primary h4 { color: #FFFFFF; }
.section--primary p { color: rgba(255,255,255,0.9); }
.section--primary .section-label { color: rgba(255,255,255,0.8); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--column { flex-direction: column; }
.flex--gap { gap: var(--gap); }
.flex--wrap { flex-wrap: wrap; }

/* --- 5. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}
.btn--white {
  background-color: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
}
.btn--white:hover {
  background-color: rgba(255,255,255,0.9);
  color: var(--color-secondary);
}
.btn--outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background-color: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Dark section button overrides */
.section--dark .btn--secondary {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
}
.section--dark .btn--secondary:hover {
  background-color: #FFFFFF;
  color: var(--color-secondary);
  border-color: #FFFFFF;
}

/* --- 6. Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 48px; width: auto; }
.header__logo a { display: flex; align-items: center; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header__nav > ul > li { position: relative; }
.header__nav a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.header__nav a:hover { color: var(--color-primary); background-color: var(--color-light-blue); }
.header__nav a.active { color: var(--color-primary); font-weight: 600; }
.header__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-secondary);
  text-decoration: none;
}
.header__phone:hover { color: var(--color-primary); }
.header__phone svg { width: 18px; height: 18px; color: var(--color-primary); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 80px 24px 32px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav a.active { color: var(--color-primary); font-weight: 600; }
.mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; }
.mobile-nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
  text-decoration: none;
}

/* --- 7. Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.hero--home { min-height: 600px; }
.hero--inner { min-height: 350px; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,49,66,0.88) 0%, rgba(13,132,176,0.65) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero h1 { color: #FFFFFF; font-size: 3rem; max-width: 720px; }
.hero--inner h1 { font-size: 2.5rem; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 600px; }
.hero .section-label { color: var(--color-light-blue); }
.hero .breadcrumbs { margin-bottom: 16px; }
.hero .breadcrumbs a { color: rgba(255,255,255,0.75); }
.hero .breadcrumbs a:hover { color: #FFFFFF; }
.hero .breadcrumbs .current { color: rgba(255,255,255,0.55); }
.hero .btn-group { margin-top: 28px; }

/* --- 8. Breadcrumbs --- */
.breadcrumbs { font-size: 14px; margin-bottom: 24px; }
.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .separator { margin: 0 8px; color: var(--color-text-muted); opacity: 0.5; }
.breadcrumbs .current { color: var(--color-text-muted); opacity: 0.7; }

/* --- 9. Cards --- */
.card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  height: 100%;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 9;
  margin: -32px -32px 24px -32px;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-light-blue);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--color-text-muted); font-size: 15px; margin-bottom: 16px; }
.card .btn { margin-top: auto; }
.card--flat {
  box-shadow: none;
  border: 1px solid var(--color-border);
}
.card--flat:hover { box-shadow: var(--shadow); }
.card--link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.card--link:hover { color: inherit; }

/* --- 10. Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background-color: var(--color-light-blue);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-heading); }
.service-card p { color: var(--color-text-muted); font-size: 15px; line-height: 1.65; flex-grow: 1; }
.service-card .btn { margin-top: 20px; align-self: flex-start; }

/* --- 11. Areas Grid --- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
}
.area-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--color-primary);
}
.area-card svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }

/* --- 12. Trust Bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.trust-item { text-align: center; }
.trust-item__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.trust-item__label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.section--dark .trust-item__number { color: var(--color-accent); }
.section--dark .trust-item__label { color: rgba(255,255,255,0.7); }

/* --- 13. Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.testimonial-card {
  background-color: var(--color-bg-alt);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #F59E0B;
}
.testimonial-card__stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-card__text {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 20px;
  font-size: 15px;
}
.testimonial-card__author { font-weight: 600; color: var(--color-heading); font-size: 15px; }
.testimonial-card__role { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* --- 14. FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 16px;
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-light-blue);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
}
.faq-item.active .faq-item__icon { transform: rotate(45deg); background-color: var(--color-primary); color: #FFFFFF; }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-item__answer { max-height: 500px; }
.faq-item__answer-inner {
  padding: 0 0 20px 0;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 15px;
}

/* --- 15. Process / Steps --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: steps; }
.process-step {
  text-align: center;
  counter-increment: steps;
  position: relative;
  padding: 24px 16px;
}
.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.process-step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--color-text-muted); line-height: 1.65; }
.section--dark .process-step__number { background-color: var(--color-accent); color: var(--color-dark); }

/* --- 16. Stats / Callout --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat-item { text-align: center; padding: 24px 16px; }
.stat-item__number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.section--dark .stat-item__number { color: #FFFFFF; }
.section--dark .stat-item__label { color: rgba(255,255,255,0.7); }
.section--primary .stat-item__number { color: #FFFFFF; }
.section--primary .stat-item__label { color: rgba(255,255,255,0.8); }

.callout {
  background-color: var(--color-light-blue);
  border-radius: var(--radius-lg);
  padding: 40px;
  border-left: 4px solid var(--color-primary);
}
.callout h3 { color: var(--color-secondary); }
.callout p { color: var(--color-text); }

/* --- 17. Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,132,176,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group--error input,
.form-group--error textarea,
.form-group--error select { border-color: var(--color-error); }
.form-group__error { font-size: 13px; color: var(--color-error); margin-top: 4px; }
.form-group--required label::after { content: " *"; color: var(--color-error); }

/* --- 18. SMS Consent --- */
.sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 16px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.sms-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.sms-consent__label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.sms-consent__label a { color: var(--color-primary); text-decoration: underline; }

/* --- 19. Footer --- */
.footer {
  background-color: var(--color-secondary);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand { }
.footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.7);
}
.footer__social a:hover { background-color: var(--color-primary); color: #FFFFFF; }
.footer__social a svg { width: 18px; height: 18px; }
.footer h4 {
  color: #FFFFFF;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a {
  color: var(--color-footer-link);
  font-size: 14px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer a:hover { color: #FFFFFF; }
.footer .btn--primary { margin-top: 12px; font-size: 14px; padding: 10px 20px; }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer__contact-item svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer__contact-item a { color: var(--color-footer-link); }
.footer__contact-item a:hover { color: #FFFFFF; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.footer__bottom div:first-child { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer__legal a:hover { color: rgba(255,255,255,0.8); }

/* --- 20. Wave Divider --- */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  margin: -1px 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 21. Image System --- */
.img-placeholder {
  background-color: var(--color-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  width: 100%;
  height: 100%;
  min-height: 200px;
}
.img-container { position: relative; overflow: hidden; }
.img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.img-real.loaded { opacity: 1; }

/* --- 22. Utilities --- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--color-primary); }
.text-white { color: #FFFFFF; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 720px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- 23. Blog --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.blog-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}
.blog-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.blog-card__meta span { display: flex; align-items: center; gap: 4px; }
.blog-card h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--color-heading); }
.blog-card__excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}
.blog-card .btn { align-self: flex-start; margin-top: auto; }

/* Blog post single */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post__header { margin-bottom: 32px; }
.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.blog-post h2 { margin-top: 40px; margin-bottom: 16px; }
.blog-post h3 { margin-top: 32px; margin-bottom: 12px; }
.blog-post p { margin-bottom: 20px; font-size: 16px; line-height: 1.8; }
.blog-post ul, .blog-post ol { margin: 0 0 20px 24px; }
.blog-post ul { list-style: disc; }
.blog-post ol { list-style: decimal; }
.blog-post li { margin-bottom: 8px; line-height: 1.7; }
.blog-post img { border-radius: var(--radius); margin: 24px 0; }
.blog-post blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background-color: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* --- 24. Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,49,66,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__caption {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: background-color var(--transition);
}
.lightbox__close:hover { background-color: rgba(255,255,255,0.3); }

/* --- 25. Thanks Message --- */
.thanks-msg {
  text-align: center;
  padding: 48px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.thanks-msg__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(16,185,129,0.1);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.thanks-msg__icon svg { width: 32px; height: 32px; }
.thanks-msg h2 { color: var(--color-success); font-size: 1.75rem; }
.thanks-msg p { color: var(--color-text-muted); font-size: 16px; }

/* --- 26. 404 Page --- */
.error-page {
  text-align: center;
  padding: 80px 24px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page__code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-light-blue);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 { font-size: 2rem; margin-bottom: 12px; }
.error-page p { color: var(--color-text-muted); font-size: 1.125rem; margin-bottom: 32px; max-width: 480px; }

/* --- 27. Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background-color: var(--color-accent); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* --- 28. Content Page Helpers --- */
.content-section { padding: var(--section-padding) 0; }
.content-section h2 { margin-bottom: 20px; }
.content-section p + h2 { margin-top: 40px; }
.content-section ul, .content-section ol { margin: 0 0 20px 24px; }
.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }
.content-section li { margin-bottom: 8px; line-height: 1.7; color: var(--color-text); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: #FFFFFF;
}
.cta-banner h2 { color: #FFFFFF; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Two-column content with image */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.content-with-image--reverse { direction: rtl; }
.content-with-image--reverse > * { direction: ltr; }
.content-with-image__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-with-image__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Checklist */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.65;
  color: var(--color-text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-light-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='%230D84B0' d='M3.5 6.1L1.2 3.8l-.7.7L3.5 7.5l7-7-.7-.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- 28b. Dropdown Navigation --- */
.dropdown { position: relative; }
.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 110;
  border: 1px solid var(--color-border);
}
.dropdown:hover .dropdown__menu { display: block; }
.dropdown__menu li { margin-bottom: 0; }
.dropdown__menu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 0;
  white-space: nowrap;
}
.dropdown__menu a:hover { color: var(--color-primary); background-color: var(--color-light-blue); }

/* --- 28c. Mobile Nav Open State --- */
.header.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.header.nav-open ~ .mobile-nav { transform: translateX(0); }
.header.nav-open ~ .nav-overlay { opacity: 1; visibility: visible; }

/* --- 28d. Mobile Nav CTA --- */
.mobile-nav__cta { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }

/* --- 28e. Footer Grid Alias --- */
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

/* --- 28f. Content With Image Variants --- */
.content-with-image__text { }
.content-with-image__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-with-image__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 28g. Service Card Sub-Elements --- */
.service-card__title { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-heading); }
.service-card__text { color: var(--color-text-muted); font-size: 15px; line-height: 1.65; flex-grow: 1; }

/* --- 28h. Blog Card Sub-Elements --- */
.blog-card__title { font-size: 1.125rem; margin-bottom: 8px; color: var(--color-heading); }
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--color-primary); }
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
}
.blog-card__link:hover { color: var(--color-accent); }

/* --- 28i. Testimonial Card Service Date --- */
.testimonial-card__service { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* --- 28j. Thank You State --- */
.thank-you {
  text-align: center;
  padding: 48px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.thank-you h2 { color: var(--color-success); font-size: 1.75rem; }
.thank-you p { color: var(--color-text-muted); font-size: 16px; }

/* --- 29. Print Styles --- */
@media print {
  .header, .footer, .nav-toggle, .nav-overlay, .mobile-nav,
  .scroll-top, .btn, .btn-group, .cta-banner, .hero-overlay { display: none !important; }
  body { font-size: 12pt; line-height: 1.5; color: #000; }
  h1, h2, h3, h4, h5, h6 { color: #000; page-break-after: avoid; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero h1 { color: #000; }
  .section { padding: 20px 0; }
  .container { max-width: 100%; padding: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  img { max-width: 100% !important; }
}

/* --- 30. Responsive — Tablet (768px - 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 64px;
    --gap: 24px;
  }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero--inner h1 { font-size: 2rem; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-image { gap: 32px; }
  .dropdown__menu { min-width: 200px; }
}

/* --- 31. Responsive — Mobile (< 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --gap: 20px;
  }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .hero { min-height: 400px; }
  .hero--home { min-height: 480px; }
  .hero--inner { min-height: 280px; }
  .hero h1 { font-size: 2rem; }
  .hero--inner h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }

  /* Header mobile */
  .header__nav { display: none; }
  .header__cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .dropdown__menu { display: none !important; }

  /* Grid collapses */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { gap: 24px; }
  .trust-item__number { font-size: 2rem; }

  /* Footer stacks */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }

  /* Content with image stacks */
  .content-with-image { grid-template-columns: 1fr; gap: 24px; }
  .content-with-image--reverse { direction: ltr; }

  /* CTA banner */
  .cta-banner { padding: 32px 24px; }

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

  /* Button group wraps */
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }

  /* Card image full-bleed on mobile */
  .card { padding: 24px; }
  .card-img { margin: -24px -24px 20px -24px; }

  /* FAQ padding */
  .faq-item__question { padding: 16px 0; font-size: 15px; }

  /* Stats */
  .stat-item__number { font-size: 2.25rem; }

  /* Error page */
  .error-page__code { font-size: 5rem; }
}

/* --- 32. Responsive — Small Mobile (< 480px) --- */
@media (max-width: 480px) {
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero--inner h1 { font-size: 1.5rem; }
  .hero--home { min-height: 420px; }
  .container { padding: 0 16px; }
  .section-label { font-size: 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; gap: 20px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .process-step__number { width: 48px; height: 48px; font-size: 1.125rem; }
  .footer { padding: 48px 0 0; }
  .error-page__code { font-size: 4rem; }
  .callout { padding: 24px; }
  .cta-banner { padding: 28px 20px; }
}
