/* Fairgrove Retirement Advice — late-summer coastal editorial theme */
:root {
  --chalk: #f7f4ef;
  --chalk-warm: #faf8f4;
  --sea-glass: #7ba8a0;
  --sea-glass-deep: #5e8f87;
  --coral: #c97b6b;
  --coral-soft: #e8c4bb;
  --dune: #e4d5c4;
  --dune-deep: #cbb8a0;
  --ink: #1b2a4a;
  --ink-soft: #2c3d5f;
  --ink-muted: #4a5a78;
  --white: #fffefb;
  --shadow: 0 8px 28px rgba(27, 42, 74, 0.08);
  --shadow-lift: 0 14px 36px rgba(27, 42, 74, 0.14);
  --radius: 14px;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(123, 168, 160, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(201, 123, 107, 0.12), transparent 38%),
    linear-gradient(180deg, var(--chalk-warm) 0%, var(--chalk) 48%, var(--dune) 160%);
  min-height: 100vh;
}

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

a {
  color: var(--sea-glass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.65em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.price-note {
  font-weight: 600;
  color: var(--ink-soft);
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn--secondary,
.btn--teal {
  background: var(--sea-glass);
  color: var(--white);
}

.btn--secondary:hover,
.btn--teal:hover {
  background: var(--sea-glass-deep);
  color: var(--white);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--coral);
}

.site-nav__cta {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white) !important;
}

.site-nav__cta:hover {
  background: var(--sea-glass-deep);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--chalk-warm);
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Hero variants */
.hero-editorial {
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
}

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

.hero-editorial__kicker {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-editorial__accent {
  color: var(--sea-glass-deep);
}

.hero-editorial__intro {
  font-size: 1.15rem;
  max-width: 28rem;
  color: var(--ink-muted);
}

.hero-editorial__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.12);
  box-shadow: var(--shadow);
  min-height: 420px;
}

.hero-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transform: scale(1.06);
  will-change: transform;
}

.hero-editorial__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(247, 244, 239, 0.9);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
}

.page-hero--compact {
  padding-bottom: var(--space-sm);
}

.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.12);
  box-shadow: var(--shadow);
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.page-hero__meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.wide-band {
  margin: 0 0 var(--space-lg);
}

.wide-band__img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

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

.section--tint {
  background: rgba(228, 213, 196, 0.35);
}

.section--coral {
  background: rgba(232, 196, 187, 0.35);
}

.section--navy {
  background: var(--ink);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-md);
}

.section__head p {
  color: var(--ink-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.card__body h3 {
  margin-bottom: 0.4em;
  font-size: 1.25rem;
}

.card__body p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Asymmetric feature */
.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.feature-split--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.12);
  box-shadow: var(--shadow);
}

.feature-split__media img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.feature-panel {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.feature-panel--tint {
  background: rgba(123, 168, 160, 0.12);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sea-glass);
}

/* Quotes / reviews */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

.quote {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.quote--wide {
  padding: 2rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.quote footer {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.quote__service {
  color: var(--coral);
  font-weight: 600;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.story-card {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* Pricing */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.14);
  box-shadow: var(--shadow);
}

.fee-table th,
.fee-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.fee-table th {
  background: rgba(123, 168, 160, 0.15);
  font-weight: 600;
}

.fee-table tr:last-child td {
  border-bottom: none;
}

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

.fee-factor {
  background: rgba(228, 213, 196, 0.4);
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* Content / prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 2.5rem;
  align-items: start;
}

.aside-card {
  background: rgba(123, 168, 160, 0.12);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.aside-card__title {
  font-size: 1.2rem;
}

.aside-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.aside-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
  font-size: 0.95rem;
}

.aside-list li:last-child {
  border-bottom: none;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2.5rem;
}

.form {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 1.15rem;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(27, 42, 74, 0.22);
  border-radius: 10px;
  font: inherit;
  background: var(--chalk-warm);
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--sea-glass);
  outline-offset: 1px;
}

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

.field-error {
  color: #9b3b2e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.form-status--success {
  background: rgba(123, 168, 160, 0.2);
  color: var(--ink);
}

.form-status--error {
  background: rgba(201, 123, 107, 0.25);
  color: #6e2f24;
}

.contact-details {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-details h2 {
  color: var(--white);
}

.contact-details a {
  color: var(--coral-soft);
}

.contact-details p {
  margin-bottom: 0.85rem;
}

/* Legal */
.legal-page .prose {
  max-width: 46rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid rgba(27, 42, 74, 0.15);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.cookies-table th {
  background: rgba(228, 213, 196, 0.5);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 254, 251, 0.88);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
}

.site-footer a {
  color: rgba(255, 254, 251, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--coral-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem;
  padding-bottom: var(--space-lg);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dune);
  margin-bottom: 1rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.45rem;
}

.site-footer__contact {
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.newsletter-form input {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 254, 251, 0.25);
  background: rgba(255, 254, 251, 0.08);
  color: var(--white);
  font: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 254, 251, 0.55);
}

.site-footer__strip {
  border-top: 1px solid rgba(255, 254, 251, 0.12);
  padding: 1rem 0;
  font-size: 0.88rem;
}

.site-footer__strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.4rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cookie-banner__copy {
  flex: 1 1 280px;
}

.cookie-banner__title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.cookie-banner__copy p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-banner__error {
  color: #9b3b2e;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1.25rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sea-glass);
  margin: 0;
  line-height: 1;
}

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

.team-card {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card__body {
  padding: 1.2rem 1.3rem 1.5rem;
}

.team-card__role {
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-list details p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .hero-editorial__layout,
  .page-hero--split .page-hero__grid,
  .feature-split,
  .feature-split--reverse,
  .content-grid,
  .contact-layout,
  .site-footer__grid,
  .card-grid,
  .process-steps,
  .story-grid,
  .team-grid,
  .fee-factors {
    grid-template-columns: 1fr;
  }

  .hero-editorial__media {
    min-height: 280px;
  }

  .hero-editorial__media img {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover { transform: none; }
  .hero-editorial__media img { transform: none; }
}
