/* ============================================================
   Francis Ray Chartered Surveyors
   Complete Stylesheet — Multi-page SPA
   ============================================================ */

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

:root {
  /* Brand Colors */
  --navy: #1A2744;
  --navy-light: #243252;
  --navy-dark: #111B30;
  --gold: #B8965A;
  --gold-light: #D4B27A;
  --gold-dark: #9A7A44;
  --offwhite: #F7F6F2;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --text-body: #3A3F50;
  --text-muted: #6B7289;
  --border-light: #E8E6E0;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sub: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--offwhite);
  overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Section Shared --- */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.app-container {
  opacity: 1;
  transition: opacity 0.2s ease;
  min-height: 60vh;
}

.app-container.page-exit {
  opacity: 0;
}

.app-container.page-enter {
  opacity: 0;
  animation: pageIn 0.4s var(--ease-out) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--container-pad);
  transition: background 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(184, 150, 90, 0.15);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-interactive);
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-monogram {
  color: var(--white);
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-dropdown-trigger {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-interactive);
  position: relative;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-dropdown-trigger:hover,
.nav-links > li > a.active {
  color: var(--white);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown arrow */
.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}

/* Desktop dropdowns */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--navy-dark);
  border: 1px solid rgba(184, 150, 90, 0.15);
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  color: var(--white);
  background: rgba(184, 150, 90, 0.08);
}

.dropdown-divider {
  height: 1px;
  background: rgba(184, 150, 90, 0.12);
  margin: 0.375rem 0;
}

/* Nav CTA */
.nav-cta {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  padding: 0.45rem 1.25rem !important;
  color: var(--gold) !important;
  transition: background var(--transition-interactive),
              color var(--transition-interactive) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
}

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

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

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

/* ============================================================
   HERO (Home page)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184, 150, 90, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(184, 150, 90, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
  animation: heroShift 20s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { background-position: 0% 50%; opacity: 1; }
  100% { background-position: 100% 50%; opacity: 0.92; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-monogram {
  margin-bottom: 2rem;
  opacity: 0;
  transform: scale(0.9);
  animation: heroFadeIn 1.2s var(--ease-out) 0.2s forwards;
}

.hero-monogram svg {
  width: clamp(100px, 15vw, 160px);
  height: clamp(100px, 15vw, 160px);
  margin: 0 auto;
}

.hero-gold-rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 0.6s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 0.8s forwards;
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3rem;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 1s forwards;
}

.hero-strapline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 1.2s forwards;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.875rem 2.5rem;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive);
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 1.4s forwards;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.hero-cta:active {
  transform: translateY(0);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out) 2s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   HOME INTRO SECTION
   ============================================================ */
.section--intro {
  background: var(--offwhite);
  text-align: center;
}

.intro-content {
  max-width: 720px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ============================================================
   SERVICES (Home page cards)
   ============================================================ */
.section--services-home {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--offwhite);
  padding: clamp(2rem, 3vw, 3rem);
  border: 1px solid var(--border-light);
  position: relative;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.08);
  transform: translateY(-3px);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
  line-height: 1.2;
}

.service-aka {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.service-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.service-price {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.service-price strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.service-link {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition-interactive);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--gold);
}

.service-link span {
  transition: transform var(--transition-interactive);
}

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

.services-help {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-help a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-light);
  transition: color var(--transition-interactive);
}

.services-help a:hover {
  color: var(--gold);
}

/* ============================================================
   WHY FRANCIS RAY
   ============================================================ */
.section--why {
  background: var(--navy);
  color: var(--white);
}

.section--why .section-label {
  color: var(--gold);
}

.section--why .section-heading {
  color: var(--white);
}

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

.why-item {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(184, 150, 90, 0.15);
  transition: border-color var(--transition-interactive),
              background var(--transition-interactive);
}

.why-item:hover {
  border-color: rgba(184, 150, 90, 0.4);
  background: rgba(184, 150, 90, 0.04);
}

.why-icon {
  margin-bottom: 1.25rem;
}

.why-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.why-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   AREAS (Home page cards)
   ============================================================ */
.section--areas-home {
  background: var(--offwhite);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.area-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.area-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.08);
  transform: translateY(-3px);
}

.area-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

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

.area-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

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

.area-card-link {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-interactive);
}

.area-card:hover .area-card-link {
  color: var(--gold);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.section--cta-band {
  background: var(--navy);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.cta-band-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band-text {
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.875rem 2.5rem;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive),
              transform var(--transition-interactive);
  cursor: pointer;
  border: 1px solid transparent;
}

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

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

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

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

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

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

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--navy);
  overflow: hidden;
}

.page-hero--compact {
  padding: 9rem 0 4rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(184, 150, 90, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
}

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

.page-hero-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.page-hero-meta {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.75rem;
}

/* Area page hero */
.area-hero {
  position: relative;
  height: clamp(350px, 50vh, 500px);
  overflow: hidden;
}

.area-hero-image {
  position: absolute;
  inset: 0;
}

.area-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 27, 48, 0.5) 0%, rgba(26, 39, 68, 0.85) 100%);
}

.area-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
}

/* ============================================================
   CONTENT PAGES (services, articles, areas)
   ============================================================ */
.content-container {
  max-width: 800px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.content-body a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-light);
  transition: color var(--transition-interactive);
}

.content-body a:hover {
  color: var(--gold);
}

.intro-para {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: var(--text-body);
}

.content-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--navy);
  line-height: 1.2;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.content-heading:first-child,
.content-body > .content-heading:first-of-type {
  margin-top: 0;
}

.content-subheading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.content-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  padding: 2rem;
  margin: 1.5rem 0 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-icon {
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.pricing-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.06);
}

.pricing-card--featured {
  border-color: var(--gold);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Most Common';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.pricing-card--wide {
  grid-column: span 1;
}

.pricing-beds {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 2-column pricing for Red Book */
.pricing-table:has(.pricing-card--wide) {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
   SAMPLE REPORT
   ============================================================ */
.sample-report {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.sample-report p {
  margin-bottom: 0 !important;
  font-size: 0.925rem;
}

/* ============================================================
   PAGE CTA
   ============================================================ */
.page-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.page-cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ============================================================
   SCENARIO GRID
   ============================================================ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.scenario-item {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
}

.scenario-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

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

/* ============================================================
   PROCESS TIMELINE (Red Book)
   ============================================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.process-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

/* ============================================================
   COMPARISON TABLE (Which Survey)
   ============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  border-bottom: 2px solid var(--border-light);
  vertical-align: bottom;
}

.comparison-table thead th span {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--navy);
}

.comparison-table td.recommended,
.comparison-table th.recommended {
  background: rgba(184, 150, 90, 0.06);
}

.comparison-table th.recommended {
  border-top: 3px solid var(--gold);
}

.table-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.5rem;
}

/* ============================================================
   GUIDANCE CTA (Which Survey)
   ============================================================ */
.guidance-cta {
  margin-top: 3rem;
}

.guidance-cta-inner {
  background: var(--navy);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.guidance-cta-inner h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.guidance-cta-inner p {
  color: rgba(255, 255, 255, 0.6) !important;
  margin-bottom: 1.5rem !important;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   APPROACH GRID (Level 3)
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.approach-item {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
}

.approach-item h4 {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

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

/* ============================================================
   RATING GRID (Understanding report)
   ============================================================ */
.rating-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.rating-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.rating-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  border-radius: 50%;
}

.rating-1 .rating-number { background: #437A22; }
.rating-2 .rating-number { background: #D4A028; }
.rating-3 .rating-number { background: #C0392B; }

.rating-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.rating-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.about-layout-section {
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.about-image {
  overflow: hidden;
  position: sticky;
  top: 100px;
  align-self: start;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 6s var(--ease-in-out);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.section--about-details {
  background: var(--white);
  padding-top: clamp(2rem, 4vw, 4rem);
}

.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-detail {
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.about-detail h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.about-detail p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   ARTICLES GRID (Knowledge Hub)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: clamp(2rem, 3vw, 2.5rem);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.article-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.06);
  transform: translateY(-3px);
}

.article-card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.article-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-card-excerpt {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.article-card-meta {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item a {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--navy);
  transition: color var(--transition-interactive);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-phone-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.areas-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.areas-list li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.areas-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.rics-badge {
  margin-top: 0.5rem;
}

.rics-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--offwhite);
}

.rics-badge-inner span {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.925rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  background: var(--offwhite);
  color: var(--text-body);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

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

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

.form-submit {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive),
              transform var(--transition-interactive);
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

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

/* ============================================================
   QUOTE PAGE
   ============================================================ */
.quote-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-summary {
  background: var(--navy);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.quote-summary-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.quote-summary-instruction {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.quote-pricing-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.quote-pricing-label {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.quote-pricing-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.quote-trust {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quote-trust-item span {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.quote-note {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.quote-note p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-monogram {
  width: 48px;
  height: 31px;
  margin-bottom: 1rem;
}

.footer-strapline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-col a {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.3rem 0;
  transition: color var(--transition-interactive);
  line-height: 1.5;
}

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

.footer-bottom {
  text-align: center;
}

.footer-legal-row {
  margin-bottom: 0.75rem;
}

.footer-legal-row p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-rics {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    order: -1;
    position: relative;
    top: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .quote-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .quote-summary {
    position: static;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 0 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 99;
  }

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

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links > li > a,
  .nav-dropdown-trigger {
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
  }

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

  /* Mobile dropdown */
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    box-shadow: none;
    display: none;
    padding: 0;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu li a {
    padding: 0.6rem 2rem 0.6rem 3rem;
    font-size: 0.75rem;
  }

  .dropdown-divider {
    margin: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin: 1rem 2rem !important;
    text-align: center !important;
    display: block !important;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    grid-template-columns: 1fr;
  }

  .pricing-table:has(.pricing-card--wide) {
    grid-template-columns: 1fr;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .comparison-table-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .about-details-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    letter-spacing: 0.06em;
  }

  .hero-subtitle {
    letter-spacing: 0.2em;
  }

  .page-hero {
    padding: 8rem 0 3rem;
  }

  .page-hero--compact {
    padding: 7rem 0 2.5rem;
  }

  .area-hero {
    height: clamp(260px, 40vh, 380px);
  }

  .area-hero-content {
    padding-top: 6rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-monogram svg {
    width: 80px;
    height: 80px;
  }

  .hero-cta {
    padding: 0.75rem 2rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .page-hero-title {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
  }
}

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

  html {
    scroll-behavior: auto;
  }

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

  .app-container.page-exit {
    opacity: 1;
  }
}
