/* Shared styles for all preview stub pages.
   Brand tokens lifted from tailwind.config.ts + globals.css.        */

:root {
  --pure-black: #3D4042;
  --pure-cream: #F4EFEB;
  --pure-beige: #ABA394;
  --pure-white: #FFFFFF;
  --longevity-blue: #8499AD;
  --longevity-sea: #DEE9F4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--pure-black);
  background: var(--pure-cream);
  letter-spacing: 0.04em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Lora, "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.max { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .max { padding: 0 40px; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--pure-beige);
  margin: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font-size: 14px; font-weight: 300; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-primary { background: var(--pure-black); color: var(--pure-cream); border-color: var(--pure-black); }
.btn-primary:hover { background: transparent; color: var(--pure-black); }
.btn-secondary { background: transparent; color: var(--pure-black); border-color: var(--pure-black); }
.btn-secondary:hover { background: var(--pure-black); color: var(--pure-cream); }
.btn-onDark { background: transparent; color: var(--pure-cream); border-color: var(--pure-cream); }
.btn-onDark:hover { background: var(--pure-cream); color: var(--pure-black); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px;
}
.link-arrow:hover { opacity: 0.7; }

.section { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 235, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(171, 162, 149, 0.2);
}
header.site .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 1024px) { header.site .row { padding: 20px 40px; } }
header.site .logo {
  font-family: "Cormorant Garamond", serif; font-size: 22px;
  display: inline-flex; align-items: center;
}
header.site .logo img { height: 64px; width: auto; display: block; }
@media (max-width: 720px) { header.site .logo img { height: 52px; } }
header.site nav { display: none; gap: 36px; align-items: center; }
header.site nav a {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em;
}
header.site nav a:hover { opacity: 0.6; }
header.site nav .lang-toggle {
  margin-left: 8px; padding-left: 16px;
  border-left: 1px solid rgba(171, 162, 149, 0.4);
  font-size: 11px; letter-spacing: 0.2em;
}
header.site nav .lang-toggle .inactive { color: var(--pure-beige); }
@media (min-width: 900px) { header.site nav { display: flex; } }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; width: 40px; height: 40px;
}
.menu-toggle span {
  display: block; width: 24px; height: 1px; background: var(--pure-black);
  margin: 6px auto; transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  header.site nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--pure-cream);
    padding: 40px 24px; gap: 24px;
    align-items: flex-start;
    z-index: 100;
    overflow-y: auto;
  }
  header.site nav.open a { font-size: 18px; padding: 6px 0; letter-spacing: 0.12em; }
  header.site nav.open .lang-toggle { margin-left: 0; padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid rgba(171, 162, 149, 0.3); margin-top: 16px; width: 100%; }
}

/* Page hero */
.page-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid rgba(171, 162, 149, 0.2);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  max-width: 760px;
  margin: 16px 0 16px;
}
.page-hero p.sub { max-width: 520px; opacity: 0.92; margin: 0; font-size: 16px; }

/* Two-column prose */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 80px; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 36px; } }

.band-white {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(171, 162, 149, 0.2);
  border-bottom: 1px solid rgba(171, 162, 149, 0.2);
}
.band-dark { background: var(--pure-black); color: var(--pure-cream); }
.band-dark h2, .band-dark h3 { color: var(--pure-cream); }

/* Pillar / facility cards */
.tile {
  border: 1px solid rgba(171, 162, 149, 0.4);
  padding: 22px;
  background: rgba(255, 255, 255, 0.4);
}
.tile h3 { font-size: 20px; margin: 0 0 8px; }
.tile p { font-size: 14px; margin: 0; opacity: 0.85; }

/* Footer */
footer.site {
  background: var(--pure-black); color: var(--pure-cream);
  padding: 24px 0 24px;
}
footer.site .row {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 720px)  { footer.site .row { grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 48px; } }
@media (min-width: 1024px) { footer.site .row { padding: 0 40px; } }
footer.site .col h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pure-cream); opacity: 0.55;
  margin: 0 0 18px; font-family: "Nunito Sans", sans-serif; font-weight: 400;
}
footer.site .col p, footer.site .col a {
  font-size: 13px; line-height: 1.7; color: var(--pure-cream);
  opacity: 0.75; margin: 0; text-decoration: none; display: block;
}
footer.site .col a:hover { opacity: 1; }
footer.site .col.brand .footer-arch { display: inline-block; opacity: 0.9; margin-bottom: 18px; }
footer.site .col.brand .footer-arch img { height: 44px; width: auto; display: block; }
footer.site .col.brand p { max-width: 260px; margin-left: auto; }
footer.site .col.brand { order: 4; text-align: right; }
footer.site .col.brand .footer-arch img { margin-left: auto; }

@media (max-width: 720px) {
  footer.site .col.brand { order: 0; text-align: left; }
  footer.site .col.brand .footer-arch img { margin-left: 0; }
  footer.site .col.brand p { margin-left: 0; }
}
footer.site .legal {
  max-width: 1200px; margin: 40px auto 0; padding: 18px 24px 0;
  border-top: 1px solid rgba(244, 239, 235, 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pure-cream); opacity: 0.45;
}
@media (min-width: 1024px) { footer.site .legal { padding: 18px 40px 0; } }

.placeholder-marker {
  display: inline-block; padding: 2px 8px;
  border: 1px dashed var(--pure-beige); color: var(--pure-beige);
  font-size: 12px; letter-spacing: 0.08em; margin: 6px 0;
}

/* Tighten the gap between final CTA band and footer */
main .section.band-dark:last-child { padding-bottom: 40px; }

/* Accessibility — skip-to-content link, visually hidden until focused */
.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--pure-black); color: var(--pure-cream);
  padding: 12px 16px; z-index: 100; transition: top 0.2s;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.skip:focus { top: 16px; outline: none; }

/* Forms — Netlify Forms styling */
.pw-form { display: grid; gap: 18px; }
.pw-form .row-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .pw-form .row-2 { grid-template-columns: 1fr 1fr; } }
.pw-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 235, 0.7);
}
.pw-form input[type="text"],
.pw-form input[type="email"],
.pw-form input[type="tel"],
.pw-form select,
.pw-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(244, 239, 235, 0.08);
  border: 1px solid rgba(244, 239, 235, 0.3);
  color: var(--pure-cream);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: border-color 0.2s, background 0.2s;
}
.pw-form input:focus,
.pw-form select:focus,
.pw-form textarea:focus {
  outline: none;
  border-color: var(--pure-cream);
  background: rgba(244, 239, 235, 0.14);
}
.pw-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%23F4EFEB'%3E%3Cpath d='M0 0l6 8 6-8z' opacity='0.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 36px; }
.pw-form textarea { resize: vertical; min-height: 100px; }
.pw-form fieldset { border: none; padding: 0; margin: 0; }
.pw-form fieldset legend { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(244, 239, 235, 0.7); margin-bottom: 12px; }
.pw-form .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.pw-form .checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: none; letter-spacing: 0.02em; color: var(--pure-cream); opacity: 0.85; cursor: pointer; }
.pw-form .checks input { margin: 0; accent-color: var(--pure-cream); }
.pw-form button[type="submit"] { margin-top: 12px; justify-self: start; }
.pw-form .privacy { font-size: 11px; opacity: 0.6; color: var(--pure-cream); margin: 0; }
