/* ============================================================
   Chesapeake Cottage LLC — Main Stylesheet
   Family-Owned Assisted Living Home
   Rebuilt with assisted living industry best practices
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Color Palette */
  --color-primary: #1B4D5C;
  --color-secondary: #2C3E6B;
  --color-accent: #D4845A;
  --color-accent-dark: #bf7349;
  --color-gold: #C4A35A;
  --color-gold-dark: #b59349;
  --color-bg: #FAFAF8;
  --color-bg-alt: #F5F1EB;
  --color-card: #FFFFFF;
  --color-text: #2D2D2D;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E1DB;
  --color-border-dark: #D4C5B2;
  --color-success: #7A9E7E;
  --color-error: #D94F4F;
  --color-footer: #1E293B;
  --color-footer-dark: #151d2b;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing */
  --section-padding: 50px;
  --section-padding-mobile: 35px;
  --container-max: 1100px;
  --container-narrow: 800px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(27, 77, 92, 0.04), 0 4px 12px rgba(27, 77, 92, 0.03);
  --shadow-card: 0 2px 8px rgba(27, 77, 92, 0.05), 0 6px 20px rgba(27, 77, 92, 0.04);
  --shadow-lifted: 0 8px 28px rgba(27, 77, 92, 0.08), 0 2px 8px rgba(27, 77, 92, 0.04);
  --shadow-nav: 0 1px 12px rgba(27, 77, 92, 0.06);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 250ms ease;
  --transition-smooth: 300ms ease;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  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;
}

::selection {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

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

/* Skip link — hidden until focused via keyboard */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 500;
}

h6 {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.section-header h2,
.section-header .section-heading {
  margin-bottom: 1rem;
}

/* ============================================================
   3. UTILITY BAR (top of nav)
   ============================================================ */
.utility-bar {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.78rem;
  padding: 0.5rem 0;
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-bar-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.utility-bar-phone a {
  color: #FFFFFF;
  transition: opacity var(--transition-fast);
}

.utility-bar-phone a:hover {
  opacity: 0.85;
}

.utility-bar-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .utility-bar {
    display: none;
  }
}

/* ============================================================
   4. NAVIGATION — Single Bar Layout
   ============================================================ */
.main-nav,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  gap: 1.5rem;
}

.nav-container .nav-cta {
  font-size: 0.82rem;
  padding: 0.55rem 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-container .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-container .nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-container .nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(27, 77, 92, 0.05);
}

.nav-container .nav-logo {
  flex-shrink: 0;
}

/* Make the header sticky, not just the nav inside */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-smooth);
}

.main-nav.scrolled,
.site-header.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
  flex-shrink: 0;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-sub,
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

/* Nav Links - Center */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(27, 77, 92, 0.05);
}

/* Right side actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: opacity var(--transition-fast);
}

.nav-phone:hover {
  opacity: 0.75;
}

.nav-cta {
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}

/* Mobile phone icon */
.mobile-phone-icon {
  display: none;
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-container .nav-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: #FFFFFF;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition-smooth);
    z-index: 999;
    gap: 0.25rem;
  }

  .nav-open .nav-menu {
    right: 0;
  }

  .nav-menu .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0;
    width: 100%;
  }

  .nav-actions {
    display: none;
  }

  .mobile-phone-icon {
    display: flex;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hamburger animation */
  .nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Legacy compat */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-smooth);
}

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

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn-schedule {
  margin-left: 0.5rem;
}

/* Mobile Phone Button in Nav */
.nav-phone-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: background-color var(--transition-fast);
}

.nav-phone-btn:hover {
  background-color: var(--color-bg-alt);
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 8px 2px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 77, 92, 0.35);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.nav-overlay.active {
  opacity: 1;
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #245e6f 40%, var(--color-secondary) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 55, 0.75) 0%,
    rgba(20, 40, 55, 0.60) 50%,
    rgba(20, 40, 55, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.hero-heading,
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
  max-width: 700px;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subheadline,
.hero-subheading,
.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.hero-scroll-indicator .chevron {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ============================================================
   6. TRUST BAR
   ============================================================ */
.trust-bar {
  background-color: var(--color-bg-alt);
  padding: 1.35rem 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  position: relative;
}

.trust-bar-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background-color: var(--color-border);
}

.trust-bar-item .icon {
  color: var(--color-primary);
  font-size: 1.55rem;
  flex-shrink: 0;
}

.trust-bar-item span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.83rem;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .trust-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .trust-bar-item {
    padding: 0.5rem 0;
  }

  .trust-bar-item:not(:last-child)::after {
    display: none;
  }
}

/* ============================================================
   7. SECTION LAYOUT
   ============================================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: 1280px;
}

/* Legacy support */
.section-padding {
  padding: var(--section-padding) 0;
}

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

.bg-white {
  background-color: var(--color-card);
}

.bg-cream,
.bg-light {
  background-color: var(--color-bg-alt);
}

.bg-navy {
  background-color: var(--color-secondary);
}

.bg-teal {
  background-color: var(--color-primary);
}

/* ============================================================
   8. SPLIT LAYOUT (About Section)
   ============================================================ */
.about-preview,
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview.reversed,
.split-layout.reversed {
  grid-template-columns: 1fr 45%;
}

.about-preview.reversed .about-image,
.split-layout.reversed .split-image {
  order: 2;
}

.about-preview.reversed .about-text,
.split-layout.reversed .split-content {
  order: 1;
}

.about-text .section-label,
.split-content .section-label {
  text-align: left;
}

.about-text h2,
.split-content h2 {
  margin-bottom: 1.25rem;
}

.about-text p,
.split-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.about-text .highlight-list {
  margin-bottom: 2rem;
}

.about-text .highlight-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.about-text .highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.about-image,
.split-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  min-height: 350px;
}

.about-image img,
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Learn more link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.link-arrow .arrow {
  display: inline-block;
  transition: transform var(--transition-base);
}

.link-arrow:hover {
  color: var(--color-accent);
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   9. SERVICE CARDS
   ============================================================ */
.services-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  overflow: hidden;
}

.features-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

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

.service-icon,
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27, 77, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.service-card h3,
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.service-card p,
.feature-card p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Legacy service-item support */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
  overflow: hidden;
}

.service-item:hover {
  background-color: rgba(27, 77, 92, 0.04);
}

.service-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   10. WHY CHOOSE US / FEATURE HIGHLIGHTS
   ============================================================ */
.highlights-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  text-align: center;
}

.highlight-item,
.why-item {
  padding: 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  transition: background var(--transition-base);
}

.why-item:hover {
  background: rgba(255,255,255,0.12);
}

.highlight-item .highlight-number,
.highlight-item .highlight-icon,
.why-item .why-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.highlight-item h3,
.why-item .why-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.highlight-item p,
.why-item .why-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .highlights-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .highlights-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .highlight-item,
  .why-item {
    padding: 1.25rem;
    border-bottom: none;
  }
}

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Testimonial cards align nicely in 3-column grid */

.testimonial-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(27, 77, 92, 0.2);
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
}

.testimonial-card blockquote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  padding-top: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-relation {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ============================================================
   ABOUT LAYOUT (Homepage — portrait family photo)
   ============================================================ */
.about-layout {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  width: 220px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.about-text {
  flex: 1;
}

.about-text .section-label {
  text-align: left;
}

.about-text h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.about-text p:last-of-type {
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .about-photo {
    width: 200px;
  }

  .about-text .section-label {
    text-align: center;
  }
}

/* ============================================================
   RESOURCE CARDS (Homepage)
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.resource-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
}

.resource-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.resource-card:hover .resource-image img {
  transform: scale(1.04);
}

.resource-body {
  padding: 1.25rem;
}

.resource-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.resource-text {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.resource-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-image {
    height: 120px;
  }
}

/* ============================================================
   TOPIC CARDS (Resources page — clean, no icons)
   ============================================================ */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.topic-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow var(--transition-smooth);
}

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

.topic-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.topic-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.topic-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topic-links li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topic-links li a::before {
  content: "\2192";
  font-size: 0.8rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.topic-links li a:hover {
  color: var(--color-accent);
}

.topic-links li a:hover::before {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    padding: 1.5rem;
  }
}

/* Testimonial classes used in homepage HTML */
.testimonial-quote {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(27, 77, 92, 0.15);
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
  display: block;
}

.author-detail {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: block;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   12. CTA BANNER
   ============================================================ */
.cta-section,
.cta-banner {
  background-color: var(--color-primary);
  padding: 50px 0;
  text-align: center;
}

.cta-section h2,
.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-section p,
.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.cta-section .hero-buttons,
.cta-banner .hero-buttons,
.cta-buttons,
.cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact CTA (dark background CTA sections on inner pages) */
.contact-cta {
  background-color: var(--color-primary);
}

.contact-cta .cta-title {
  color: #FFFFFF;
}

.contact-cta .cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.contact-cta .cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.8);
}

.contact-cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.contact-cta .contact-cta-content {
  text-align: center;
}

/* ============================================================
   13. RESOURCE / BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.blog-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.blog-card-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.blog-card-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.read-more:hover {
  color: var(--color-accent);
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer,
.site-footer {
  background-color: var(--color-footer);
  color: #FFFFFF;
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  justify-items: center;
}

.footer h5,
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section .footer-contact {
  font-style: normal;
}

.footer-section .footer-contact p {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  color: var(--color-text-light);
}

.footer-section .footer-contact a {
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.footer-section .footer-contact a:hover {
  color: #FFFFFF;
}

.footer-hours {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-cta {
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.72rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--color-text-light);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.footer-contact a:hover {
  color: #FFFFFF;
}

.footer-contact a[href^="mailto"] {
  font-size: 0.72rem;
  word-break: break-all;
}

.footer-contact .icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.footer-cta .btn-schedule-sm {
  display: inline-flex;
  margin-top: 0.5rem;
}

.footer-bottom {
  background-color: var(--color-footer-dark);
  text-align: center;
  padding: 1.25rem 0;
  margin-top: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
  margin: 0 0.5rem;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* Footer logo text overrides for dark background */
.site-footer .logo-main,
.footer .logo-main {
  color: #FFFFFF;
}

.site-footer .logo-tagline,
.site-footer .logo-sub,
.footer .logo-tagline,
.footer .logo-sub {
  color: rgba(255, 255, 255, 0.5);
}

/* Legacy footer layout support */
.footer-about .nav-logo-text {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.footer-about .nav-logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-about p,
p.footer-about {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.social-links a:hover {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

/* ============================================================
   15. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.78rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 132, 90, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Accent button (coral — used on hero and CTAs) */
.btn-accent {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 132, 90, 0.35);
}

/* White outline button (used on hero over dark backgrounds) */
.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.8);
}

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

/* Large buttons */
.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
}

/* Block button (full width) */
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Schedule a Visit (nav CTA) */
.btn-schedule {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.btn-schedule:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* Legacy .btn-tour support */
.btn-tour {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

.btn-tour:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 132, 90, 0.3);
}

.btn-gold {
  background-color: var(--color-gold);
  color: #FFFFFF;
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196, 163, 90, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Footer small coral button */
.btn-schedule-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #FFFFFF;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-schedule-sm:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* ============================================================
   16. PLACEHOLDER IMAGES
   ============================================================ */
.image-placeholder,
.placeholder-image {
  background-color: var(--color-bg-alt);
  border: 2px dashed var(--color-border-dark);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 2rem;
  min-height: 280px;
  gap: 0.5rem;
}

.placeholder-image .placeholder-icon,
.image-placeholder .placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.placeholder-hero,
.image-placeholder.hero-placeholder {
  min-height: 400px;
  border-radius: 0;
  border: none;
  position: absolute;
  inset: 0;
}

.placeholder-about,
.image-placeholder.about-placeholder {
  min-height: 350px;
}

.placeholder-service {
  min-height: 200px;
}

.placeholder-blog,
.image-placeholder.blog-placeholder {
  min-height: 200px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.image-placeholder.testimonial-placeholder {
  min-height: 44px;
  width: 44px;
  border-radius: 50%;
  padding: 0;
  font-size: 0.65rem;
}

.image-placeholder.team-placeholder {
  min-height: 320px;
}

.image-placeholder.gallery-placeholder {
  min-height: 240px;
}

/* ============================================================
   16b. FREE GUIDE CTA (Centered Layout + Book Cover Mockup)
   ============================================================ */
.cta-block--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-block--centered .cta-content {
  max-width: 600px;
}

.cta-block--centered .section-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.cta-block--centered .cta-title {
  text-align: center;
}

.cta-block--centered .cta-text {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Guide form — centered */
.guide-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 380px;
  margin: 0 auto;
}

.guide-form .form-group {
  width: 100%;
}

.guide-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-dark, #ccc);
  border-radius: var(--radius-md, 8px);
  font-size: 1rem;
  font-family: inherit;
}

.guide-form .btn {
  width: 100%;
}

/* Guide cover mockup — styled like a book */
.guide-cover-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.guide-cover {
  width: 200px;
  height: 260px;
  background: linear-gradient(145deg, #1B4D5C 0%, #15404d 100%);
  color: #fff;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    -4px 4px 12px rgba(0, 0, 0, 0.25),
    inset -2px 0 4px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  transform: perspective(800px) rotateY(-4deg);
  transition: transform 0.3s ease;
  position: relative;
}

.guide-cover:hover {
  transform: perspective(800px) rotateY(0deg);
}

/* Spine edge highlight */
.guide-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(255,255,255,0.08));
  border-radius: 4px 0 0 4px;
}

.guide-cover-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.guide-cover-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.75rem;
}

/* ============================================================
   17. SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* Legacy stagger support */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* ============================================================
   18. FORMS
   ============================================================ */
.form-card,
.contact-form-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--color-error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.78rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 92, 0.12);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--color-error);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
  box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.12);
}

.form-error {
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 0.35rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

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

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

/* ============================================================
   19. FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-base);
  min-height: 44px;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question .icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform var(--transition-smooth);
  color: var(--color-text-muted);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

/* FAQ answer styling handled by inline styles on faq.html */

.faq-answer p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   20. GALLERY GRID
   ============================================================ */
.gallery-grid,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item,
.photo-grid-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-item img,
.photo-grid-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.photo-grid-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 77, 92, 0);
  transition: background var(--transition-smooth);
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(27, 77, 92, 0.1);
}

/* ============================================================
   21. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base),
              transform var(--transition-base), background-color var(--transition-base);
  z-index: 900;
  box-shadow: var(--shadow-card);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   22. INNER PAGE HEADERS
   ============================================================ */
.page-header {
  background-color: var(--color-primary);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumb {
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a,
.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: #FFFFFF;
}

.breadcrumbs .separator,
.breadcrumb .separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   23. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large tablets / small desktops — 1024px */
@media (max-width: 1024px) {
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Tablet — 768px and below */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-phone-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0;
    box-shadow: -8px 0 30px rgba(27, 77, 92, 0.1);
    transition: right 350ms ease;
    z-index: 1050;
    overflow-y: auto;
  }

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

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.active {
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.88rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-bg-alt);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .btn-schedule,
  .nav-links .btn-tour {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    min-height: calc(85vh - 72px);
    padding: 2rem 1.25rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Sections */
  .section,
  .section-padding {
    padding: var(--section-padding) 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Grid layouts */
  .services-grid,
  .features-grid,
  .features-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* About / Split */
  .about-preview,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-preview.reversed,
  .split-layout.reversed {
    grid-template-columns: 1fr;
  }

  .about-image,
  .split-image {
    order: -1;
  }

  .about-preview.reversed .about-image,
  .split-layout.reversed .split-image {
    order: -1;
  }

  .about-preview.reversed .about-text,
  .split-layout.reversed .split-content {
    order: 0;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  /* CTA */
  .cta-section,
  .cta-banner {
    padding: 56px 0;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {

  /* Navigation */
  .nav-links {
    width: 100%;
    max-width: 100%;
  }

  .navbar .container {
    height: 64px;
  }

  /* Hero */
  .hero {
    min-height: calc(80vh - 64px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Section Padding */
  .section,
  .section-padding {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Grids to single column */
  .services-grid,
  .features-grid,
  .features-grid.four-col {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .blog-grid.two-col {
    grid-template-columns: 1fr;
  }

  /* CTA buttons stack */
  .cta-buttons,
  .cta-section .hero-buttons,
  .cta-banner .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn,
  .cta-section .btn,
  .cta-banner .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer {
    padding-top: 48px;
  }

  /* Buttons */
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.88rem;
  }

  .btn-tour,
  .btn-schedule {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
  }

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

  .form-card,
  .contact-form-card {
    padding: 1.5rem;
  }

  /* Image Placeholders */
  .image-placeholder,
  .placeholder-image {
    min-height: 200px;
  }

  .image-placeholder.about-placeholder,
  .placeholder-about {
    min-height: 250px;
  }

  .image-placeholder.team-placeholder {
    min-height: 240px;
  }

  /* Page Header */
  .page-header {
    padding: 40px 0 36px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   24. ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus-visible outlines for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Minimum touch targets */
a,
button,
input[type="checkbox"],
input[type="radio"],
select {
  min-height: 44px;
  min-width: 44px;
}

/* Allow inline links to be smaller */
p a,
li a,
.footer-links a,
.breadcrumbs a,
.footer-bottom a {
  min-height: auto;
  min-width: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-indicator .chevron {
    animation: none;
  }
}

/* ============================================================
   25. PRINT STYLES
   ============================================================ */
@media print {
  .navbar,
  .utility-bar,
  .nav-toggle,
  .nav-overlay,
  .footer,
  .cta-section,
  .cta-banner,
  .back-to-top,
  .btn,
  .hero-buttons,
  .hero-scroll-indicator {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #FFF;
    -webkit-font-smoothing: auto;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  p, blockquote {
    orphans: 3;
    widows: 3;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .section,
  .section-padding {
    padding: 24px 0;
  }

  .container {
    max-width: 100%;
  }

  img {
    max-width: 100% !important;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #FFFFFF; }
.text-teal { color: var(--color-primary); }
.text-navy { color: var(--color-secondary); }
.text-gold { color: var(--color-gold); }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================================
   ADDITIONAL: Team Grid
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.team-card .team-photo {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.team-card .team-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   ADDITIONAL: Divider / Decorative
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  margin: 1.5rem auto;
}

.divider.left {
  margin-left: 0;
}

/* ============================================================
   AREAS WE SERVE — Area Cards Grid
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.area-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
}

.area-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.area-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MOBILE RESPONSIVE FIXES — Inline Style Overrides
   ============================================================ */

/* --- 768px: Tablet breakpoint --- */
@media (max-width: 768px) {

  /* index.html: Trust bar inline 4-column grid */
  .trust-bar [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* index.html: Testimonials inline 4-column grid */
  .testimonials [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* pricing.html: Payment options inline 2-column grid */
  #payment-options [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero buttons: reduce min-width */
  .hero-cta .btn {
    min-width: 0 !important;
    width: 100%;
    max-width: 280px;
  }

  /* index.html: Family photo — don't overflow container */
  #about-and-reviews img[style*="width:250px"] {
    width: 200px !important;
    max-width: 100% !important;
  }

  /* Contact form narrow container override */
  .container[style*="max-width: 600px"] {
    max-width: 100% !important;
  }

  /* Pricing consultation CTA container */
  .container[style*="max-width:700px"] {
    max-width: 100% !important;
  }

  /* Cost comparison table — make scrollable if needed */
  .cost-table {
    font-size: 0.8rem;
  }
  .cost-table thead th,
  .cost-table tbody td,
  .cost-table tfoot td {
    padding: 0.6rem 0.75rem;
  }
}

/* --- 480px: Small phone breakpoint --- */
@media (max-width: 480px) {

  /* index.html: Trust bar — single column on small phones */
  .trust-bar [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* index.html: Testimonials — single column on small phones */
  .testimonials [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero CTA buttons — full width, stack vertically */
  .hero-cta {
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-cta .btn {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 300px !important;
  }

  /* index.html: Family photo — scale down further */
  #about-and-reviews img[style*="width:250px"] {
    width: 180px !important;
  }

  /* CTA actions on all pages — stack vertically */
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Contact CTA actions on dark bg */
  .contact-cta .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .contact-cta .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Pricing CTA buttons */
  #consultation-cta [style*="display:flex"][style*="gap:1rem"] {
    flex-direction: column !important;
    align-items: center !important;
  }
  #consultation-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  /* CTA banner actions */
  .cta-banner-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-banner-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Cost table: hide first column (like compare grid does) */
  .cost-table thead th:first-child,
  .cost-table tbody td:first-child,
  .cost-table tfoot td:first-child {
    display: none;
  }

  /* Assessment hero heading */
  .assessment-hero h1 {
    font-size: 1.8rem;
  }

  /* Gallery CTA heading */
  .gallery-cta h2 {
    font-size: 1.4rem;
  }

  /* Page header padding */
  .page-header.section {
    padding: 30px 0;
  }

  /* Footer legal links — wrap on small phones */
  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
}

/* --- 375px: Very small phones (iPhone SE, etc.) --- */
@media (max-width: 375px) {

  /* Ensure container padding doesn't eat too much space */
  .container {
    padding: 0 1rem;
  }

  /* Hero headline sizing */
  .hero-headline,
  .hero h1 {
    font-size: 2rem;
  }

  /* Reduce section padding further */
  .section {
    padding: 35px 0;
  }

  /* Smaller page title */
  .page-title {
    font-size: 1.6rem;
  }

  /* FAQ question text smaller */
  .faq-question {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  /* Video wrapper responsive */
  #video-wrapper {
    border-radius: 8px !important;
  }
}

/* --- Ensure all inline images don't overflow --- */
img[style*="width:250px"],
img[style*="width:200px"] {
  max-width: 100%;
  height: auto;
}

/* Ensure iframes don't overflow */
iframe {
  max-width: 100%;
}

/* Ensure contact form inputs are responsive */
#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: var(--color-card);
  appearance: none;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 77, 92, 0.12);
}

#contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

#contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================================
   CAREERS FORM — Responsive Form Inputs
   ============================================================ */
#careers-form input,
#careers-form select,
#careers-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: var(--color-card);
  appearance: none;
}

#careers-form input[type="file"] {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
}

#careers-form input:focus,
#careers-form select:focus,
#careers-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 77, 92, 0.12);
}

#careers-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

#careers-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================================
   FOOTER — Prevent overflow on small screens
   ============================================================ */
.footer-section .footer-contact p,
.footer-section .footer-contact a {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ============================================================
   GLOBAL — Prevent horizontal overflow
   ============================================================ */
main {
  overflow-x: hidden;
}

/* ============================================================
   MOBILE FIXES — About page staff image overflow
   ============================================================ */
@media (max-width: 768px) {
  /* about.html: Tyniesha & Alissa image — remove 120% overflow */
  .team-grid img[style*="width:120%"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

/* ============================================================
   MOBILE FIXES — Additional 320px safety net
   ============================================================ */
@media (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 2rem 0.75rem;
  }

  .hero-headline,
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.85rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
  }

  /* Footer bottom text wrapping */
  .footer-bottom {
    font-size: 0.7rem;
  }

  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }

  /* Page headers */
  .page-title {
    font-size: 1.4rem;
  }

  .page-subtitle {
    font-size: 0.85rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.3rem;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.88rem;
  }
}
