/* Editorial Coastal Ledger — Ashford Lane Financial Advice */

:root {
  --color-teal: #3A7A72;
  --color-teal-deep: #2F635C;
  --color-salt: #F7FBFA;
  --color-sand: #E6DDD0;
  --color-sand-muted: #D9CFC0;
  --color-navy: #1B2A4A;
  --color-ink: #142033;
  --color-coral: #C4785A;
  --color-paper: #FFFcf7;
  --color-white: #FFFFFF;
  --color-text: #1B2A4A;
  --color-muted: #5A6578;
  --font-serif: "Libre Bodoni", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-card: 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-lift: 0 14px 32px rgba(27, 42, 74, 0.12);
  --radius-btn: 4px;
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    linear-gradient(180deg, var(--color-salt) 0%, #eef6f4 45%, var(--color-salt) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 250, 0.94);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-decoration: none;
  justify-self: center;
  grid-column: 2;
}

.site-header__brand:hover {
  color: var(--color-teal);
}

.site-header__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-navy), transparent);
  opacity: 0.25;
}

.site-header__toggle {
  grid-column: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-navy);
  background: var(--color-paper);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
  border-radius: var(--radius-btn);
}

.site-header__toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--color-navy);
}

.site-nav {
  grid-column: 1 / -1;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.site-nav.is-open .site-nav__list {
  display: flex;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-navy);
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 0;
  height: 1px;
  background: var(--color-coral);
  transition: width 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

@media (min-width: 960px) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-header__toggle {
    display: none;
  }

  .site-header__brand {
    grid-column: 2;
  }

  .site-nav {
    grid-column: 3;
    justify-self: end;
  }

  .site-nav__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    padding: 0;
  }

  .site-nav a {
    font-size: 0.78rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn--navy:hover {
  border-color: var(--color-coral);
  color: var(--color-salt);
}

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

.btn--teal:hover {
  border-color: var(--color-coral);
  color: var(--color-white);
}

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

.btn--ghost:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

/* Cards */
.card {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.card__header {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.card__body {
  padding: 1.25rem;
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--sand {
  background: var(--color-sand);
}

.section--teal-band {
  background: var(--color-teal);
  color: var(--color-salt);
}

.section--teal-band h2,
.section--teal-band h3 {
  color: var(--color-salt);
}

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 0.75rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 38rem;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero — asymmetric */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    min-height: min(72vh, 38rem);
  }
}

.hero__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero__text {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  width: 100%;
  height: min(70vh, 34rem);
  object-fit: cover;
  border: 1px solid rgba(27, 42, 74, 0.2);
  box-shadow: var(--shadow-card);
  will-change: transform;
}

.hero__caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

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

/* Offer strip */
.offer-preview {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .offer-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer-preview__item h3 {
  font-size: 1.35rem;
}

.offer-preview__item a {
  text-decoration: none;
  color: inherit;
}

.offer-preview__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Prose pages */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.12);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 40rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 42rem;
}

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

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

.prose th,
.prose td {
  border: 1px solid rgba(27, 42, 74, 0.2);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-sand);
  font-family: var(--font-serif);
}

/* Service detail */
.detail-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

.detail-aside {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.detail-aside dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-teal);
  margin-top: 1rem;
}

.detail-aside dt:first-child {
  margin-top: 0;
}

.detail-aside dd {
  margin: 0.25rem 0 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-salt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(27, 42, 74, 0.28);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  color: var(--color-ink);
}

.form__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__error {
  color: #9b3b2e;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form__status {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(27, 42, 74, 0.2);
  background: var(--color-paper);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--success {
  border-color: var(--color-teal);
  background: #e8f4f1;
}

.form__status--error {
  border-color: var(--color-coral);
  background: #fdf0eb;
}

.contact-panel {
  background: var(--color-sand);
  padding: 1.5rem;
  border: 1px solid rgba(27, 42, 74, 0.15);
}

.contact-panel h2 {
  font-size: 1.2rem;
}

/* Testimonials */
.quote-block {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.story {
  border-top: 1px solid rgba(27, 42, 74, 0.15);
  padding: 2rem 0;
}

.story h3 {
  font-size: 1.6rem;
}

/* Blog */
.post-list {
  display: grid;
  gap: 2rem;
}

.post-card {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .post-card {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.post-card__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-body {
  max-width: 42rem;
}

.post-body p {
  margin-bottom: 1.15rem;
}

/* Fees table */
.fee-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.12);
}

@media (min-width: 700px) {
  .fee-row {
    grid-template-columns: 1.4fr 0.6fr 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.fee-row__price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-navy);
}

/* Team */
.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(27, 42, 74, 0.18);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Approach timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--color-teal);
  margin-left: 0.75rem;
  padding-left: 1.75rem;
}

.timeline__item {
  padding-bottom: 2rem;
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-coral);
  border: 2px solid var(--color-navy);
  border-radius: 50%;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: var(--color-sand);
  padding: 3.5rem 0 0;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer__text {
  font-size: 0.92rem;
  color: var(--color-muted);
}

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

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

.site-footer__links a {
  text-decoration: none;
  color: var(--color-navy);
  font-size: 0.92rem;
}

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

.site-footer__stripe {
  height: 4px;
  margin-top: 2.5rem;
  background: linear-gradient(90deg, var(--color-navy), var(--color-teal), var(--color-coral));
}

.site-footer__legal {
  width: min(100% - 2.5rem, var(--max));
  margin: 0.85rem auto 1.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 32rem;
}

.cookie-banner__inner {
  background: var(--color-paper);
  border: 1px solid var(--color-navy);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.35rem;
}

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

.cookie-banner__text {
  font-size: 0.92rem;
  color: var(--color-muted);
}

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

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

/* 404 */
.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-page h1 {
  font-size: 3rem;
}

/* Image band */
.image-band {
  padding: 0;
}

.image-band img {
  width: 100%;
  height: min(48vh, 28rem);
  object-fit: cover;
}
