/* ==========================================================================
   CMM LLC — Main Stylesheet
   cmmllc.com
   ========================================================================== */

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-orange:       #E85500;
  --color-orange-hover: #C94A00;
  --color-orange-light: #FFF0E8;
  --color-black:        #1A1A1A;
  --color-gray-dark:    #333333;
  --color-gray-mid:     #666666;
  --color-gray-border:  #DDDDDD;
  --color-gray-light:   #F5F5F5;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  /* Layout */
  --nav-height:     72px;
  --container-max:  1200px;
  --container-pad:  1.5rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* Visually hidden — for accessibility / form honeypot */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p { line-height: 1.7; }


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 5rem;
}

.section--gray {
  background-color: var(--color-gray-light);
}

.section--dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--orange {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.section--orange h2,
.section--orange p {
  color: var(--color-white);
}

/* Section Header — centered intro for most sections */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-gray-mid);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.section--dark .section-header p,
.section--orange .section-header p {
  color: rgba(255, 255, 255, 0.85);
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.875rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary:hover {
  background-color: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--ghost:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-orange);
  border-color: var(--color-orange);
}

.btn--outline:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-orange);
  border-color: var(--color-white);
}

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

/* --- Service Cards (4-col grid) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

/* 8-card grid for land services */
.card-grid--8 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-orange);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-orange);
  margin-bottom: 1.125rem;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.service-card p {
  color: var(--color-gray-mid);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Stat Bar --- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-border);
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--color-gray-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--color-orange);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.stat-item__label {
  font-size: 0.8125rem;
  color: var(--color-gray-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- City Chips --- */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.city-chip {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* --- Checklist --- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-dark);
}

.checklist__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-orange);
  margin-top: 0.1em;
}

.checklist__icon svg {
  width: 100%;
  height: 100%;
}

/* --- Gateway Cards (hub homepage) --- */
.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.gateway-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
  border-bottom: 5px solid var(--color-orange);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gateway-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.gateway-card__icon {
  width: 60px;
  height: 60px;
  color: var(--color-orange);
}

.gateway-card__icon svg {
  width: 100%;
  height: 100%;
}

.gateway-card h2 {
  font-size: 1.625rem;
  margin-bottom: 0;
}

.gateway-card p {
  color: var(--color-gray-mid);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* --- Service Detail Sections (PM page) --- */
.service-detail {
  padding-block: 4.5rem;
}

.service-detail:nth-child(odd) {
  background-color: var(--color-white);
}

.service-detail:nth-child(even) {
  background-color: var(--color-gray-light);
}

.service-detail__inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service-detail__icon {
  width: 72px;
  height: 72px;
  color: var(--color-orange);
  background: var(--color-orange-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  flex-shrink: 0;
}

.service-detail__icon svg {
  width: 100%;
  height: 100%;
}

.service-detail__body h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  margin-bottom: 1rem;
}

.service-detail__body p {
  color: var(--color-gray-dark);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-gray-dark);
  padding: 0.25rem 0;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Why CMM Split Section --- */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-split__image--brand {
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 3rem;
}

.why-split__image--brand img {
  max-width: 240px;
  width: 100%;
}

.why-split__content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.75rem;
}

/* --- Service Area Section --- */
.service-area {
  text-align: center;
}

.service-area h2 {
  margin-bottom: 0.75rem;
}

.service-area p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--color-gray-mid);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  padding-block: 5rem;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.cta-band p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}


/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: left;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-orange);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

/* Contact Us button in nav */
.nav__link--cta {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--color-orange-hover);
  color: var(--color-white);
}

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-black);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav__toggle:hover {
  background: var(--color-gray-light);
}

.nav__toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

.nav__toggle .icon-close { display: none; }
.nav--open .nav__toggle .icon-open  { display: none; }
.nav--open .nav__toggle .icon-close { display: block; }


/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero--medium { min-height: 75vh; }
.hero--short  { min-height: 42vh; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.62);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding-block: 5rem;
}

/* Centered hero (hub homepage) */
.hero--hub .hero__content {
  text-align: center;
}

.hero--hub .hero__title,
.hero--hub .hero__subtitle {
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero--hub .hero__actions {
  justify-content: center;
}

/* Hub hero: scroll-down hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__scroll-hint svg {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}


/* ==========================================================================
   8. HUB HOMEPAGE SECTIONS
   ========================================================================== */
.hub-gateway {
  padding-block: 5.5rem;
  background: var(--color-white);
}

.about-cmm {
  text-align: center;
}

.about-cmm h2 {
  margin-bottom: 1.25rem;
}

.about-cmm p {
  max-width: 700px;
  margin-inline: auto;
  font-size: 1.0625rem;
  color: var(--color-gray-mid);
  line-height: 1.85;
}


/* ==========================================================================
   9. PROPERTY MANAGEMENT PAGE
   (Uses .service-detail, .why-split, .service-area, .stat-bar defined above)
   ========================================================================== */


/* ==========================================================================
   10. LAND & SITE SERVICES PAGE
   (Uses .card-grid--8, .service-card, .why-split, .service-area defined above)
   ========================================================================== */


/* ==========================================================================
   11. CONTACT PAGE
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.contact-info__intro {
  color: var(--color-gray-mid);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-item__icon {
  width: 40px;
  height: 40px;
  background: var(--color-orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-orange);
}

.contact-detail-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-item__text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-black);
  margin-bottom: 0.25rem;
}

.contact-detail-item__text span,
.contact-detail-item__text a {
  color: var(--color-gray-mid);
  font-size: 0.9375rem;
}

.contact-detail-item__text a:hover {
  color: var(--color-orange);
}

.contact-hours {
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-gray-dark);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.contact-hours svg {
  width: 18px;
  height: 18px;
  color: var(--color-orange);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrap h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.375rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-gray-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  width: 100%;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(232, 85, 0, 0.12);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-success[hidden] { display: none; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #EEF7EE;
  border: 1.5px solid #4CAF50;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: #2E7D32;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.1em;
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 4rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand__logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.125rem;
}

.footer-brand__tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-orange);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-orange);
  margin-top: 0.2em;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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


/* ==========================================================================
   13. MEDIA QUERIES
   ========================================================================== */

/* ---- Tablet: max 1023px ---- */
@media (max-width: 1023px) {
  /* Nav: show hamburger, hide links */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--container-pad) 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--color-gray-border);
  }

  .nav--open .nav__menu {
    display: flex;
  }

  .nav__link {
    padding: 0.875rem 0;
    width: 100%;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-gray-border);
    letter-spacing: 0.04em;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    margin-top: 1rem;
    text-align: center;
    padding: 0.875rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  /* Gateway grid: stack on tablet */
  .gateway-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  /* Why split: stack */
  .why-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact split: stack */
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Footer: 2-col then stacked */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Mobile: max 639px ---- */
@media (max-width: 639px) {
  :root {
    --container-pad: 1.25rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  /* Disable parallax on iOS Safari */
  .hero {
    background-attachment: scroll;
  }

  .hero__title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
    text-align: center;
  }

  /* Stat bar: 2x2 grid */
  .stat-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-bottom: 1px solid var(--color-gray-border);
  }

  .stat-item:nth-child(even) {
    border-right: none;
  }

  /* Service detail: stack */
  .service-detail__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Gateway cards: reduce padding */
  .gateway-card {
    padding: 2rem 1.5rem;
  }
}
