/* ==========================================================================
   Sydney Harbour Group — Website Stylesheet
   Design direction: Premium Sydney Harbour / Maritime / Corporate Hospitality
   Palette base (per design.md): Deep Navy — #071A27 / #0B2233 / #123247
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep navy (primary) */
  --navy-950: #071A27;
  --navy-900: #0B2233;
  --navy-800: #123247;
  --navy-700: #1B4662;
  --navy-600: #2A5B7C;
  --navy-200: #C7D8E2;
  --navy-100: #DCE7EE;

  /* Accent — restrained brass gold, used sparingly */
  --gold: #C8A96A;
  --gold-soft: #D9C08E;
  --gold-deep: #A98A4F;

  /* Neutrals */
  --cream: #F7F4EE;
  --cream-2: #EFEAE1;
  --paper: #FFFFFF;
  --ink: #10202E;
  --slate: #5C6E7C;
  --slate-light: #8CA0AE;

  /* Lines */
  --line-light: rgba(16, 32, 46, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 10px;
  --radius-sm: 6px;

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(7, 26, 39, 0.06);
  --shadow-md: 0 14px 40px rgba(7, 26, 39, 0.12);
  --shadow-lg: 0 30px 70px rgba(7, 26, 39, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--gold);
  color: var(--navy-950);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 0.7rem 1.4rem;
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.on-dark .eyebrow,
.eyebrow.on-dark {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--navy-950);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: #fff;
}

.h-display {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
}

.h-xl {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.h-lg {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.h-md {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  color: var(--slate);
}

.on-dark .lead {
  color: var(--navy-200);
}

.lead strong {
  color: inherit;
  font-weight: 600;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  margin: 1.1rem 0 1rem;
}

.section-head .lead {
  margin: 0;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow::before {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.text-link .arrow {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

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

.on-dark .text-link {
  color: #fff;
}

.on-dark .text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   4. Sections & backgrounds
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}

.section-cream {
  background: var(--cream);
}

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

.section-dark {
  background: var(--navy-950);
  color: #fff;
}

.section-dark .lead {
  color: var(--navy-200);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

/* Subtle nautical texture on dark sections */
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(42, 91, 124, 0.35), transparent 60%),
    radial-gradient(700px 380px at -8% 110%, rgba(42, 91, 124, 0.25), transparent 60%);
}

.section-dark {
  position: relative;
}

.section-dark .container {
  position: relative;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 8px 24px rgba(200, 169, 106, 0.35);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  color: var(--navy-900);
  border-color: rgba(11, 34, 51, 0.35);
}

.btn-outline-dark:hover {
  border-color: var(--navy-900);
  background: rgba(11, 34, 51, 0.05);
}

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

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Transparent over hero: white text, logo rendered white via filter */
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 112px;
  transition: height 0.35s var(--ease);
}

.site-header .brand {
  flex: none;
  line-height: 0;
}

.site-header .brand img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease), height 0.35s var(--ease);
}

/* Solid state after scrolling */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-light), 0 8px 30px rgba(7, 26, 39, 0.06);
}

.site-header.scrolled .header-inner {
  height: 84px;
}

.site-header.scrolled .brand img {
  height: 56px;
  filter: none;
}

/* Keep the larger logo from crowding the nav on mid-width screens */
@media (max-width: 1240px) and (min-width: 921px) {
  .site-header .brand img {
    height: 58px;
  }

  .site-header.scrolled .brand img {
    height: 46px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 2rem);
}

.main-nav a:not(.btn) {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s var(--ease);
}

.site-header.scrolled .main-nav a:not(.btn) {
  color: var(--ink);
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn).active::after {
  transform: scaleX(1);
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active {
  color: #fff;
}

.site-header.scrolled .main-nav a:not(.btn):hover,
.site-header.scrolled .main-nav a:not(.btn).active {
  color: var(--navy-900);
}

.nav-cta {
  margin-left: clamp(0.25rem, 1vw, 0.9rem);
}

.nav-cta.btn-gold {
  padding: 0.8rem 1.6rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled .nav-toggle span {
  background: var(--navy-950);
}

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

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

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

/* Mobile panel */
@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: min(340px, 86vw);
    height: 100dvh;
    padding: 7.5rem 2.2rem 2.5rem;
    background: var(--navy-950);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }

  .nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a:not(.btn) {
    width: 100%;
    padding: 0.95rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-dark);
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .main-nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin: 1.6rem 0 0;
    width: 100%;
  }

  /* Backdrop */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(7, 26, 39, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .nav-open {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  padding-block: 10rem 5.5rem;
  color: #fff;
  background: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 26, 39, 0.62) 0%, rgba(7, 26, 39, 0.35) 45%, rgba(7, 26, 39, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 26, 39, 0.45) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  color: #fff;
  margin: 1.2rem 0 1.3rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Scroll cue (home only) */
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollCue 2.2s var(--ease) infinite;
}

@keyframes scrollCue {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* Compact hero for interior pages */
.hero.hero-compact {
  min-height: 58vh;
  align-items: center;
  padding-block: 9rem 4.5rem;
}

/* Hero without a background image — navy with soft radials */
.hero.hero-plain::after {
  background:
    radial-gradient(900px 480px at 85% -20%, rgba(42, 91, 124, 0.55), transparent 60%),
    radial-gradient(700px 420px at -10% 115%, rgba(42, 91, 124, 0.4), transparent 60%),
    linear-gradient(180deg, rgba(7, 26, 39, 0.4), rgba(7, 26, 39, 0.7));
}

/* Entry animation */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero .hero-inner > * {
  animation: heroRise 0.9s var(--ease) both;
}

.hero .hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.hero .hero-inner > *:nth-child(3) { animation-delay: 0.24s; }
.hero .hero-inner > *:nth-child(4) { animation-delay: 0.36s; }

/* --------------------------------------------------------------------------
   8. Split layouts
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Floating badge on split images */
.media-badge {
  position: absolute;
  left: -1.2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.4rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--gold);
}

.media-badge .badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.media-badge .badge-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.1;
}

.split-body h2 {
  margin: 1rem 0 1.1rem;
}

.split-body .lead {
  margin-bottom: 1.6rem;
}

.split-body > .text-link {
  margin-top: 0.4rem;
}

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

  .split.reverse .split-media {
    order: 0;
  }

  .media-badge {
    left: 1rem;
    bottom: 1rem;
  }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

@media (max-width: 1020px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* Service card (image top) */
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-media .card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(7, 26, 39, 0.78);
  backdrop-filter: blur(6px);
  color: var(--gold-soft);
  border-radius: 999px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 1.7rem 1.8rem 1.9rem;
}

.card-body h3 {
  font-size: 1.38rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.7;
}

.card-body .text-link {
  margin-top: auto;
  padding-top: 0.9rem;
}

/* Feature tile (icon top, for dark sections) */
.feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.1rem 1.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 169, 106, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.45);
  color: var(--gold);
  flex: none;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.25rem;
  color: #fff;
}

.feature p {
  font-size: 0.93rem;
  color: var(--navy-200);
  line-height: 1.7;
}

/* Light feature card (pillar) — used on light sections */
.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.9rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 169, 106, 0.5);
}

.pillar .feature-icon {
  background: var(--cream);
  color: var(--gold-deep);
  border-color: rgba(169, 138, 79, 0.35);
}

.pillar h3 {
  font-size: 1.22rem;
}

.pillar p {
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.7;
}

.pillar .text-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Experience card (featured, home) */
.exp-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
}

.exp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.exp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 39, 0.05) 35%, rgba(7, 26, 39, 0.88) 100%);
  transition: background 0.4s var(--ease);
}

.exp-card:hover img {
  transform: scale(1.06);
}

.exp-card:hover::after {
  background: linear-gradient(180deg, rgba(7, 26, 39, 0.1) 30%, rgba(7, 26, 39, 0.94) 100%);
}

.exp-card-content {
  position: absolute;
  inset-inline: 1.6rem;
  bottom: 1.6rem;
  z-index: 2;
  color: #fff;
}

.exp-card-content .card-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.38rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(217, 192, 142, 0.5);
  border-radius: 999px;
}

.exp-card-content h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.exp-card-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease);
}

.exp-card:hover .exp-card-content p {
  max-height: 5em;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line-light);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1;
}

.stat-label {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.on-dark .stats-row {
  border-top-color: var(--line-dark);
}

.on-dark .stat-num {
  color: var(--gold);
}

.on-dark .stat-label {
  color: var(--navy-200);
}

@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   11. Check lists
   -------------------------------------------------------------------------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 2rem;
  margin: 1.6rem 0;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.18rem;
  color: var(--gold-deep);
}

.on-dark .check-list li {
  color: rgba(255, 255, 255, 0.88);
}

.on-dark .check-list svg {
  color: var(--gold);
}

@media (max-width: 640px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

/* Chips (corporate supporting services) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-800);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--gold-deep);
  flex: none;
}

/* --------------------------------------------------------------------------
   12. Steps (How it works)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 3rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.2rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.step::after {
  content: "";
  position: absolute;
  top: 2.55rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-light);
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--slate);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   13. Quote
   -------------------------------------------------------------------------- */
.quote-panel {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--gold);
  display: block;
  margin-bottom: 1.6rem;
}

.quote-panel blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--navy-950);
}

.on-dark .quote-panel blockquote {
  color: #fff;
}

.quote-panel figcaption {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.on-dark .quote-panel figcaption {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   14. CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding-block: 5rem;
  color: #fff;
  background: var(--navy-950);
  overflow: hidden;
}

.cta-banner img.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 39, 0.55), rgba(7, 26, 39, 0.78)),
    radial-gradient(800px 400px at 20% 120%, rgba(42, 91, 124, 0.4), transparent 60%);
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-inner {
  max-width: 680px;
}

.cta-inner h2 {
  color: #fff;
  margin: 1rem 0 0.9rem;
}

.cta-inner .lead {
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   15. Page hero extras (breadcrumb-style eyebrow note)
   -------------------------------------------------------------------------- */
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 26, 39, 0.45);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--navy-200);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 45%);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.3rem;
}

.footer-brand p {
  font-size: 0.93rem;
  line-height: 1.75;
  max-width: 300px;
}

.footer-est {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.93rem;
  color: var(--navy-200);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.93rem;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 0.22rem;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: var(--slate-light);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}

.field label .req {
  color: var(--gold-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-light);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.22);
}

.field .field-error {
  display: none;
  font-size: 0.8rem;
  color: #B4442E;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #B4442E;
}

.field.invalid .field-error {
  display: block;
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate);
}

/* Honeypot — hidden from humans, visible to spam bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submission error (shown when the PHP handler can't be reached) */
.form-submit-error {
  width: 100%;
  font-size: 0.88rem;
  color: #B4442E;
}

.form-submit-error a {
  font-weight: 600;
  text-decoration: underline;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success.visible {
  display: block;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: rgba(200, 169, 106, 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.form-success h3 {
  margin-bottom: 0.7rem;
}

.form-success p {
  color: var(--slate);
  max-width: 460px;
  margin-inline: auto;
}

.form-success .btn {
  margin-top: 1.6rem;
}

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

/* Custom English date picker (native date inputs follow the browser
   locale, so we render our own to guarantee an English interface) */
.dp {
  position: relative;
}

.dp .dp-input {
  cursor: pointer;
}

.dp-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 296px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.dp-popup[hidden] {
  display: none;
}

.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--navy-900);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.dp-nav:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.dp-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
}

.dp-weekdays,
.dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dp-weekdays span {
  padding: 0.3rem 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--slate);
}

.dp-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.dp-day:hover:not(.is-empty) {
  background: var(--cream);
}

.dp-day.is-selected {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
}

.dp-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--gold-deep);
  font-weight: 600;
}

.dp-day.is-empty {
  visibility: hidden;
}

.dp-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-light);
}

.dp-foot button {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: color 0.2s var(--ease);
}

.dp-foot button:hover {
  color: var(--gold-deep);
}

/* Contact info cards */
.info-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.6rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-deep);
}

.info-icon svg {
  width: 21px;
  height: 21px;
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--slate);
}

.info-card a:hover {
  color: var(--gold-deep);
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
