/* ==========================================================================
   STILL WATER — Design System
   A brokerage for medical professionals, built on one idea: still waters
   run deep. Calm surface, real depth underneath. That governs every
   choice below — the palette reads like water at rest, the type is
   quiet with one confident display face, and the signature motif is a
   ripple: concentric rings that mark depth, not decoration.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — exactly these six */
  --c-indigo: #0B1A28;;
  --c-blue:   #7FAEAE;
  --c-slate:  #AA8248;
  --c-grey:   #775c2d;
  --c-mist:   #7FAEAE;
  --c-mist-light: #d8e6e6;
  --c-white:  #FFFFFF;

    /* --c-indigo: #04043B;
  --c-blue:   #092292;
  --c-slate:  #5888e7;
  --c-grey:   #7D8597;
  --c-mist:   #979DAC;
  --c-white:  #FFFFFF; */

  /* Semantic roles, mapped from the six above. Two tints are mixed from
     brand blue + white via color-mix() rather than a new hex, so the
     palette stays exactly the six specified. */
  --ink: var(--c-indigo);        /* deep backgrounds */
  --ink-soft: var(--c-slate);    /* raised surface on ink */
  --ink-line: rgba(255, 255, 255, 0.14);

  --mist: var(--c-white);        /* main light background */
  --mist-deep: rgba(51, 65, 92, 0.055);  /* alternating section wash, off --c-slate */
  --paper: var(--c-white);       /* card surface */

  --teal: var(--c-blue);         /* primary accent — buttons, links, focus */
  --teal-light: color-mix(in srgb, var(--c-blue) 80%, white 20%);
  --teal-tint: color-mix(in srgb, var(--c-blue) 8%, white 92%);

  --dim: var(--c-mist);          /* soft accent for labels/numerals on dark */

  --slate: var(--c-slate);       /* body text on light */
  --slate-soft: var(--c-grey);   /* secondary text on light */
  --mist-text: var(--c-white);   /* body text on dark */
  --mist-text-soft: var(--c-mist); /* secondary text on dark */

  --line: rgba(51, 65, 92, 0.14);
  --success: #5F8566;
  --error: #A24A3B;

  /* Stillwater Brand Typography */
    @font-face {
    font-family: 'Museo 300';
    font-style: normal;
    font-weight: normal;
    src: local('Museo 300'), url('css/font/Museo300-Regular.woff') format('woff');
    }   

    @font-face {
    font-family: 'Museo 700';
    font-style: normal;
    font-weight: normal;
    src: local('Museo 700'), url('css/font/Museo700-Regular.woff') format('woff');
    }

    .Museo300 {
    font-family: 'Museo 300' !important;
    font-style: normal;
    font-weight: 300;
    src: local('Museo 300'), url('css/font/Museo300-Regular.woff') format('woff');
    }   

    .Museo700 {
    font-family: 'Museo 700' !important;
    font-style: normal;
    font-weight: 700;
    src: local('Museo 700'), url('css/font/Museo700-Regular.woff') format('woff');
    }



  /* Type */
  --font-display: 'Museo 700', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'Montserrat', sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 780px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 9vw, 8rem);

  --shadow-1: 0 1px 2px rgba(14, 6, 99, 0.06), 0 20px 40px -24px rgba(14, 6, 99, 0.22);
  --shadow-2: 0 30px 60px -30px rgba(14, 6, 99, 0.35);

  --ease: cubic-bezier(0.25, 0.7, 0.25, 1);
  --dur-1: 0.5s;
  --dur-2: 0.9s;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--c-white); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  /* font-family: var(--font-display); */
  font-family: 'museo700', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--slate);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--mist); }

h1 { font-size: clamp(2.6rem, 2.1rem + 2.6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 1.7rem + 1.6vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

p { color: var(--slate-soft); max-width: 62ch; }
.on-dark p { color: var(--mist-text-soft); }

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--slate-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.90rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.on-dark .eyebrow { color: var(--dim); }
/* .eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
} */

.text-mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.55); }
.section--dark { background: var(--ink); color: var(--mist-text); }
.section--alt { background: var(--mist-deep); }
.section--paper { background: var(--paper); }

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

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head > .eyebrow { margin-bottom: 1rem; }
.section-head > h2 { margin-top: 0.6rem; }
.section-head > p { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }

hr.rule { border: none; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.on-dark hr.rule { border-top-color: var(--ink-line); }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--mist); }
.btn-primary:hover { background: var(--teal-light); }
.btn-brass { background: var(--c-white); color: var(--ink); }
.btn-brass:hover { background: var(--dim); }
/* .btn-ghost { border-color: var(--line); color: var(--slate); } */
.btn-ghost { border-color: #06a7f1; color: var(--slate); }
/* .btn-ghost:hover { border-color: var(--teal); color: var(--teal); } */
.btn-ghost:hover { border-color: #fff; color: #fff; }
.on-dark .btn-ghost { border-color: var(--ink-line); color: var(--mist); }
.on-dark .btn-ghost:hover { border-color: var(--c-white); color: var(--c-white); }
.btn svg { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.link-arrow::after { content: '\2197'; transition: transform var(--dur-1) var(--ease); }
.link-arrow:hover::after { transform: translate(2px, -2px); }
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur-1) var(--ease);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--slate); }
.logo svg { width: 30px; height: 30px; flex: none; }

.nav-primary { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem); }
.nav-primary a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-soft);
  position: relative;
  padding: 0.3rem 0;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--slate); }
.nav-primary a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--slate); }
.header-phone svg { width: 16px; height: 16px; color: var(--teal); }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--slate);
  position: relative; transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6.5 Section dividers — water-flow curves
   A layered, flowing wave between two sections, overlapping into the one
   that follows. It's its own empty, aria-hidden block — no text ever sits
   inside it, so by construction it can never cross or clip copy. Two
   colour variants, each built from two wave layers for genuine depth: a
   grey layer behind, a blue (or slate) layer in front. The container
   itself carries a solid background matching the back layer's colour, so
   there's never a gap even if the wave paths don't reach the very top
   edge of the band.
   -------------------------------------------------------------------------- */
:root {
  --divider-h: 130px;      /* visible band thickness */
  --divider-overlap: 64px; /* how far it reaches into the next section */
}
.divider {
  position: relative;
  height: var(--divider-h);
  margin-bottom: calc(var(--divider-overlap) * -1);
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
  background: var(--mist-cool, #0B1A28);
  /* background: var(--mist-cool, #979DAC);#04043B */
}
.divider svg { display: block; width: 100%; height: 100%; }

/* Safety net: whatever section follows a divider gets its top padding
   bumped by the overlap amount, on top of its own normal padding scale
   (tight sections included) — holds regardless of --divider-h/--overlap
   tuning, so content can never end up under the wave. */
.divider + .hero,
.divider + .section {
  padding-top: calc(var(--section-pad) + var(--divider-overlap));
}
.divider + .section--tight {
  padding-top: calc(var(--section-pad) * 0.55 + var(--divider-overlap));
}

@media (max-width: 760px) {
  :root {
    --divider-h: 72px;
    --divider-overlap: 34px;
  }
}

/* --------------------------------------------------------------------------
   7. Hero + ripple signature
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--mist-text);
  overflow: hidden;
  /* padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); */
  padding-block: 40px;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink) url('../assets/video/hero-background-1.jpg') center / cover no-repeat;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero--video-failed .hero__video {
  display: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  /* Ink wash over the footage so hero text stays legible and the
     brand's calm, dark register holds regardless of the clip's own
     colours. Darker toward the bottom, where the waterline stats sit. */
  background: linear-gradient(180deg, rgba(14,6,99,0.72) 0%, rgba(14,6,99,0.6) 45%, rgba(14,6,99,0.88) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__eyebrow { margin-bottom: 1.4rem; color:#979DAC; }
.hero h1 { color: var(--mist); }
.hero__lede { margin-top: 1.4rem; max-width: 46ch; }
.hero__actions { margin-top: 2.2rem; }

.ripple-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.ripple-figure svg { width: 100%; height: 100%; overflow: visible; }
.ripple-figure circle {
  fill: none;
  stroke: var(--dim);
  stroke-opacity: 0.55;
}
.ripple-figure .ripple-core { fill: var(--c-white); stroke: none; }

/* Waterline stat bar */
.waterline {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink-line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  position: relative; z-index: 2;
}
.waterline__item { position: relative; padding-left: 1.1rem; }
.waterline__item::before {
  content: '';
  position: absolute; left: 0; top: 0.35rem; bottom: 0.35rem;
  width: 2px; background: var(--teal-light);
}
.waterline__value { font-family: var(--font-mono); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--mist); display: block; }
.waterline__label { font-size: 0.85rem; color: var(--mist-text-soft); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: transparent; }

.service-card { display: flex; flex-direction: column; gap: 1.1rem; }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card ul { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.3rem; }
.service-card li { font-size: 0.92rem; color: var(--slate-soft); display: flex; gap: 0.6rem; }
.service-card li::before { content: '\2013'; color: var(--teal); flex: none; }

.value-card { text-align: left; 
background:#d8d8d8; border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1.6rem, 3vw, 2.3rem); transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.value-card__index { font-family: var(--font-mono); color: var(--teal); font-size: 0.85rem; }

.team-card { text-align: left; }
.team-card__portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 1.1rem; background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
}
.team-card__portrait svg { width: 46%; opacity: 0.7; }
.team-card__role { color: var(--teal); font-size: 0.85rem; font-family: var(--font-mono); }

.post-card { display: flex; flex-direction: column; gap: 0.9rem; }
.post-card__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card__tag {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--teal-tint); color: var(--teal); font-size: 0.72rem;
  font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   9. Process (real sequence — numbering is earned here)
   -------------------------------------------------------------------------- */
.process { counter-reset: step; }
.process__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}
.on-dark .process__item { border-top-color: var(--ink-line); }
.process__item:last-child { border-bottom: 1px solid var(--line); }
.on-dark .process__item:last-child { border-bottom-color: var(--ink-line); }
.process__num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--dim);
  padding-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--teal);
  color: var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.cta-band h2, .cta-band p { color: var(--mist); }
.cta-band p { color: rgba(255,255,255,0.8); }
.cta-band__grid {
  display: grid; grid-template-columns: 1.2fr auto; gap: 2rem; align-items: center;
  position: relative; z-index: 1;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--slate); }
.on-dark .field label { color: var(--mist); }
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color var(--dur-1) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-hint { font-size: 0.78rem; color: var(--slate-soft); }
.field-error { font-size: 0.80rem; color: #f10808; display: none; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-note {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}
.form-note.is-visible { display: block; }
.form-note--success { background: rgba(95,133,102,0.12); color: var(--success); border: 1px solid rgba(95,133,102,0.3); }
.form-note--error { background: rgba(162,74,59,0.1); color: var(--error); border: 1px solid rgba(162,74,59,0.28); }

/* --------------------------------------------------------------------------
   12. Calculators
   -------------------------------------------------------------------------- */
.calc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.calc__results {
  background: var(--ink);
  color: var(--mist);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  align-self: start;
  position: sticky;
  top: 6.5rem;
}
.calc__result-row { display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.9rem; border-top: 1px solid var(--ink-line); }
.calc__result-row:first-of-type { border-top: none; }
.calc__result-label { font-size: 0.85rem; color: var(--mist-text-soft); }
.calc__result-value { font-family: var(--font-mono); font-size: 1.35rem; color: var(--dim); }
.calc__result-value--lead { font-size: 1.9rem; color: var(--mist); }
.calc__disclaimer { font-size: 0.75rem; color: var(--mist-text-soft); margin-top: 1.3rem; }
.range-value { font-family: var(--font-mono); color: var(--teal); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--teal); }

/* --------------------------------------------------------------------------
   13. Testimonials (Swiper overrides)
   -------------------------------------------------------------------------- */
.testimonial-slide { padding: 0.5rem 0.3rem 2.5rem; }
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 1.5rem);
  height: 100%;
  min-height: 350px;
}
.testimonial p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--slate); max-width: none; }
.testimonial__meta { margin-top: 1.3rem; font-size: 0.85rem; color: var(--slate-soft); }
.swiper-pagination { position: relative !important; margin-top: 1rem; }
.swiper-pagination-bullet { background: var(--slate-soft); opacity: 0.35; }
.swiper-pagination-bullet-active { background: var(--teal); opacity: 1; }

/* --------------------------------------------------------------------------
   14. FAQ accordion
   -------------------------------------------------------------------------- */
.accordion__item { border-top: 1px solid var(--line); }
.accordion__item:last-child { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; padding-block: 1.5rem;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--slate);
}
.accordion__icon { flex: none; width: 22px; height: 22px; position: relative; }
.accordion__icon::before, .accordion__icon::after {
  content: ''; position: absolute; background: var(--teal);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.accordion__icon::before { width: 14px; height: 2px; }
.accordion__icon::after { width: 2px; height: 14px; transition: transform var(--dur-1) var(--ease); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-1) var(--ease); }
.accordion__panel-inner { padding-bottom: 1.6rem; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--mist-text-soft); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--ink-line); }
.footer__brand .logo { color: var(--mist); }
.footer__brand p { margin-top: 1rem; max-width: 32ch; }
.footer h4 { color: var(--mist); margin-bottom: 1.1rem; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer a:hover { color: var(--mist); }
.footer__social { display: flex; gap: 0.9rem; margin-top: 1.3rem; }
.footer__social a { width: 36px; height: 36px; border: 1px solid var(--ink-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.footer__legal { font-size: 0.76rem; line-height: 1.7; max-width: 90ch; margin-top: 1.6rem; color: rgba(151,157,172,0.7); }

/* --------------------------------------------------------------------------
   16. Utility
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-family: var(--font-mono);
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--teal-tint); color: var(--teal);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mt-0 { margin-top: 0 !important; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-revealed { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--mist);
  padding: 0.8rem 1.2rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.breadcrumb { font-size: 0.85rem; color: var(--slate-soft); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--teal); }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__grid .ripple-figure { max-width: 260px; margin-inline: auto; order: -1; }
  .calc { grid-template-columns: 1fr; }
  .calc__results { position: static; }
}

@media (max-width: 760px) {
  .nav-primary, .header-phone-wrap { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { padding: 0.7rem 1.1rem; font-size: 0.85rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-band__grid { grid-template-columns: 1fr; text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .process__item { grid-template-columns: 1fr; gap: 0.5rem; }

  .nav-primary.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--mist); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; gap: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}


/* =========================================
   MOBILE
   Up to 767px
   ========================================= */

@media (max-width: 767px) {

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }

    h1{
        font-size: 1.8rem !important;
    }

    .video-content {
      position: absolute;
      top: calc(2% + 10px);
      left:calc(5% - 10px);
      color: #fff !important;
      width: 95%;
      padding: 10px;
      display: block;
      z-index: 10 !important;
    }

    .video-overlay::after{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0 !important; /* Sits above the video */
      
      /* Option A: Solid semi-transparent blue tint */
      background-color: rgba(2, 83, 49, 0.3); 
    }
    .water-text {
        position: absolute;
        /* font-size: clamp(18px, 3vw, 54px); */
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        opacity: 0;
        transform: scale(0.96);
        filter: blur(8px);
        transition:
            opacity 1.5s ease,
            transform 1.2s ease,
            filter 1s ease;
    }
    .water-text-slider {
        position: relative;
        width: 100% !important;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: left;
        overflow: hidden;
        text-align: left;
    }
}


/* =========================================
   TABLET
   768px – 1023px
   ========================================= */

@media (min-width: 768px) and (max-width: 1023px) {

    /* Hide on tablet */
    .hide-tablet {
        display: none !important;
    }

    /* Show only on tablet */
    .show-tablet {
        display: block !important;
    }

    .video-content {
        position: absolute;
        top: calc(5% - 20px);
        left:calc(25% - 20px);
        color: #fff !important;
        width: 60%;
        padding: 20px;
        display: block;
        z-index: 10 !important;
    }

    .video-overlay::after{
      content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0 !important; /* Sits above the video */
        
        /* Option A: Solid semi-transparent blue tint */
        background-color: rgba(2, 65, 34, 0.3); 
    }
    .water-text {
        position: absolute;
        /* font-size: clamp(18px, 3vw, 54px); */
        font-size: 24px;
        font-weight: 700;
        color: #ffffff;

        opacity: 0;
        transform: scale(0.96);
        filter: blur(8px);

        transition:
            opacity 1.5s ease,
            transform 1.2s ease,
            filter 1s ease;
    }
    .water-text-slider {
      position: relative;
      width: 100% !important;
      height: 400px;
      display: flex;
        align-items: center;
        justify-content: left;
      overflow: hidden;
      text-align: left;
    }
}


/* =========================================
   DESKTOP
   1024px and above
   ========================================= */

@media (min-width: 1024px) {

    /* Hide on desktop */
    .hide-desktop {
        display: none !important;
    }

    /* Show only on desktop */
    .video-content {
      position: absolute;
      bottom: calc(5% - 20px);
      left:calc(5% - 20px);
      color: #fff !important;
      width: 90%;
      padding: 20px;
      display: block;
      z-index: 10 !important;
    }   
    
    .show-desktop 
    {
       display: block !important;    
    }

    .video-overlay::after{
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0 !important; /* Sits above the video */
      
      /* Option A: Solid semi-transparent blue tint */
      background-color: rgba(1, 56, 29, 0.3); 
    }

    .water-text {
        position: absolute;
        /* font-size: clamp(18px, 3vw, 54px); */
        font-size: 28px;
        font-weight: 700;
        color: #ffffff;

        opacity: 0;
        transform: scale(0.96);
        filter: blur(8px);

        transition:
            opacity 1.5s ease,
            transform 1.2s ease,
            filter 1s ease;
    }
    
    .water-text-slider {
        position: relative;
        width: 100% !important;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: left;
        overflow: hidden;
        text-align: left;
    }
}



.water-text.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.water-text.exit {
    opacity: 0;
    /* transform: scale(1.5); */
    /* filter: blur(12px); */
    /* white box apper behind */
}

/* Water ripple */
.ripple {
    position: absolute;
    width: 1000px;
    height: 1000px;

    border: 2px solid rgba(255, 255, 255, 0.021);
    border-radius: 50%;

    transform: scale(0);
    opacity: 0;

    pointer-events: none;
    z-index: 1000 !important;
    display: none;
}

.ripple.animate {
    animation: waterRipple 1.4s ease-out;
}

@keyframes waterRipple {

    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    60% {
        opacity: 0.3;
    }

    100% {
        transform: scale(15);
        opacity: 0;
    }
}

/* =========================================================
   TEAM HERO
========================================================= */
.team-slider {
    --navy: #0B1A28;
    --pink: #AA8248;
    --purple: #7E9B94;
    --soft-bg: #7FAEAE;

    position: relative;
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    background: var(--navy);
}

/* =========================================================
   LEFT CONTENT
========================================================= */
.team-copy {
    position: relative;
    z-index: 10;
    width: 42%;
    padding: 100px 0 80px 6%;
}

.team-copy h1 {
    margin: 0;
    /* color: var(--c-blue); */
    color: #f8fcfb;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -3px;
}

.team-copy h1 strong {
    display: block;
    font-weight: 800;
}

.team-copy .tagline {
    margin: 42px 0 34px;
    color: #775C2D;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
}

.team-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 5px;
    background: var(--pink);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 7px 0 rgba(7, 48, 48, 0.15);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.team-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 0 rgba(112, 32, 120, 0.12);
    background: #775C2D;
}

/* =========================================================
   RIGHT STAGE
========================================================= */
.team-stage {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0;
    width: 64%;
    height: 430px;
    transform: translateY(-50%);
}

/* Main coloured pill/panel */
.team-shape {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 50%;
    width: 88%;
    height: 320px;
    transform: translateY(-50%);
    border-radius: 20px 0 0 90px;
    background: linear-gradient(
        100deg,
        var(--pink) 0%,
        #705602 35%,
        var(--purple) 100%
    );
    overflow: hidden;
}

/* Soft decorative glow */
.team-shape::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: 7%;
    top: -40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(2px);
}

/* =========================================================
   MEMBER
========================================================= */
.team-member {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
}

/* =========================================================
   MEMBER INFORMATION
========================================================= */
.team-info {
    position: absolute;
    z-index: 8;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff !important;
    width: 44%;
}

.team-name {
    margin: 0 0 15px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff !important;
}

.team-role {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(17px, 1.55vw, 24px);
    line-height: 1.15;
    font-style: italic;
    font-weight: 700;
    color:var(--c-mist) !important;
}

/* =========================================================
   CONTROLS
========================================================= */
.team-controls {
    position: absolute;
    z-index: 20;
    right: 35px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(38, 54, 111, 0.25);
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    color: var(--navy);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.team-arrow:hover {
    transform: scale(1.08);
    background: #fff;
}

.team-progress {
    position: relative;
    width: 100px;
    height: 3px;
    overflow: hidden;
    background: rgba(38,54,111,0.18);
}

.team-progress-bar {
    width: 0;
    height: 100%;
    background: var(--pink);
}

/* =========================================================
   DECORATIVE PERSON SHADOW
========================================================= */
.team-shadow-person {
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 9%;
    width: 250px;
    height: 390px;
    opacity: 0.12;
    border-radius: 50% 50% 5% 5%;
    background: linear-gradient(180deg, #fff, #d7b7d4);
    transform: translateX(20px);
}
.team-person {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    left: 15%;
    width: auto;
    height:500px;
    max-width: 60%;
    object-fit: contain;
    object-position: bottom center;

    /* This fallback creates a clean placeholder
       until you replace the image URLs below. */
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
}
/* .team-person-home {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    right: 15%;
    width: auto;
    height: 700px;
    max-width: 90%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
} */
/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {  
   .team-person-home {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    right: 27%;
    width: auto;
    height: 540px;
    max-width: 65%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
    }
    .team-slider {
        min-height: 700px;
    }
    .team-info {
    position: absolute;
    z-index: 8;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff !important;
    width: 44%;
    }
}

@media (max-width: 992px) {

    .team-copy {
        width: 43%;
        padding-left: 5%;
    }

    .team-stage {
        width: 67%;
    }

    .team-person {
        right: 20%;
        height: 510px;
    }
    .team-person-home {
        right: 2%;
        height: 610px;
        max-width: 90% !important;
    }

    .team-info {
        right: 7%;
        width: 43%;
    }
    .team-person {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    right: 27%;
    width: auto;
    height: 540px;
    max-width: 58%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
}
}

@media (max-width: 800px) {

  .team-button {
    display: none !important;
  }

    .team-slider {
        min-height: 760px;
    }

    .team-copy {
        width: 100%;
        padding: 60px 30px 20px;
        text-align: center;
    }

    .team-copy h1 {
        font-size: clamp(44px, 11vw, 62px);
        letter-spacing: -2px;
    }

    .team-copy .tagline {
        margin: 24px auto 24px;
        font-size: 17px;
    }

    .team-stage {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 20px;
        width: 100%;
        height: 430px;
        transform: none;
    }

    .team-shape {
        width: 100%;
        height: 300px;
        border-radius: 20px 0 0 90px;
    }

    .team-person {
        right: 10%;
        height: 590px;
        max-width: 75%;
    }
    .team-person-home {
        right: 10%;
        height: 590px;
        max-width: 75%;
    }
    .team-info {
        right: 8%;
        top: 60%;
        width: 44%;
    }

    .team-name {
        font-size: 30px;
    }

    .team-role {
        font-size: 17px;
    }

    .team-controls {
        right: 20px;
        bottom: 10px;
    }
    .team-person {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    right: 27%;
    width: auto;
    height: 340px;
    max-width: 58%;
    object-fit: contain;
    object-position: bottom center;

    /* This fallback creates a clean placeholder
       until you replace the image URLs below. */
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
}
}

@media (max-width: 560px) {

    .team-button {
    display: none !important;
   }
  
    .team-slider {
        min-height: 700px;
    }

    .team-copy {
        padding-top: 42px;
    }

    .team-copy h1 {
        font-size: 43px;
    }

    .team-copy .tagline {
        margin-top: 20px;
    }

    .team-stage {
        height: 360px;
        bottom: 15px;
    }

    .team-shape {
        height: 230px;
        top: 55%;
    }

    .team-person {
        right: 3%;
        height: 520px;
        max-width: 78%;
    }
    .team-person-home {
        right: 3%;
        height: 620px;
        max-width: 90%;
    }
    .team-info {
        right: 1%;
        top: 70%;
        width: 50%;
    }

    .team-name {
        font-size: 23px;
        margin-bottom: 9px;
    }

    .team-role {
        font-size: 14px;
    }

    .team-controls {
        display: none;
    }
    
    .team-person {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    /* right: 27%; */
    width: auto;
    height: 340px;
    max-width: 90%;
    object-fit: contain;
    object-position: bottom center;

    /* This fallback creates a clean placeholder
       until you replace the image URLs below. */
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
}
.team-person-home {
    position: absolute;
    z-index: 5;
    bottom: -2px;
    /* right: 27%; */
    width: auto;
    height: 340px;
    max-width: 90%;
    object-fit: contain;
    object-position: bottom center;

    /* This fallback creates a clean placeholder
       until you replace the image URLs below. */
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.08));
}
}

@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;
    }
}

#residential{
  background:url(../assets/img/Residential-Lending-still-water.jpg) center/cover no-repeat;
  background-color: rgba(247, 241, 241, 0.6);
  background-blend-mode: lighten;
}
#commercial{
  background:url(../assets/img/Commercial-Lending-still-water.jpg) center/cover no-repeat;
  background-color: rgba(247, 241, 241, 0.6);
  background-blend-mode: lighten;
}
#smsflending{
  background:url(../assets/img/SMSF-still-water.jpg) center/cover no-repeat;
  background-color: rgba(247, 241, 241, 0.6);
  background-blend-mode: lighten;
}
#assetfinance{
  background:url(../assets/img/Asset-Finance-still-water.jpg) center/cover no-repeat;
  background-color: rgba(247, 241, 241, 0.6);
  background-blend-mode: lighten;
}

#residential-ser{
  background:url(../assets/img/Residential-Lending-still-water.jpg) center/cover no-repeat;
  background-color: rgba(10, 10, 10, 0.6);
  background-blend-mode: lighten;
}
#commercial-ser{
  background:url(../assets/img/Commercial-Lending-still-water.jpg) center/cover no-repeat;
  background-color: rgba(10, 10, 10, 0.6);
  background-blend-mode: lighten;
}
#smsflending-ser{
  background:url(../assets/img/SMSF-still-water.jpg) center/cover no-repeat;
  background-color: rgba(17, 17, 17, 0.6);
  background-blend-mode: lighten;
}
#assetfinance-ser{
  background:url(../assets/img/Asset-Finance-still-water.jpg) center/cover no-repeat;
  background-color: rgba(14, 13, 13, 0.6);
  background-blend-mode: lighten;
}
#advisorybeyondlending-ser{
  background:url(../assets/img/Advisory-beyond-lending.png) center/cover no-repeat;
  background-color: rgba(14, 13, 13, 0.6);
  background-blend-mode: lighten;
}
#developmentfinance-ser{
  background:url(../assets/img/Development-finance.png) center/cover no-repeat;
  background-color: rgba(14, 13, 13, 0.6);
  background-blend-mode: lighten;
}

#residential:hover, #commercial:hover, #smsflending:hover, #assetfinance:hover{
  background-color: rgba(247, 245, 245, 0.9);
}

#residential > h3 ,#commercial > h3 ,#smsflending > h3 ,#assetfinance > h3{
  color: #0b3501 !important;
  text-shadow: 1px 1px 2px #6b6a6a;
}
#residential > p, #commercial > p, #smsflending > p, #assetfinance > p{
  color: #093b02 !important;
  font-weight: 500;  
}
#residential > ul > li, #commercial > ul > li, #smsflending > ul > li, #assetfinance > ul > li{
  color: #2e7903 !important;  
  font-weight: 600;
}
#residential > a, #commercial > a, #smsflending > a, #assetfinance > a{
  color: #AA8248 !important;
  font-weight: 700;  
}

.background-image-overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.3); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

/* Service Card Styles --------------------------------------------------------------------------------------- */
/* ---------- Grid: two cards fill the container width ---------- */
.flipcard-grid {
  width: 100%;
  max-width: 100%;              /* change to fit your container */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;           /* every row the same height */
  gap: clamp(12px, 3vw, 24px);
}

/* ---------- Card wrapper ---------- */
.flipcard {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;       /* equal widths => equal heights */
  perspective: 1200px;
  container-type: inline-size;   /* lets children size from card width */
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s ease;
}

.flipcard:active {
  transform: scale(0.985);
}

.flipcard:focus-visible {
  outline: 2px solid #c5a880;
  outline-offset: 4px;
  border-radius: 24px;
}

/* Taller cards on small screens so the back face has room */
/* @media (max-width: 520px) {

}

@media (max-width: 769px) {

} */

@media (max-width: 576px) { 
  /* Extra small devices (phones) */ 
  .flipcard {
    aspect-ratio: 3 / 5.8;
  }
  .flipcard-grid 
  {
  width: 100%;
  max-width: 100%;              /* change to fit your container */
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .video-location{
    object-position:center top;
  }
}
@media (min-width: 577px) and (max-width: 768px) { 
  /* Small devices (tablets) */ 
  .flipcard {
    aspect-ratio: 3 / 5.9;
  }
  .flipcard-grid 
  {
  width: 100%;
  max-width: 100%;              /* change to fit your container */
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .video-location{
    object-position:center top;
  }
}
@media (min-width: 769px) and (max-width: 992px) {
    /* Medium devices (desktops) */ 
    .flipcard {
    aspect-ratio: 3 / 5.9;
    }
    .flipcard-grid 
    {
    width: 100%;
    max-width: 100%;              /* change to fit your container */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .video-location{
      object-position:center top !important;
    }
  }
@media (min-width: 993px) { 
  /* Large devices */
  .flipcard {
    aspect-ratio: 3 / 4;
  }
  .flipcard-grid 
  {
  width: 100%;
  max-width: 100%;              /* change to fit your container */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .video-location{
    object-position:center -150px !important;
  }
}
@media (min-width: 1199px) { 
  /* Large devices */
  .video-location{
    object-position:center top !important;
  }
}
/* ---------- Rotating layer ---------- */
.flipcard__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.flipcard.is-flipped .flipcard__inner {
  transform: rotateY(180deg);
}

/* ---------- Faces ---------- */
.flipcard__face {
  position: absolute;
  inset: 0;
  border-radius: clamp(16px, 6.5cqw, 22px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flipcard__face--back {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(3, 37, 17) 0%, rgba(1, 63, 44, 0.493) 55%),
    linear-gradient(180deg, #013013 0%, #04160a 100%);
  border-color: rgba(197, 168, 128, 0.28);
}

/* ==========================================================
   FRONT
   ========================================================== */
.flipcard__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease-out;
}

.flipcard:hover:not(.is-flipped) .flipcard__image {
  transform: scale(1.05);
}

/* Darkens toward the bottom so the bottom-left text stays readable */
.flipcard__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(2, 71, 39, 0.404) 0%,
    rgba(1, 53, 12, 0.25) 45%,
    rgba(2, 65, 49, 0.72) 70%,
    rgba(8, 9, 10, 0.94) 100%
  );
}

.flipcard__rim {
  position: absolute;
  inset: 0;
  border-radius: clamp(16px, 6.5cqw, 22px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ---------- Content layout: front = bottom-left ---------- */
.flipcard__content {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  text-align: left;
  padding: clamp(12px, 7cqw, 24px);
  user-select: none;
}

.flipcard__title {
  margin: 0 0 clamp(8px, 4cqw, 14px);
  /* font-family: 'Cormorant Garamond', Georgia, serif; */
  font-size: clamp(20px, 9.4cqw, 34px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.flipcard__footer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(10px, 4.7cqw, 16px);
}

.flipcard__text {
  margin: 0;
  max-width: 62cqw;
  font-size: clamp(11px, 3.8cqw, 13.5px);
  font-weight: 300;
  line-height: 1.38;
  color: rgba(214, 211, 209, 0.9);
}

.flipcard__arrow {
  flex-shrink: 0;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.flipcard__arrow svg {
  display: block;
  width: clamp(16px, 5.9cqw, 20px);
  height: clamp(16px, 5.9cqw, 20px);
}

.flipcard:hover:not(.is-flipped) .flipcard__face--front .flipcard__arrow {
  transform: translateX(4px);
}

/* ==========================================================
   BACK
   ========================================================== */
.flipcard__content--back {
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  gap: clamp(8px, 3.6cqw, 16px);
  padding: clamp(12px, 6cqw, 22px) clamp(12px, 7cqw, 24px);
  padding-top:5%;
}

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

.flipcard__eyebrow {
  margin: 0 0 clamp(3px, 1.6cqw, 6px);
  font-size: clamp(8.5px, 3.1cqw, 10.5px);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c5a880;
}

.flipcard__title--back {
  margin: 0 0 clamp(4px, 2cqw, 8px);
  font-size: clamp(17px, 7.9cqw, 27px);
  filter: none;
}

.flipcard__text--back {
  max-width: 100%;
  font-size: clamp(10.5px, 3.6cqw, 12.5px);
  line-height: 1.45;
  color: rgba(214, 211, 209, 0.8);
}

/* ---------- Details list ---------- */
.flipcard__list {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.flipcard__list li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: clamp(4px, 2.4cqw, 9px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flipcard__list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flipcard__item-title {
  font-size: clamp(11px, 3.8cqw, 13px);
  font-weight: 500;
  line-height: 1.25;
  color: #f3efe9;
}

.flipcard__item-text {
  font-size: clamp(9.5px, 3.4cqw, 11.5px);
  font-weight: 300;
  line-height: 1.3;
  color: rgba(214, 211, 209, 0.7);
}

/* ---------- Back footer ---------- */
.flipcard__footer--back {
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.flipcard__hint {
  font-size: clamp(10px, 3.4cqw, 11.5px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-mist);
  position:absolute;
  bottom: 0;
  right: 0;
  padding: 1rem;
}

.flipcard__arrow--back {
  padding-bottom: 0;
  color: var(--c-mist);
  transform: rotate(180deg);
}

.flipcard__arrow--back svg {
  width: clamp(14px, 5.3cqw, 18px);
  height: clamp(14px, 5.3cqw, 18px);
}

/* ---------- Narrow cards: trim secondary text so the back never overflows ---------- */
@container (max-width: 299px) {
  .flipcard__item-text {
    display: none;
  }
}

@container (max-width: 199px) {
  .flipcard__text--back {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .flipcard,
  .flipcard__inner,
  .flipcard__image,
  .flipcard__arrow {
    transition-duration: 0.01ms;
  }
}

.down-arrow{
  width:30px; 
  height:auto; 
  margin-bottom:1rem;
  cursor:pointer;
  display:block; 
  transition: 1s all linear;
  -webkit-transition: 1s all linear;
  -moz-transition: 1s all linear;
  -ms-transition: 1s all linear;
  -o-transition: 1s all linear;
}
.down-arrow:hover{
  width:35px; 
  height:auto; 
  margin-bottom:0.6rem;
  cursor:pointer;
}

/* Google Review Section  ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg */
.reviews-section {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.reviews-section h2 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 12px;
}

.reviews-section .subtitle {
    color: #777;
    margin-bottom: 35px;
}

.google-label {
    font-size: 18px;
    margin-bottom: 25px;
}

.google-label span {
    color: var(--c-indigo);
    font-weight: bold;
}

.gslider {
    max-width: 850px;
    margin: auto;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.gslider input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gslides {
    display: flex;
    width: 500%;
    transition: transform .5s ease;
}

.review {
    width: 20%;
    flex-shrink: 0;
    padding: 45px 70px;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stars {
    color: #fbbc04;
    font-size: 25px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.reviewer {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

/* Slide positioning */
#gslide1:checked ~ .gslides {
    transform: translateX(0);
}

#gslide2:checked ~ .gslides {
    transform: translateX(-20%);
}

#gslide3:checked ~ .gslides {
    transform: translateX(-40%);
}

#gslide4:checked ~ .gslides {
    transform: translateX(-60%);
}

#gslide5:checked ~ .gslides {
    transform: translateX(-80%);
}

/* Arrow controllers */
.arrows label {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    font-size: 27px;
    line-height: 38px;
    cursor: pointer;
    z-index: 5;
    user-select: none;
}

.arrows .prev {
    left: 15px;
}

.arrows .next {
    right: 15px;
}

#gslide1:checked ~ .arrows .s1,
#gslide2:checked ~ .arrows .s2,
#gslide3:checked ~ .arrows .s3,
#gslide4:checked ~ .arrows .s4,
#gslide5:checked ~ .arrows .s5 {
    display: block;
}

/* Dot navigation */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dots label {
    width: 11px;
    height: 11px;
    background: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}

#gslide1:checked ~ .dots label[for="gslide1"],
#gslide2:checked ~ .dots label[for="gslide2"],
#gslide3:checked ~ .dots label[for="gslide3"],
#gslide4:checked ~ .dots label[for="gslide4"],
#gslide5:checked ~ .dots label[for="gslide5"] {
    background: var(--c-indigo);
    width: 28px;
    border-radius: 8px;
}

.google-link {
    display: inline-block;
    margin-top: 30px;
    color: #00183d;
    text-decoration: none;
    font-weight: bold;
}

.google-link:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    .reviews-section {
        padding: 40px 12px;
    }

    .review {
        padding: 35px 48px;
        min-height: 320px;
    }

    .review-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .stars {
        font-size: 22px;
    }

    .arrows label {
        width: 32px;
        height: 32px;
        font-size: 22px;
        line-height: 29px;
    }

    .arrows .prev {
        left: 8px;
    }

    .arrows .next {
        right: 8px;
    }
}