/* ==========================================================================
   Parkhill Care Home - AJ Care Group
   Design System & Main Stylesheet
   Primary Font: Switzer (Local ITF)
   Secondary Font: Sacramento (Cursive Accent)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Local & Fallback Font Faces
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-Regular.woff2') format('woff2'),
    url('../font/fonts/Switzer-Regular.woff') format('woff'),
    url('../font/fonts/Switzer-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-Medium.woff2') format('woff2'),
    url('../font/fonts/Switzer-Medium.woff') format('woff'),
    url('../font/fonts/Switzer-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-Semibold.woff2') format('woff2'),
    url('../font/fonts/Switzer-Semibold.woff') format('woff'),
    url('../font/fonts/Switzer-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-Bold.woff2') format('woff2'),
    url('../font/fonts/Switzer-Bold.woff') format('woff'),
    url('../font/fonts/Switzer-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-Extrabold.woff2') format('woff2'),
    url('../font/fonts/Switzer-Extrabold.woff') format('woff'),
    url('../font/fonts/Switzer-Extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-Italic.woff2') format('woff2'),
    url('../font/fonts/Switzer-Italic.woff') format('woff'),
    url('../font/fonts/Switzer-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-MediumItalic.woff2') format('woff2'),
    url('../font/fonts/Switzer-MediumItalic.woff') format('woff'),
    url('../font/fonts/Switzer-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-SemiboldItalic.woff2') format('woff2'),
    url('../font/fonts/Switzer-SemiboldItalic.woff') format('woff'),
    url('../font/fonts/Switzer-SemiboldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../font/fonts/Switzer-BoldItalic.woff2') format('woff2'),
    url('../font/fonts/Switzer-BoldItalic.woff') format('woff'),
    url('../font/fonts/Switzer-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sacramento';
  src: url('../font/fonts/Sacramento-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-primary: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Sacramento', cursive;

  /* Color Palette */
  --color-teal: #007D71;
  --color-teal-hover: #00665c;
  --color-teal-light: #3EBBC2;
  --color-navy: #445D96;
  --color-text-title: #000000;
  --color-text-main: #111827;
  --color-text-body: #4b5563;
  --color-text-muted: #6b7280;
  --color-script: #333333;
  --color-bg-white: #ffffff;
  --color-border: #e5e7eb;
  --color-border-subtle: #f0f0f0;

  /* Layout */
  --container-max-width: 100%;
  --container-padding: clamp(24px, 4vw, 60px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Typography: Section Titles with Sacramento Eyebrow
   -------------------------------------------------------------------------- */
.section-title-wrap {
  margin-bottom: 40px;
  position: relative;
}

.sacramento-eyebrow {
  font-family: var(--font-secondary);
  font-size: 3.6rem;
  line-height: 0.95;
  color: var(--color-script);
  display: block;
  font-weight: 400;
  margin-bottom: 2px;
  transform: translateX(-4px);
  letter-spacing: 0.01em;
}

.switzer-title {
  font-family: var(--font-primary);
  font-size: 2.75rem;
  font-weight: 600;
  color: #0C8E81;
  line-height: 1.15;
  letter-spacing: -0.025em;
  padding-left: 120px;
}

/* --------------------------------------------------------------------------
   Header (Matches user screenshot 1)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.16);
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: #0c0c0c;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: #111827;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-teal);
}


/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 22px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000000;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

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

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

/* --------------------------------------------------------------------------
   Hero Reveal Stage & Top Cover Layer (Matches user screenshot)
   -------------------------------------------------------------------------- */
.hero-reveal-wrapper {
  position: relative;
  width: 100%;
  height: calc((62vh - 20px) + 90vh);
  z-index: 10;
}

.hero-cover-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(62vh - 20px);
  min-height: 440px;
  background-color: #ffffff;
  z-index: 10;
  pointer-events: auto;
}

.hero-cover-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: 80px;
  padding-bottom: 22px;
  background-image: repeating-linear-gradient(to right,
      transparent,
      transparent 88px,
      rgba(0, 0, 0, 0.035) 88px,
      rgba(0, 0, 0, 0.035) 89px);
  border-left: 1px solid rgba(0, 0, 0, 0.035);
  border-right: 1px solid rgba(0, 0, 0, 0.035);
}

/* Top Row: Title & Eyebrow on left, Contact button on right */
.hero-cover-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.hero-title-block {
  max-width: 760px;
}

.hero-cover-eyebrow {
  font-family: var(--font-secondary);
  font-size: clamp(3.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 0px;
  transform: translateX(-4px);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow-dark {
  color: #111827;
}

.eyebrow-teal {
  color: var(--color-teal);
}

.hero-cover-title {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 600;
  color: #202020;
  line-height: 1.5;
  letter-spacing: -0.03em;
  padding-left: 180px;
}

/* Contact Button */
.hero-cover-cta {
  padding-top: 14px;
}

.btn-hero-contact {
  display: inline-block;
  background-color: #111827;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 44px;
  border: 1px solid #111827;
  text-align: center;
  letter-spacing: 0.02em;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  opacity: 1 !important;
  visibility: visible !important;
}

.btn-hero-contact:hover {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Bottom Row: 3 columns (Logo, Scroll Down, Description) */
.hero-cover-bottom-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  align-items: center;
  gap: 24px;
}

.hero-cover-logo-col {
  display: flex;
  align-items: flex-end;
}

.hero-aj-logo {
  height: 52px;
  width: auto;
  max-width: 250px;
  display: block;
}

/* Scroll Down button */
.hero-cover-scroll-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-scroll-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #4b5563;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 16px;
  transition: color var(--transition-fast);
}

.hero-scroll-btn:hover {
  color: var(--color-teal);
}

.scroll-btn-text {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.scroll-chevrons-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2px;
  animation: scrollPulse 1.8s infinite ease-in-out;
}

.chevron-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: block;
}

.chevron-2 {
  margin-top: -7px;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Description paragraph */
.hero-cover-desc-col {
  display: flex;
  justify-content: flex-end;
}

.hero-cover-desc-col p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 420px;
  margin-bottom: 0;
  text-align: end;
}

/* --------------------------------------------------------------------------
   1. HERO BANNER SECTION (Sticky inside hero-reveal-wrapper)
   -------------------------------------------------------------------------- */
.banner-section {
  position: relative;
  padding: 0;
  margin: 0;
}

.banner-section.sticky-banner,
.banner-section.fixed-banner {
  position: sticky;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  z-index: 1;
  background-color: #111827;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.banner-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 1.1s;
  will-change: clip-path;
}

.carousel-slide.from-prev {
  clip-path: inset(0 100% 0 0);
}

.carousel-slide.active {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  z-index: 3;
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s;
}

.carousel-slide.leaving {
  visibility: visible;
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transition: none;
}

.carousel-slide.leaving .slide-img {
  transform: scale(1.1) translateX(-2%);
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Ken Burns: slow cinematic zoom on the active slide */
.carousel-slide img,
.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.12);
  transform-origin: center center;
  will-change: transform;
}

.carousel-slide.active .slide-img {
  transform: scale(1);
  transition: transform 9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Staggered masked heading reveal */
.slide-heading .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.slide-heading .word>span {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: left bottom;
  opacity: 0;
  filter: blur(6px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
}

.carousel-slide.active .slide-heading .word>span {
  transform: translateY(0) rotate(0);
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(0.55s + var(--i, 0) * 0.09s);
}

.carousel-slide.leaving .slide-heading .word>span {
  transform: translateY(-40%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

/* Thin accent line that draws under the heading */
.slide-content::after {
  content: '';
  display: block;
  width: 72px;
  height: 0px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s ease;
}

.carousel-slide.active .slide-content::after {
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s;
}

/* Banner Overlay (Transparent - black overlay removed) */
.slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 74px;
  padding-left: 32px;
  padding-right: 32px;
  text-align: center;
  pointer-events: none;
}

.slide-content {
  max-width: 1760px;
  margin: 0 auto;
  color: #ffffff;
  pointer-events: auto;
}

.slide-heading {
  font-family: var(--font-secondary);
  font-size: 5.25rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  text-shadow: none;
}

.slide-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
}

/* Staggered masked text reveal for banner slide paragraph */
.slide-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.slide-text .word>span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  filter: blur(5px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease, filter 0.65s ease;
}

.carousel-slide.active .slide-text .word>span {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(0.7s + var(--i, 0) * 0.04s);
}

.carousel-slide.leaving .slide-text .word>span {
  transform: translateY(-40%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

/* Glass carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.carousel-btn-prev {
  left: clamp(24px, 4vw, 56px);
}

.carousel-btn-next {
  right: clamp(24px, 4vw, 56px);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: #2b2b2b;
  stroke-width: 2.2;
  transition: stroke 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-btn:hover svg {
  stroke: #111827;
}

.carousel-btn-prev:hover svg {
  transform: translateX(-2px);
}

.carousel-btn-next:hover svg {
  transform: translateX(2px);
}

/* Progress-bar indicators + counter */
.banner-indicators {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.indicator-bar {
  position: relative;
  height: 3px;
  width: 44px;
  border-radius: 3px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
}

.indicator-bar.active {
  width: 72px;
}

.indicator-bar.active::after {
  animation: bannerProgress var(--slide-duration, 7s) linear forwards;
}

.banner-viewport.is-paused .indicator-bar.active::after {
  animation-play-state: paused;
}

@keyframes bannerProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.banner-counter {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  opacity: 0.95;
}

.banner-counter .counter-current {
  display: inline-block;
  height: 1.6rem;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6rem;
}

.banner-counter .counter-track {
  display: block;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.banner-counter .counter-track span {
  display: block;
  height: 1.6rem;
}

.banner-counter .counter-total {
  opacity: 0.6;
}

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

  .carousel-btn {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .carousel-slide,
  .carousel-slide.active,
  .carousel-slide .slide-img,
  .slide-heading .word>span,
  .slide-content::after {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }

  .carousel-slide.active .slide-img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   All Content Sections Stacking Context (Prevents any hero overlap)
   -------------------------------------------------------------------------- */
.section-story,
.section-why-choose,
.section-services-flow,
.section-facility,
.section-testimonial-pinstripes,
.section-home-gallery,
.section-contact,
.footer {
  position: relative;
  z-index: 20;
  scroll-margin-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

/* --------------------------------------------------------------------------
   2. THE STORY BEHIND PARKHILL CARE HOME (About Section)
   -------------------------------------------------------------------------- */
.section-story {
  padding: clamp(60px, 6.5vw, 92px) 0 clamp(64px, 7vw, 100px) 0;
  background-color: #f7f7f7;
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 20;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1.15fr) minmax(0, 0.82fr);
  gap: clamp(24px, 3.8vw, 54px);
  align-items: stretch;
}

/* Left Column: Title + Signboard Image */
.story-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-title-wrap {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.story-title-wrap .sacramento-eyebrow {
  font-family: var(--font-secondary);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  color: #2b2b2b;
  display: block;
  margin-bottom: 2px;
}

.story-title-wrap .switzer-title {
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 600;
  color: #2ca5ab;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.story-left-img-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.story-left-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

/* Center Column: Subtitle + Narrative Text */
.story-center-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(12px, 2vw, 30px);
  padding-left: 4px;
  padding-right: 4px;
}

.story-home-title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 300;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.story-text-italic {
  font-family: var(--font-primary);
  /* font-style: italic; */
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 400;
  color: #2d3748;
  line-height: 1.68;
  margin-bottom: 26px;
}

.story-text-cqc {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  font-weight: 600;
  color: #111827;
  line-height: 1.55;
  margin-bottom: 0;
}

.story-text-cqc a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  color: #111827;
  transition: color var(--transition-fast);
}

.story-text-cqc a:hover {
  color: var(--color-teal);
}

/* Right Column: Dining Room Image + Know More Action */
.story-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.story-right-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.story-right-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.story-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 9px 28px;
  border: 1px solid #111827;
  background-color: transparent;
  color: #111827;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 450;
  text-align: center;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #111827;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. WHY CHOOSE PARKHILL CARE HOME (Screenshot 2)
   -------------------------------------------------------------------------- */
.section-why-choose {
  padding: 90px 0;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border-subtle);
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
}

.why-col {
  padding: 0 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: #e5e7eb;
}

.why-icon-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: transform var(--transition-smooth);
}

.why-icon-wrap svg {
  width: 135px;
  height: 135px;
  max-height: 145px;
  overflow: visible;
  transition: transform var(--transition-smooth);
}

.why-col:hover .why-icon-wrap {
  transform: translateY(-4px);
}

.why-col:hover .why-icon-wrap svg {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Why Choose SVG Icon Animations
   -------------------------------------------------------------------------- */
/* Icon 1: Teal Wedge & Orbiting Navy Orb */
.why-icon-1 .why-shape-wedge {
  transform-origin: 114px 114px;
  animation: wedgeSway 3.6s ease-in-out infinite alternate;
}

.why-icon-1 .why-shape-orb {
  transform-origin: 192px 192px;
  animation: orbOrbit 3s ease-in-out infinite alternate;
}

@keyframes wedgeSway {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-5deg) scale(1.02);
  }
}

@keyframes orbOrbit {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-10px, -14px) scale(1.12);
  }
}

/* Icon 2: Overlapping Petals Breathing & Core Pulse */
.why-icon-2 .why-petal-1 {
  transform-origin: 123px 123px;
  animation: petalPulse1 3.8s ease-in-out infinite alternate;
}

.why-icon-2 .why-petal-2 {
  transform-origin: 70px 121px;
  animation: petalPulse2 3.8s ease-in-out infinite alternate 0.6s;
}

.why-icon-2 .why-petal-3 {
  transform-origin: 97px 70px;
  animation: petalPulse3 3.8s ease-in-out infinite alternate 1.2s;
}

.why-icon-2 .why-shape-core {
  transform-origin: 98px 98px;
  animation: corePulse 2.8s ease-in-out infinite alternate;
}

@keyframes petalPulse1 {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.06) rotate(6deg);
    opacity: 0.85;
  }
}

@keyframes petalPulse2 {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.06) rotate(-6deg);
    opacity: 0.85;
  }
}

@keyframes petalPulse3 {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.06) translateY(-5px);
    opacity: 0.85;
  }
}

@keyframes corePulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Icon 3: Levitation Bowl & Floating Orb */
.why-icon-3 .why-shape-bowl {
  transform-origin: 81px 120px;
  animation: bowlBreathe 3.4s ease-in-out infinite alternate;
}

.why-icon-3 .why-floating-orb {
  transform-origin: 81px 45px;
  animation: orbLevitate 2.5s ease-in-out infinite alternate;
}

@keyframes bowlBreathe {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.03);
  }
}

@keyframes orbLevitate {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-14px) scale(1.08);
  }
}

/* Icon 4: Sequential Rising Energy Dots */
.why-icon-4 .why-dot-1 {
  transform-origin: 32px 120px;
  animation: dotWave 2.2s ease-in-out infinite;
}

.why-icon-4 .why-dot-2 {
  transform-origin: 78px 77px;
  animation: dotWave 2.2s ease-in-out infinite 0.35s;
}

.why-icon-4 .why-dot-3 {
  transform-origin: 126px 32px;
  animation: dotWave 2.2s ease-in-out infinite 0.7s;
}

@keyframes dotWave {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-10px) scale(1.18);
    opacity: 1;
  }
}

.why-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 12px;
}

.why-col-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  max-width: 260px;
}

/* --------------------------------------------------------------------------
   4. CHOOSE THE RIGHT SERVICE FOR YOU (Screenshot 3)
   -------------------------------------------------------------------------- */
.section-services-flow {
  padding: 80px 0 100px;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}

/* Decorative background heart/ribbon icon from icons/service_bg.svg */
.services-bg-decor {
  position: absolute;
  top: 10px;
  right: -25px;
  width: 560px;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.services-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.carousel-nav-buttons {
  display: flex;
  gap: 10px;
}

.square-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.square-nav-btn:hover {
  border-color: #111827;
  background-color: #f9fafb;
}

.square-nav-btn:active {
  transform: scale(0.92);
  background-color: #f3f4f6;
  border-color: #111827;
}

.square-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: #111827;
  stroke-width: 1.5;
}

.services-mobile-carousel {
  display: none;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.service-flow-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.service-flow-card:hover {
  transform: translateY(-5px);
  border-color: #c7cbd1;
}

/* Second card offset downward to match the reference layout */
.service-flow-card:nth-child(2) {
  margin-top: 55px;
}

.service-card-img-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

/* 3px centered inset white border frame inside image (matches reference design) */
.service-card-img-wrap::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 3px solid #ffffff;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

/* Hover state: 3px white border shrinks inward towards image center */
.service-flow-card:hover .service-card-img-wrap::after {
  transform: scale(0.88);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

/* Entrance scroll reveal shrinking animation */
@keyframes borderShrinkIn {
  0% {
    transform: scale(1.14);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.services-cards-grid.is-revealed .service-card-img-wrap::after {
  animation: borderShrinkIn 0.85s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}

.services-cards-grid.is-revealed .service-flow-card:nth-child(1) .service-card-img-wrap::after {
  animation-delay: 0.15s;
}

.services-cards-grid.is-revealed .service-flow-card:nth-child(2) .service-card-img-wrap::after {
  animation-delay: 0.3s;
}

.services-cards-grid.is-revealed .service-flow-card:nth-child(3) .service-card-img-wrap::after {
  animation-delay: 0.45s;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-flow-card:hover .service-card-img-wrap img {
  transform: scale(1.04);
}

.service-card-content {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  background-color: #ffffff;
}

.service-card-heading {
  font-size: 1.15rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}

.service-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.service-chevron-svg {
  width: 15px;
  height: 15px;
  stroke: #111827;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.service-know-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  color: #111827;
  margin-top: 24px;
  transition: color var(--transition-fast);
}

.service-know-more-link svg {
  width: 15px;
  height: 15px;
  stroke: #111827;
  stroke-width: 1.5;
  transition: transform var(--transition-fast);
}

.service-know-more-link:hover {
  color: var(--color-teal);
}

.service-know-more-link:hover svg {
  stroke: var(--color-teal);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   FACILITY FEATURES & AMENITIES SECTION
   -------------------------------------------------------------------------- */
.section-facility {
  padding: clamp(60px, 6.5vw, 92px) 0 clamp(64px, 7vw, 96px) 0;
  background-color: #f7f7f7;
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 20;
}

.facility-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.facility-content-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.facility-title-wrap {
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.facility-title-wrap .sacramento-eyebrow {
  font-family: var(--font-secondary);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  color: #2b2b2b;
  display: block;
  margin-bottom: 2px;
}

.facility-title-wrap .switzer-title {
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 500;
  color: #2ca5ab;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.facility-amenities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  width: 100%;
}

.amenity-column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.amenity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.2vw, 24px) 0;
  border-bottom: 1px solid #e5e7eb;
  transition: border-color var(--transition-fast);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
}

.amenity-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 0.98vw, 1.2rem);
  font-weight: 200;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: 0.005em;
  transition: color var(--transition-fast);
}

.amenity-chevron {
  width: 13px;
  height: 13px;
  color: #2b2b2b;
  stroke-width: 2.2;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.amenity-item:hover .amenity-name {
  color: var(--color-teal);
}

.amenity-item:hover .amenity-chevron {
  color: var(--color-teal);
  transform: translateX(3px);
}

.facility-img-col {
  display: flex;
  justify-content: center;
  align-self: center;
}

.facility-img-wrap {
  width: 100%;
  max-width: 275px;
}

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

/* --------------------------------------------------------------------------
   5. DON'T TAKE OUR WORD FOR IT (Screenshot 4 - Testimonial)
   -------------------------------------------------------------------------- */
.section-testimonial-pinstripes {
  padding: 90px 0;
  /* Subtle vertical pinstripe texture exactly as in screenshot 4 */
  background-color: #ffffff;
  background-image: repeating-linear-gradient(to right,
      transparent,
      transparent 88px,
      rgba(0, 0, 0, 0.035) 88px,
      rgba(0, 0, 0, 0.035) 89px);
  border-top: 1px solid var(--color-border-subtle);
}

.testimonial-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.testimonial-lead-desc {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.6;
  max-width: 360px;
  text-align: right;
  margin-top: 10px;
}

.testimonial-carousel-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.testimonial-cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card-box {
  background-color: #f3f4f6;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.testimonial-card-quote {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: #111827;
  line-height: 1.7;
  margin-bottom: 28px;
}

.testimonial-card-author {
  margin-bottom: 0;
  font-size: 3rem;
}

/* Quotation Mark Icon (Teal & Blue as in screenshot 4) */
.testimonial-quote-svg {
  width: 68px;
  height: 56px;
  flex-shrink: 0;
  margin-top: 8px;
}

.quote-statement {
  font-size: 1.65rem;
  font-weight: 500;
  font-style: italic;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 680px;
}

.quote-signature-name {
  font-family: var(--font-secondary);
  font-size: 3.4rem;
  color: #1c887d;
  line-height: 1;
  margin-bottom: 36px;
  display: block;
}

.testimonial-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.testimonial-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-indicator {
  height: 3px;
  width: 30px;
  background-color: #b0b4b8;
}

.t-indicator.active {
  background-color: #000000;
  width: 46px;
}

/* --------------------------------------------------------------------------
   6. WHAT'S HAPPENING INSIDE OUR HOME (Screenshot 5 - Gallery Marquee)
   -------------------------------------------------------------------------- */
.section-home-gallery {
  padding: 85px 0 65px;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border-subtle);
  overflow: hidden;
}

.gallery-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 25px;
  position: relative;
  user-select: none;
}

.gallery-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: galleryMarqueeScroll 38s linear infinite;
  will-change: transform;
}

.gallery-marquee-wrapper:hover .gallery-marquee-track {
  animation-play-state: paused;
}

.gallery-strip-item {
  width: 320px;
  height: 390px;
  flex: 0 0 320px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Stagger: 1 UP, 2 DOWN, 3 UP alternating wave pattern */
.gallery-strip-item:nth-child(odd) {
  margin-top: 0;
}

.gallery-strip-item:nth-child(even) {
  margin-top: 60px;
}

.gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-strip-item:hover img {
  transform: scale(1.05);
}

@keyframes galleryMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Horizontal Track / Slider Bar */
.gallery-track-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.gallery-slider-bar {
  width: 160px;
  height: 3px;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.gallery-slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background-color: #000000;
  animation: galleryProgressScroll 38s linear infinite;
  will-change: transform;
}

.section-home-gallery:hover .gallery-slider-progress {
  animation-play-state: paused;
}

@keyframes galleryProgressScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(114px);
  }
}

@media (max-width: 768px) {
  .gallery-strip-item {
    width: 250px;
    height: 320px;
    flex: 0 0 250px;
  }

  .gallery-strip-item:nth-child(even) {
    margin-top: 40px;
  }

  .gallery-marquee-track {
    animation-duration: 28s;
    gap: 16px;
  }

  .gallery-slider-progress {
    animation-duration: 28s;
  }
}

/* --------------------------------------------------------------------------
   FLOATING PHONE CALL BUTTON (Teal Square - Matches all screenshots)
   -------------------------------------------------------------------------- */
.floating-call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  background-color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.floating-call-btn:hover {
  background-color: var(--color-teal-hover);
  transform: translateY(-2px) scale(1.05);
}

.floating-call-btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* Call Popover Modal */
.call-popover {
  position: fixed;
  bottom: 92px;
  right: 30px;
  width: 320px;
  background-color: #ffffff;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.call-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.popover-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-title);
}

.popover-close {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.popover-body p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 16px;
}

.popover-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-teal);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.popover-phone-btn:hover {
  background-color: var(--color-teal-hover);
}

.popover-hours {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   7. CONTACT SECTION ("Stay up to date With Care home")
   -------------------------------------------------------------------------- */
.section-contact {
  position: relative;
  z-index: 20;
  padding: 100px 0 110px;
  background-color: var(--color-bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 64px;
  align-items: center;
}

/* Left Column: Title & Staff Photo */
.contact-info-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title-wrap {
  margin-bottom: 32px;
}

.contact-title-wrap .sacramento-eyebrow {
  font-family: var(--font-secondary);
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  color: #333333;
  margin-bottom: 0px;
  transform: translateX(-4px);
  letter-spacing: 0.01em;
}

.contact-title-wrap .switzer-title {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: #0C8E81;
  line-height: 1.50;
  letter-spacing: -0.025em;
  margin-top: -6px;
}

.contact-image-wrap {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.contact-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Right Column: Contact Form Card */
.contact-form-card {
  border: 1px solid #e2e5e9;
  background-color: #ffffff;
  padding: 44px 44px 38px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

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

.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 400;
  color: #111827;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-star {
  color: #c92a2a;
  font-weight: 600;
}

.form-input {
  width: 100%;
  height: 52px;
  border: 1px solid #e0e3e7;
  background-color: #ffffff;
  padding: 0 16px;
  font-family: var(--font-primary);
  font-size: 0.94rem;
  color: #111827;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-input:focus {
  border-color: var(--color-teal);
}

/* Phone Input Group (with UK Flag & +44 Dial Code) */
.phone-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 1px solid #e0e3e7;
  background-color: #ffffff;
  transition: border-color var(--transition-fast);
}

.phone-input-group:focus-within {
  border-color: var(--color-teal);
}

.country-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  border-right: 1px solid #e5e7eb;
  cursor: pointer;
  user-select: none;
}

.country-flag {
  width: 24px;
  height: 15px;
  object-fit: cover;
  display: block;
}

.picker-chevron {
  width: 14px;
  height: 14px;
  stroke: #4b5563;
  display: block;
}

.phone-dial-code {
  padding: 0 8px 0 14px;
  font-family: var(--font-primary);
  font-size: 0.94rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.phone-number-input {
  border: none !important;
  height: 100%;
  flex: 1;
  padding: 0 14px 0 4px;
  outline: none;
  font-family: var(--font-primary);
  font-size: 0.94rem;
  color: #111827;
  background: transparent;
  box-shadow: none !important;
}

/* Form Textarea */
.form-textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid #e0e3e7;
  background-color: #ffffff;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 0.94rem;
  color: #111827;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.form-textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-textarea:focus {
  border-color: var(--color-teal);
}

/* Form Bottom Row: Checkbox & Submit Button */
.form-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  max-width: 440px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #111827;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4b5563;
  font-weight: 400;
  user-select: none;
}

.btn-contact-submit {
  display: inline-block;
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 42px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-contact-submit:hover {
  background-color: var(--color-teal);
  transform: translateY(-2px);
}

.btn-contact-submit:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   FOOTER (Exact match to reference design)
   -------------------------------------------------------------------------- */
.footer {
  background-color: #F4F4F4;
  color: #111827;
  padding: 68px 0 24px;
  margin-top: auto;
  position: relative;
}

.footer-grid-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.85fr 2.3fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: flex-start;
  padding-bottom: 20px;
}

.footer-script-heading {
  font-family: var(--font-secondary);
  font-size: 2.6rem;
  color: #3EBBC2;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-primary);
  font-size: 0.94rem;
  color: #374151;
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.footer-link:hover {
  color: #3EBBC2;
}

/* Contact List with Circular Outline Icons */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.footer-contact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
}

.footer-contact-label {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.3;
  margin-bottom: 2px;
}

.footer-contact-val {
  font-size: 0.94rem;
  color: #111827;
  text-decoration: none;
  line-height: 1.4;
}

.footer-contact-val.bold {
  font-weight: 700;
}

.footer-contact-val.multiline {
  color: #1f2937;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Subscribe Box with Top AJ Logo */
.footer-brand-logo-wrap {
  margin-bottom: 18px;
}

.footer-aj-logo {
  height: 36px;
  width: auto;
  max-width: 220px;
  display: block;
}

.footer-subscribe-heading {
  font-family: var(--font-primary);
  font-size: 1.18rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.footer-subscribe-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 340px;
}

.footer-subscribe-input {
  flex: 1;
  height: 44px;
  background-color: #ededed;
  border: 1px solid #dcdfe4;
  border-radius: 2px;
  padding: 0 16px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  color: #111827;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-subscribe-input:focus {
  border-color: #3EBBC2;
  background-color: #ffffff;
}

.footer-subscribe-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-subscribe-btn:hover {
  transform: scale(1.06);
  border-color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.footer-subscribe-btn img,
.footer-subscribe-btn svg {
  width: 40px;
  height: 40px;
  display: block;
}

.footer-legal-links {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.5;
}

.footer-legal-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: #3EBBC2;
}

/* Middle Large Script Brand Watermark */
.footer-watermark-row {
  width: 100%;
  text-align: center;
  padding: 24px 0 18px 0;
  user-select: none;
  pointer-events: none;
}

.footer-watermark-script {
  font-family: var(--font-secondary);
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
  color: #C3C8D0;
  line-height: 1.05;
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.015em;
  opacity: 0.95;
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid #dce0e5;
  font-size: 0.85rem;
  color: #374151;
}

.footer-developed-by {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.footer-trailzyz-logo {
  height: 20px;
  width: auto;
}

.footer-copyright {
  font-size: 0.84rem;
  color: #374151;
  text-align: center;
}

.footer-back-wrap {
  display: flex;
  align-items: center;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer-back-to-top:hover {
  color: #3EBBC2;
}

.chevron-up-icon {
  width: 14px;
  height: 14px;
  stroke: #0C8E81;
}

/* --------------------------------------------------------------------------
   Lightbox Modal for Gallery
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --container-padding: 32px;
  }

  .banner-carousel {
    height: 560px;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
  }

  .why-columns {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .why-col:nth-child(2)::after {
    display: none;
  }

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

  .service-flow-card:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 992px) {
  :root {
    --container-padding: 24px;
  }

  body {
    overflow-x: hidden;
  }

  /* Header & Navigation */
  .header-container {
    height: 70px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 28px 32px;
    gap: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 1000;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link:active {
    color: var(--color-teal);
    padding-left: 6px;
  }

  /* Hero Section: Stacked cleanly on mobile/tablet (Cover first, then Banner) */
  .hero-reveal-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    position: relative;
    width: 100%;
  }

  .hero-cover-section {
    order: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 44px 0 36px 0;
    background-color: #ffffff;
    z-index: 2;
  }

  .hero-cover-container {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    background-image: none;
    border-left: none;
    border-right: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .hero-cover-top-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-title-block {
    max-width: 100%;
    width: 100%;
  }

  .hero-cover-eyebrow {
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    flex-wrap: wrap;
    gap: 8px 12px;
    line-height: 1.05;
    transform: none;
  }

  .hero-cover-title {
    padding-left: 0 !important;
    font-size: clamp(1.9rem, 6.5vw, 2.6rem);
    line-height: 1.25;
    margin-top: 8px;
    letter-spacing: -0.02em;
  }

  .hero-cover-cta {
    padding-top: 0;
    width: 100%;
  }

  .btn-hero-contact {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-cover-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
  }

  .hero-cover-logo-col {
    width: 100%;
  }

  .hero-aj-logo {
    height: 38px;
    width: auto;
  }

  .hero-cover-desc-col {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-cover-desc-col p {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
  }

  .hero-cover-scroll-col {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 8px;
  }

  .banner-section.sticky-banner,
  .banner-section.fixed-banner {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: 1;
  }

  .banner-carousel {
    height: 440px;
    width: 100%;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-content-overlay {
    padding: 24px 20px;
  }

  .slide-heading {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .slide-text {
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 100%;
  }

  /* Story Section */
  .section-story {
    padding: 56px 0 64px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .story-left-col {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .story-title-wrap {
    text-align: left;
    margin-bottom: 22px;
  }

  .story-left-img-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  .story-left-img {
    max-width: 100%;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 4px;
  }

  .story-center-col {
    order: 2;
    padding-top: 0;
    padding-bottom: 0;
    align-items: flex-start;
    text-align: left;
  }

  .story-right-col {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .story-right-img-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  .story-right-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }

  .story-btn-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 4px;
  }

  .story-btn-wrap .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .story-text-italic {
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 22px;
  }

  .story-text-cqc {
    font-size: 1rem;
    line-height: 1.6;
  }

  .cqc-rating-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* Typography helpers */
  .sacramento-eyebrow {
    font-size: clamp(2.4rem, 7.5vw, 3rem);
  }

  .switzer-title {
    font-size: clamp(1.85rem, 6vw, 2.4rem);
    line-height: 1.25;
  }

  /* Services Section */
  .section-services-flow {
    padding: 60px 0;
    overflow: hidden;
  }

  .services-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .carousel-nav-buttons {
    align-self: flex-end;
  }

  /* Facility Section */
  .section-facility {
    padding: 56px 0 64px 0;
  }

  .facility-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
  }

  .facility-img-col {
    justify-content: center;
    align-self: center;
    width: 100%;
  }

  .facility-img-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Testimonials Section */
  .section-testimonials {
    padding: 60px 0;
  }

  .testimonial-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .testimonial-carousel-row {
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-cards-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card-box {
    padding: 32px 24px;
    min-height: auto;
  }

  /* Contact Section */
  .section-contact-card {
    padding: 60px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-image-wrap {
    max-width: 100%;
    height: 300px;
  }

  .contact-form-card {
    padding: 32px 24px;
  }

  /* Footer */
  .footer {
    padding: 50px 0 24px 0;
  }

  .footer-grid-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

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

/* --------------------------------------------------------------------------
   Mobile Phones (Tablets vertical, large smartphones, standard phones)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 18px;
  }

  /* Banner */
  .banner-carousel {
    height: 380px;
  }

  .slide-heading {
    font-size: 1.5rem;
  }

  .slide-text {
    font-size: 0.88rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  /* Why Choose: 1 Column */
  .section-why-choose {
    padding: 54px 0;
  }

  .why-columns {
    grid-template-columns: 1fr;
    row-gap: 36px;
    margin-top: 32px;
  }

  .why-col {
    padding: 0 16px;
  }

  .why-col::after {
    display: none !important;
  }

  .why-icon-wrap {
    height: 130px;
    margin-bottom: 20px;
  }

  .why-icon-wrap svg {
    width: 110px;
    height: 110px;
    max-height: 115px;
  }

  .why-col-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .why-col-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 320px;
  }

  /* Services: Mobile Carousel */
  .services-cards-grid {
    display: none !important;
  }

  .services-mobile-carousel {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .services-mobile-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
  }

  .service-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
  }

  .services-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    align-items: center;
  }

  .service-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #d1d5db;
    transition: all 0.25s ease;
    cursor: pointer;
    padding: 0;
  }

  .service-dot.active {
    width: 26px;
    border-radius: 10px;
    background-color: #0C8E81;
  }

  .service-flow-card:nth-child(2) {
    margin-top: 0;
  }

  .service-card-img-wrap {
    height: 300px;
  }

  .service-card-content {
    padding: 20px 18px;
    min-height: auto;
  }

  /* Facility: 1 Column */
  .facility-amenities-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .amenity-item {
    padding: 11px 0;
  }

  /* Testimonials */
  .quote-statement {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .quote-author-sig {
    font-size: 2.1rem;
    margin-top: 12px;
  }

  .testimonial-controls {
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
  }

  /* Gallery */
  .section-home-gallery {
    padding: 54px 0;
  }

  .gallery-card img {
    height: 210px;
  }

  .gallery-card:nth-child(even) img {
    height: 180px;
  }

  /* Contact Form */
  .contact-image-wrap {
    height: 240px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    /* Prevents auto-zoom on iOS */
    height: 46px;
  }

  .form-group textarea {
    height: 100px;
  }

  .form-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn-contact-submit {
    width: 100%;
    padding: 14px;
    text-align: center;
  }

  /* Footer */
  .footer-grid-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-watermark-row {
    padding: 16px 0 12px 0;
  }

  .footer-watermark-script {
    font-size: clamp(2.8rem, 11vw, 4.6rem);
  }

  /* Floating Call & Popover */
  .floating-call-btn {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .call-popover {
    right: 16px;
    left: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
    bottom: 76px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Devices (<= 480px, e.g. iPhone SE, compact Androids)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .header-container {
    height: 65px;
  }

  .logo-text {
    font-size: 1.18rem;
  }

  .nav-menu {
    top: 65px;
    padding: 20px 20px 28px;
  }

  .hero-cover-section {
    padding: 36px 0 28px 0;
  }

  .hero-cover-eyebrow {
    font-size: 2.3rem;
  }

  .hero-cover-title {
    font-size: 1.75rem;
  }

  .btn-hero-contact {
    max-width: 100%;
  }

  .banner-carousel {
    height: 330px;
  }

  .slide-content-overlay {
    padding: 18px 14px;
  }

  .slide-heading {
    font-size: 1.35rem;
  }

  .slide-text {
    font-size: 0.82rem;
  }

  .service-card-img-wrap {
    height: 250px;
  }

  .service-card-img-wrap::after {
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .testimonial-author-photo {
    max-width: 200px;
    height: 200px;
  }

  .quote-statement {
    font-size: 0.98rem;
  }

  .gallery-card img {
    height: 190px;
  }

  .gallery-card:nth-child(even) img {
    height: 165px;
  }

  .contact-form-card {
    padding: 20px 14px;
  }

  /* About / Story section */
  .section-story {
    padding: 44px 0 52px 0;
  }

  .story-grid {
    gap: 32px;
  }

  .story-home-title {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }

  .story-text-italic {
    font-size: 0.95rem;
    line-height: 1.62;
    margin-bottom: 18px;
  }

  .story-text-cqc {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .story-left-img,
  .story-right-img {
    max-height: 320px;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .story-btn-wrap .btn-outline {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    font-size: 0.92rem;
  }
}

/* --------------------------------------------------------------------------
   Lenis Smooth Scrolling Support
   -------------------------------------------------------------------------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   GSAP & Text Reveal Optimization
   -------------------------------------------------------------------------- */
.sacramento-eyebrow,
.switzer-title,
.hero-cover-title,
.hero-cover-eyebrow,
.story-home-title,
.story-text-italic,
.story-text-cqc,
.why-col-desc,
.amenity-name,
.service-card-para,
.testimonial-lead-desc,
.quote-statement {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* --------------------------------------------------------------------------
   Smooth Scroll-Blur Rise Heading & Paragraph Animation (.rise, .ch, .is-in, @keyframes rise)
   -------------------------------------------------------------------------- */
.rise {
  display: inline-block;
}

.sacramento-eyebrow.rise {
  display: block;
}

.switzer-title.rise {
  display: block;
}

.hero-cover-eyebrow.rise {
  display: flex;
}

/* Paragraphs stay block display and retain their natural typography */
p.rise,
.rise-p {
  display: block;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Standalone .rise fallback clamp font-size only for standalone headings */
.rise:not(.switzer-title):not(.sacramento-eyebrow):not(.hero-cover-title):not(.hero-cover-eyebrow):not(.story-home-title):not(p):not(.rise-p) {
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.rise-word {
  display: inline-block;
  white-space: nowrap;
}

.rise-space {
  display: inline-block;
}

.rise .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(5deg);
  filter: blur(7px);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Heading animation stagger (40ms per char) */
.rise.is-in .ch {
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 40ms);
}

/* Paragraph animation stagger: smooth & readable (13ms per char) */
p.rise.is-in .ch,
.rise-p.is-in .ch {
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 13ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .rise .ch,
  p.rise .ch,
  .rise-p .ch {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* Rich text / HTML content formatting (Careers & Custom Pages) */
.rich-content {
  color: #334155;
  line-height: 1.7;
  font-size: 0.98rem;
}

.rich-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  margin: 1.35rem 0 0.6rem;
}

.rich-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin: 1.15rem 0 0.5rem;
}

.rich-content p {
  margin-bottom: 0.85rem;
}

.rich-content p:last-child {
  margin-bottom: 0;
}

.rich-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.6rem 0 1rem;
}

.rich-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0.6rem 0 1rem;
}

.rich-content li {
  margin-bottom: 0.35rem;
}

.rich-content a {
  color: #2b9ea4;
  text-decoration: underline;
}

.rich-content blockquote {
  border-left: 3px solid #3ebbc2;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #475569;
  font-style: italic;
}

.rich-content strong {
  font-weight: 600;
  color: #0f172a;
}