/* ============================================================
   DON CRAVINS INSURANCE — STYLE SYSTEM
   Modern Luxury Editorial · Motion-First · 2026
   Built by Encoded Noire
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--charcoal); background: var(--ivory); line-height: 1.7; overflow-x: hidden; }
img, video { 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; }

/* --- BRAND SYSTEM (Custom Properties) --- */
:root {
  --navy: #0D2B6B;
  --gold: #C8A84B;
  --ivory: #F7F5F0;
  --charcoal: #2D2D2D;
  --gray: #888888;
  --white: #FFFFFF;
  --navy-rgb: 13, 43, 107;
  --gold-rgb: 200, 168, 75;
  --ivory-rgb: 247, 245, 240;
  --charcoal-rgb: 45, 45, 45;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-smooth: 0.6s var(--ease-out-expo);
  --transition-slow: 1.2s var(--ease-out-expo);
  --nav-height: 80px;
  --section-pad: clamp(80px, 10vw, 160px);
  --container-max: 1280px;
  --container-wide: 1440px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
p { font-size: clamp(1rem, 1.1vw, 1.125rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.display-xl { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1.05; }
.body-large { font-size: clamp(1.1rem, 1.3vw, 1.35rem); line-height: 1.8; }
.caption { font-size: 0.85rem; color: var(--gray); letter-spacing: 0.05em; }

/* --- LAYOUT --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); }
.container--wide { max-width: var(--container-wide); }
.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--navy); color: var(--ivory); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }
.section--ivory { background: var(--ivory); color: var(--charcoal); }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 48px);
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), box-shadow var(--transition-smooth);
}
.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(var(--navy-rgb), 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(var(--gold-rgb), 0.15);
}
.nav__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 44px; width: auto; transition: opacity 0.3s; }
.nav__logo:hover { opacity: 0.85; }
.nav__links { display: flex; gap: 36px; align-items: center; }
.nav__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 12px 28px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.nav__cta:hover {
  background: #d4b45a;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.3);
}

/* Mobile menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: rgba(var(--navy-rgb), 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: right 0.5s var(--ease-out-expo);
  z-index: 999;
}
.nav__mobile.open { right: 0; }
.nav__mobile .nav__link { font-size: 1.4rem; letter-spacing: 0.15em; }

/* --- HERO SECTIONS --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero--short { height: 60vh; min-height: 400px; }
.hero--medium { height: 75vh; min-height: 500px; }

/* Auto-height hero: section wraps the video's natural aspect ratio */
.hero--auto {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}
.hero--auto .hero__media {
  position: relative;
  inset: auto;
  width: 100%;
}
.hero--auto .hero__media video,
.hero--auto .hero__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero--auto .hero__overlay {
  position: absolute;
  inset: 0;
}
.hero--auto .hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

/* Content pinned to bottom of hero */
.hero__content--bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(var(--navy-rgb), 0.7) 0%,
    rgba(var(--navy-rgb), 0.4) 50%,
    rgba(var(--navy-rgb), 0.2) 100%
  );
}
.hero__overlay--heavy {
  background: linear-gradient(
    135deg,
    rgba(var(--navy-rgb), 0.85) 0%,
    rgba(var(--navy-rgb), 0.6) 50%,
    rgba(var(--navy-rgb), 0.35) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 0 clamp(24px, 4vw, 48px);
}
.hero__content--right {
  margin-left: auto;
  margin-right: clamp(48px, 8vw, 120px);
  text-align: right;
}

/* Frosted Panel */
.frost-panel {
  background: rgba(var(--ivory-rgb), 0.12);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(var(--ivory-rgb), 0.15);
  border-radius: 4px;
  padding: clamp(32px, 4vw, 56px);
}
.frost-panel--light {
  background: rgba(var(--ivory-rgb), 0.85);
  border-color: rgba(var(--gold-rgb), 0.2);
  color: var(--charcoal);
}
.frost-panel--navy {
  background: rgba(var(--navy-rgb), 0.85);
  border-color: rgba(var(--gold-rgb), 0.2);
  color: var(--ivory);
}

/* --- GOLD ACCENT LINE --- */
.gold-line {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 20px 0;
}
.gold-line--center { margin: 20px auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}
.btn:hover::before { transform: translateX(0); }
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: #d4b45a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--gold-rgb), 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid rgba(var(--ivory-rgb), 0.4);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--navy {
  background: var(--navy);
  color: var(--ivory);
}
.btn--navy:hover {
  background: #0f3380;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--navy-rgb), 0.35);
}
.btn__arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- COVERAGE / SERVICE CARDS --- */
.card {
  background: rgba(var(--ivory-rgb), 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--ivory-rgb), 0.1);
  border-radius: 4px;
  padding: clamp(28px, 3vw, 44px);
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}
.card:hover {
  background: rgba(var(--ivory-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ivory);
}
.card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(var(--ivory-rgb), 0.7);
  margin-bottom: 20px;
}
.card__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease-out-expo);
}
.card__link:hover { gap: 14px; }

/* Light card variant */
.card--light {
  background: var(--white);
  border-color: rgba(var(--charcoal-rgb), 0.08);
}
.card--light .card__title { color: var(--navy); }
.card--light .card__text { color: var(--charcoal); }
.card--light:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  box-shadow: 0 20px 60px rgba(var(--navy-rgb), 0.08);
}

/* --- STAT COUNTERS --- */
.stats { display: flex; gap: clamp(32px, 4vw, 64px); flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--ivory-rgb), 0.6);
  margin-top: 8px;
}

/* --- IMAGE SECTIONS --- */
.img-section {
  position: relative;
  overflow: hidden;
}
.img-section__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.img-section__bg img, .img-section__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.img-section__content {
  position: relative;
  z-index: 3;
}

/* Parallax container */
.parallax-container {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
}
.parallax-bg img, .parallax-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --- QUOTE FORM --- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid rgba(var(--charcoal-rgb), 0.15);
  border-radius: 3px;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15);
}
.form-select {
  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 d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--gray); margin-top: 6px; }

/* Conditional form sections */
.form-conditional {
  display: none;
  animation: fadeSlideUp 0.5s var(--ease-out-expo);
}
.form-conditional.active { display: block; }

/* --- INFO CARDS (Louisiana minimums) --- */
.info-card {
  background: rgba(var(--navy-rgb), 0.04);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
}
.info-card__title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.info-card__text { font-size: 0.95rem; line-height: 1.7; color: var(--charcoal); }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: 60px;
}
.footer__brand-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(var(--ivory-rgb), 0.6);
  margin-top: 16px;
  max-width: 320px;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__link {
  display: block;
  font-size: 0.95rem;
  color: rgba(var(--ivory-rgb), 0.6);
  padding: 6px 0;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(var(--ivory-rgb), 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 0.8rem; color: rgba(var(--ivory-rgb), 0.4); }
.footer__powered {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--ivory-rgb), 0.3);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal--left { transform: translateX(-40px) translateY(0); }
.reveal--right { transform: translateX(40px) translateY(0); }
.reveal--scale { transform: scale(0.95); }
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Kinetic text */
.kinetic-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.kinetic-text.visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(var(--gold-rgb), 0); }
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(1%, 0.5%); }
  30% { transform: translate(-0.5%, 1%); }
  40% { transform: translate(0.5%, -0.5%); }
  50% { transform: translate(-1%, 0.5%); }
  60% { transform: translate(1%, -1%); }
  70% { transform: translate(-0.5%, -0.5%); }
  80% { transform: translate(0.5%, 1%); }
  90% { transform: translate(-1%, -0.5%); }
}

/* Film grain overlay */
.grain-overlay::after {
  content: '';
  position: fixed;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  animation: grain 8s steps(10) infinite;
}

/* --- LOADING SCREEN --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__logo { height: 60px; opacity: 0; animation: fadeIn 0.6s 0.2s forwards; }
.loader__bar {
  width: 120px; height: 2px;
  background: rgba(var(--ivory-rgb), 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader__fill {
  width: 0%; height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out-expo);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: clamp(32px, 4vw, 48px); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .hero--auto { min-height: 0; }
  .hero__content { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  .hero__content--bottom { padding: 20px clamp(16px, 4vw, 32px) 24px; }
  .hero__content--right { margin-right: auto; text-align: left; }
  .stats { flex-direction: column; align-items: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .frost-panel { padding: clamp(24px, 4vw, 36px); }

  /* Two-column → stacked, image on top */
  .two-col { grid-template-columns: 1fr; }
  .two-col__image { order: -1; width: 100%; max-height: none; border-radius: 4px; overflow: hidden; }
  .two-col__image img { width: 100%; height: 240px; object-fit: cover; border-radius: 4px; }

  /* Contact layout → stacked */
  .contact-grid { padding: clamp(48px, 6vw, 80px) 0; }
  .contact-info { margin-bottom: 40px; }

  /* CTA buttons → stacked on narrow */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Map shorter on mobile */
  .map-section { height: 280px; }

  /* Parallax content mobile padding */
  .parallax-content { padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 32px); }

  /* Parallax container: ensure bg covers on mobile */
  .parallax-container { min-height: auto; }
  .parallax-bg { inset: 0; }

  /* Services hero poster: cover properly on mobile */
  .hero--auto .hero__media img,
  .hero--auto .hero__media video {
    min-height: 280px;
    object-fit: cover;
  }

  /* Inline section padding override */
  .section--inline-pad-fix { padding: 60px 20px !important; }

  /* Article image: cap height on mobile so text is visible without excessive scroll */
  #featured-article .grid-2 img[src*="article"] {
    aspect-ratio: 3/4;
    max-height: 360px;
    object-fit: cover;
    object-position: center top;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .hero { min-height: 400px; }
  .hero--short { min-height: 350px; }
  .btn { padding: 14px 24px; font-size: 0.8rem; }

  /* Stats at smallest screens */
  .stat__number { font-size: clamp(2rem, 8vw, 2.5rem); }

  /* Contact blocks tighter */
  .contact-block { gap: 12px; }
  .contact-block__icon { width: 36px; height: 36px; }

  /* Form wrapper less padding */
  .form-wrapper { padding: clamp(20px, 4vw, 32px); }

  /* Footer tighter */
  .footer { padding: 48px 0 32px; }

  /* Card padding tighter */
  .card { padding: clamp(20px, 4vw, 32px); }

  /* Frost panel at min */
  .frost-panel { padding: 20px; }

  /* Long email wrapping */
  .contact-block__content p,
  .footer__link { word-break: break-word; }

  /* Coverage info grid */
  .coverage-info__grid { gap: 16px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .kinetic-text .word { opacity: 1; transform: none; }
  .parallax-bg { inset: 0; }
  .grain-overlay::after { display: none; }
}

/* --- PAGE-SPECIFIC STYLES (services, quote, contact) --- */
/* Hero compat */
.hero__video, .hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero__eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 16px; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; color: var(--ivory); line-height: 1.15; margin-bottom: 16px; }
.hero__subtitle { font-size: clamp(1rem, 1.3vw, 1.35rem); color: rgba(247,245,240,0.8); line-height: 1.8; margin-bottom: 16px; }
.hero__accent { width: 60px; height: 2px; background: var(--gold); }
.hero__content { position: relative; z-index: 3; max-width: 700px; padding: 0 clamp(24px, 4vw, 48px); padding-top: var(--nav-height); }
/* Section compat */
.section-eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 24px; }
/* Coverage info compat */
.coverage-info { padding: var(--section-pad) 0; background: var(--ivory); }
.coverage-info__text { font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.8; color: var(--charcoal); max-width: 720px; margin-bottom: 32px; }
.coverage-info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coverage-card { background: rgba(var(--navy-rgb), 0.04); border-left: 3px solid var(--gold); padding: 24px; border-radius: 0 4px 4px 0; }
.coverage-card__title { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.coverage-card__text { font-size: 0.95rem; line-height: 1.7; color: var(--charcoal); }
/* Quote form compat */
.quote-form { padding: var(--section-pad) 0; }
.form-wrapper { max-width: 680px; margin: 0 auto; background: var(--white); border-radius: 8px; padding: clamp(32px, 4vw, 48px); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.form-control { width: 100%; padding: 14px 18px; font-family: var(--font-body); font-size: 1rem; color: var(--charcoal); background: var(--white); border: 1.5px solid rgba(var(--charcoal-rgb), 0.15); border-radius: 3px; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none; }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15); }
select.form-control { 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 d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-label__required { color: #c0392b; }
.form-fieldset { border: none; padding: 0; }
.form-legend { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.form-checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.form-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
.form-divider { height: 1px; background: rgba(var(--charcoal-rgb), 0.1); margin: 24px 0; }
.form-footer-text { font-size: 0.85rem; color: var(--gray); text-align: center; margin-top: 20px; }
.form-footer-text a { color: var(--gold); font-weight: 600; }
.btn--large { width: 100%; display: flex; justify-content: center; padding: 18px; font-size: 0.9rem; }
@media (max-width: 768px) {
  .coverage-info__grid { grid-template-columns: 1fr; }
}

/* --- TWO-COLUMN LAYOUT (services.html) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.two-col__image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.two-col__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.two-col__content {
  display: flex;
  flex-direction: column;
}
.two-col__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.two-col__list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
}
.two-col__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* --- CONTACT LAYOUT (contact.html) --- */
.contact-grid {
  padding: var(--section-pad) 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 4px;
}
.accent-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}
.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(var(--charcoal-rgb), 0.08);
}
.contact-block:last-child {
  border-bottom: none;
}
.contact-block__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--navy-rgb), 0.04);
  border-radius: 50%;
}
.contact-block__content {
  flex: 1;
  min-width: 0;
}
.contact-block__content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.contact-block__content a {
  color: var(--navy);
  transition: color 0.3s;
}
.contact-block__content a:hover {
  color: var(--gold);
}

/* --- CTA BANNER (services.html, contact.html) --- */
.cta-banner {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--ivory);
  margin-bottom: 12px;
}
.cta-banner .subtitle {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: rgba(var(--ivory-rgb), 0.75);
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- PARALLAX CONTENT (services.html) --- */
.parallax-content {
  position: relative;
  z-index: 3;
  padding: clamp(60px, 8vw, 120px) clamp(24px, 4vw, 48px);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* --- CARD DARK VARIANT --- */
.card--dark {
  background: rgba(var(--navy-rgb), 0.2);
  border-color: rgba(var(--ivory-rgb), 0.12);
}
.card--dark:hover {
  background: rgba(var(--navy-rgb), 0.35);
}

/* --- CONTACT FORM --- */
.contact-form {
  min-width: 0;
}
.required {
  color: #c0392b;
  font-weight: 600;
}

/* --- MAP (contact.html) --- */
.map-section {
  width: 100%;
  height: 400px;
  background: var(--charcoal);
}
.map-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-ivory { color: var(--ivory); }
.text-muted { color: var(--gray); }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
