/* Golden Year Partners. Light by default for older readers, dark when the system asks. */
:root {
  /* Golden Year Partners brand, from the original site's Elementor kit: gold #ccb072,
     dark gold #ac9957, ink #171717, cream #fff8e8, Plus Jakarta Sans. Fixed for contrast:
     button text is ink (white on gold was 2.1:1), body grey #555 (the kit's #7a7a7a was 4.3:1),
     and text-sized gold uses --accent #7a6524 (5.3:1 on cream). */
  --paper: #ffffff;
  --surface: #ffffff;
  --alt: #fff8e8;
  --ink: #171717;
  --muted: #555555;
  --rule: #ece3cc;
  --brand: #ccb072;
  --brand-ink: #171717;
  --brand-hover: #bfa25e;
  --accent: #7a6524;
  --gold: #ccb072;
  --dark: #171717;
  --on-dark: #ffffff;
  --ok-bg: #e9f3ea;
  --ok-ink: #1d5c35;
  --err-bg: #fbe6e4;
  --err-ink: #9f2a20;
  --focus: #7a6524;
  --serif: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171717; --surface: #222222; --alt: #1f1d19; --ink: #f5f1e8; --muted: #b8b2a6;
    --rule: #39352c; --brand: #ccb072; --brand-ink: #171717; --brand-hover: #d9c18c; --accent: #ccb072; --gold: #ccb072;
    --dark: #0f0f0f; --on-dark: #ffffff;
    --ok-bg: #173325; --ok-ink: #a8e3bd; --err-bg: #3a1c19; --err-ink: #f4b4ad; --focus: #ccb072;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171717; --surface: #222222; --alt: #1f1d19; --ink: #f5f1e8; --muted: #b8b2a6;
  --rule: #39352c; --brand: #ccb072; --brand-ink: #171717; --brand-hover: #d9c18c; --accent: #ccb072; --gold: #ccb072;
  --dark: #0f0f0f; --on-dark: #ffffff;
  --ok-bg: #173325; --ok-ink: #a8e3bd; --err-bg: #3a1c19; --err-ink: #f4b4ad; --focus: #ccb072;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--muted); font: 400 1.125rem/1.65 var(--sans); }
h1, h2, h3, .h3, strong, label, legend, dt, .brand { color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 44rem; }
.wrap.narrow { max-width: calc(44rem + 64px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.repbar { background: var(--dark); color: var(--on-dark); font-size: 0.8125rem; line-height: 1.45; padding: 6px 0; }
.top { background: var(--surface); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; line-height: 0; margin: 0; }
.brand img { height: 44px; width: auto; }
.brand .logo-light { display: none; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; font-size: 1.0625rem; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); text-decoration: underline; }
@media (max-width: 719px) {
  .top-row { gap: 6px 12px; }
  .brand { flex: 1; padding: 6px 0; }
  .brand img { height: 38px; }
  .nav { order: 3; width: 100%; gap: 0 16px; }
  .nav a { font-size: 0.95rem; padding: 10px 0; }
  .hero-plain { padding-top: 32px; }
}

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); font: 600 1.0625rem/1 var(--sans);
  padding: 17px 28px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer; min-height: 52px; }
.btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { padding: 12px 16px; min-height: 44px; font-size: 0.975rem; }

.hero { padding: 56px 0 64px; }
.hero-plain { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(420px, 460px); gap: 56px; } .hero { padding: 80px 0 88px; } }
.kicker { color: var(--muted); font-size: 1.0625rem; margin-bottom: 14px; }
.lede { font-size: 1.25rem; color: var(--ink); max-width: 38rem; margin-bottom: 28px; }
.fine { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

.amt { color: var(--ink); display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.amt small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-left: 3px; }
.amt input { width: 5.2em; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  border-radius: 0; padding: 6px 2px; min-height: 44px; text-align: right; }
.amt input:focus { outline: none; border-bottom: 3px solid var(--focus); }

.loop img { display: block; width: 100%; max-width: 540px; margin: 0 auto; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); }
.take { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: t; }
.take li { counter-increment: t; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--rule); }
.take li::before { content: counter(t); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold);
  color: var(--accent); font: 600 1.1rem/32px var(--serif); text-align: center; }
.take h3 { margin: 0 0 4px; font-size: 1.2rem; }
.take p { margin: 0; color: var(--muted); }

/* phones: the booking button stays in reach once the hero has scrolled away */
.dock { display: none; }
@media (max-width: 719px) {
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, 0.4);
    transform: translateY(110%); transition: transform 220ms ease-out; }
  .dock.show { transform: none; }
  .dock .btn { width: 100%; text-align: center; }
  body.has-dock .foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* copy beside a working demo, alternating sides */
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 64px; } .feature.flip .demo { order: -1; } }
.feature-copy p { font-size: 1.15rem; }
.demo { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; box-shadow: 0 14px 34px -26px rgba(60, 45, 15, 0.45); }
.card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.card .big { font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; margin: 18px 0 4px; }
.card .big small { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-left: 6px; }
.src { color: var(--muted); font-size: 0.85rem; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--accent); border-radius: 10px; overflow: hidden; }
.seg button { font: 600 1rem var(--sans); color: var(--accent); background: transparent; border: 0; padding: 12px 6px; min-height: 48px; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--accent); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.pol { list-style: none; padding: 0; margin: 12px 0 18px; }
.pol li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 12px; border-top: 1px solid var(--rule); font-size: 0.95rem; border-radius: 6px; transition: background-color 200ms; }
.pol li strong { grid-column: 1 / -1; font-weight: 600; }
.pol li span { color: var(--muted); }
.pol li span:nth-of-type(2) { text-align: right; }
.pol li span:nth-of-type(3) { grid-column: 1 / -1; }
.checked .pol li[data-kind="hospital"] { background: color-mix(in srgb, var(--gold) 20%, transparent); }
.pol-note:empty { display: none; }
.pol-note { margin: 12px 0 0; font-weight: 600; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: var(--alt); color: var(--ink); }
#d-long label { display: block; font-weight: 600; margin-top: 4px; }
#d-long input[type=range] { width: 100%; margin: 10px 0 20px; accent-color: var(--accent); min-height: 32px; }
.amt-wide input { width: 7em; text-align: left; }
.ticks { list-style: none; padding: 0; margin: 10px 0; }
.ticks label { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); cursor: pointer; min-height: 48px; }
.ticks input, .ready { font-weight: 600; margin: 12px 0; }
.quotes-row { display: grid; gap: 28px; }
@media (min-width: 900px) { .quotes-row { grid-template-columns: 1fr 1fr; gap: 56px; } }

.band { padding: 56px 0; }
.band.alt { background: var(--alt); }
@media (min-width: 900px) { .band { padding: 80px 0; } }
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.trio { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trio > div { border-top: 3px solid var(--gold); padding-top: 18px; }
.grid2 { display: grid; gap: 28px 48px; margin-top: 24px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; padding: 0; margin: 28px 0; counter-reset: s; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps:not(.steps-long) { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--accent); font: 600 1.3rem/40px var(--serif); text-align: center; }
.steps-long li { padding: 0 0 0 64px; }
.steps-long h2 { font-size: 1.5rem; }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.quotes blockquote { margin: 0 0 24px; padding-left: 20px; border-left: 3px solid var(--gold); }
.quotes p { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.quotes footer { color: var(--muted); font-size: 0.95rem; }

.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
.faq details p { margin: 0 0 14px; }

.cta { background: var(--dark); color: var(--on-dark); }
.cta h2 { color: var(--on-dark); }
.cta h2 { max-width: 40rem; }
.cta p { max-width: 40rem; font-size: 1.15rem; }
.cta .btn { background: var(--brand); color: var(--brand-ink); }
.cta .btn:hover { background: var(--brand-hover); color: var(--brand-ink); }

/* forms */
.form-layout { align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; }
@media (min-width: 720px) { .panel { padding: 32px; } }
.lead label { display: block; font-weight: 600; margin: 16px 0 6px; }
.lead label:first-child { margin-top: 0; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.lead input, .lead textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule);
  border-radius: 8px; padding: 13px 14px; min-height: 52px; }
.lead input:focus, .lead textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--focus) 50%, transparent); outline-offset: 0; }
.lead input[aria-invalid="true"] { border-color: var(--err-ink); }
.lead .btn { width: 100%; margin-top: 22px; }
.lead .fine { margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:empty { display: none; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok-ink); }
.form-msg.err { background: var(--err-bg); color: var(--err-ink); }
.aside { margin-top: 18px; color: var(--muted); }

/* blog */
.cat { margin-bottom: 44px; }
.cat h2 { font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.postlist { list-style: none; padding: 0; margin: 0; }
.postlist li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.postlist a { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.postlist a:hover { text-decoration: underline; }
.postlist p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.post { padding: 40px 0 64px; }
.crumbs { color: var(--muted); font-size: 0.95rem; }
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }
.prose { font-size: 1.125rem; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.6rem; margin-top: 1.7em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--gold); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 30rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); }
.post-cta { margin: 48px 0 32px; padding: 26px; background: var(--alt); border-radius: 12px; }
.related ul { padding-left: 1.2em; }
.related li { margin-bottom: 8px; }

.foot { background: var(--alt); border-top: 1px solid var(--rule); padding: 44px 0 28px; margin-top: 0; }
.foot-row { display: grid; gap: 24px; margin-bottom: 28px; }
@media (min-width: 900px) { .foot-row { grid-template-columns: 1.4fr 1fr; } }
.foot-row p { color: var(--muted); max-width: 32rem; }
.foot nav { display: flex; flex-direction: column; gap: 2px; }
.foot nav a { color: var(--ink); padding: 6px 0; }
.legal { border-top: 1px solid var(--rule); padding-top: 20px; }
.legal p { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.legal p:first-child { color: var(--ink); font-size: 0.9rem; }


/* ---- original brand pieces ---- */
.eyebrow { display: block; color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.gold { color: var(--gold); }
.card, .panel { border-radius: 6px; }
.card, .panel { box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08); border-color: transparent; }
.seg { border-radius: 999px; }
.seg button[aria-pressed="true"] { border-radius: 999px; }

/* homepage: header floats over the photo hero, as on the original site */
.home .top { position: absolute; left: 0; right: 0; z-index: 5; background: transparent; border: 0; }
.home .top .nav a { color: #ffffff; }
.home .top .nav a:hover { color: var(--gold); }
.home .top .brand .logo-dark { display: none; }
.home .top .brand .logo-light { display: block; }
.home .hero { position: relative; color: #ffffff; padding-top: 150px;
  background: #171717 url(/assets/img/hero-couple-tablet.webp) center / cover no-repeat; }
.home .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.62) 55%, rgba(10, 10, 10, 0.35) 100%); }
.home .hero > .wrap { position: relative; }
.home .hero h1, .home .hero .lede { color: #ffffff; }
.home .hero .fine { color: rgba(255, 255, 255, 0.85); }
.home .hero .eyebrow { color: var(--gold); }
@media (max-width: 899px) { .home .hero { background-image: url(/assets/img/hero-couple-tablet-800.webp); padding-top: 140px; } }

/* inner pages: cream title band under a dark header */
.inner .top { background: var(--dark); border: 0; }
.inner .top .nav a { color: #ffffff; }
.inner .top .nav a:hover, .inner .top .nav a[aria-current] { color: var(--gold); }
.inner .top .brand .logo-dark { display: none; }
.inner .top .brand .logo-light { display: block; }
.inner .hero-plain { background: var(--alt); }

.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* closing banner over a photo, as on the original */
.cta { position: relative; text-align: center; background: #171717 url(/assets/img/couple-laughing.webp) center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, 0.68); }
.cta > .wrap { position: relative; }
.cta h2, .cta p { margin-left: auto; margin-right: auto; color: #ffffff; }

/* white footer with gold headings */
.foot { background: var(--paper); }
.foot .foot-title { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.foot .brand img { height: 52px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot .logo-dark { display: none; } :root:not([data-theme="light"]) .foot .logo-light { display: block; } }

#d-quotes blockquote:last-child { margin-bottom: 0; }

.hero-copy { max-width: 40rem; }
.home .hero { padding-bottom: 120px; }
@media (min-width: 900px) { .home .hero { padding-top: 190px; padding-bottom: 170px; } }
.age-out { margin-top: 20px; }
.age-out p:last-child { margin: 0; font-size: 1.1rem; }
