/* ------------------------------------------------------------
   Lufkin Longevity — matched to robertlufkinmd.com vibe
   Warm cream background · italic serif display · navy accent
------------------------------------------------------------ */

:root {
  --bg: #f8f5ef;
  --bg-alt: #f1ece2;
  --ink: #1c1a16;
  --ink-soft: #4b463e;
  --ink-muted: #7a7267;
  --rule: #e4dccb;
  --accent: #1e40af;          /* deep editorial blue */
  --accent-hover: #1e3a8a;
  --accent-soft: #2563eb;
  --dark: #15131018;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgb(28 26 22 / 0.06);
  --shadow: 0 10px 30px -10px rgb(28 26 22 / 0.15);

  --maxw: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

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

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 239, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  color: var(--accent);
  flex: none;
}

.wordmark-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 14px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* hide inline nav items on small screens, keep CTA */
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 7vw, 80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: 1200px;
}

.hero-text {
  max-width: 620px;
}

.hero-media {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 48px);
  }
  .hero-media {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
}

.eyebrow,
.section-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 22px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
}

.hero-sub {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 36px;
}

/* ---------- FORM ---------- */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--ink-muted);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(30 64 175 / 0.15);
}

.waitlist-form button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
}

.waitlist-form button:hover {
  background: var(--accent-hover);
}

.waitlist-form button:active {
  transform: translateY(1px);
}

.form-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 14px 0 0;
}

@media (max-width: 540px) {
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form button {
    width: 100%;
  }
}

/* ---------- ORNAMENT DIVIDER ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 0 10px;
}
.ornament span {
  display: block;
  height: 1px;
  width: 70px;
  background: var(--rule);
}
.ornament .dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- SECTIONS (generic) ---------- */
.intro {
  padding: clamp(60px, 9vw, 110px) 0 clamp(30px, 5vw, 60px);
}

.intro-inner {
  max-width: 760px;
}

.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.section-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* ---------- PILLARS ---------- */
.pillars {
  padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 9vw, 120px);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.pillar {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 0 0 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pillar-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  order: -1;
}

.pillar-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.pillar:hover .pillar-figure img {
  transform: scale(1.03);
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8cfb8;
}

.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin: 28px 28px 14px;
  letter-spacing: 0.05em;
}

.pillar h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 28px 12px;
  color: var(--ink);
}

.pillar p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 28px;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(70px, 9vw, 120px) 0;
}

.about-inner {
  max-width: 760px;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.faq-inner {
  max-width: 880px;
}

.faq-header {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.faq-header .section-lede {
  margin-top: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s ease;
}

.faq-item[open] {
  background: #fbf9f3;
  margin: 0 clamp(-12px, -1.2vw, -18px);
  padding: 0 clamp(12px, 1.2vw, 18px);
  border-radius: 6px;
  border-bottom-color: transparent;
  box-shadow:
    0 0 0 1px var(--rule),
    0 6px 18px -12px rgba(28, 26, 22, 0.15);
}

.faq-item[open] + .faq-item {
  border-top: 0;
}

.faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(14px, 2.2vw, 24px);
  align-items: baseline;
  padding: 26px 4px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.04em;
  align-self: center;
  min-width: 24px;
}

.faq-q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.3;
  color: var(--ink);
}

.faq-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  align-self: center;
  flex: none;
  color: var(--ink-muted);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  color: var(--accent);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-a {
  padding: 4px 4px 32px;
  margin-left: calc(24px + clamp(14px, 2.2vw, 24px));
  max-width: 68ch;
}

.faq-a p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.faq-a li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(228, 220, 203, 0.7);
  overflow-wrap: break-word;
  word-break: normal;
}

.faq-a li:last-child {
  border-bottom: 0;
}

.faq-a li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.faq-a li strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 560px) {
  .faq-item summary {
    padding: 22px 2px;
    gap: 12px;
  }
  .faq-num {
    font-size: 14px;
    min-width: 20px;
  }
  .faq-a {
    margin-left: 32px;
    padding-bottom: 24px;
  }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #f5f1e8;
  padding: clamp(70px, 9vw, 120px) 0;
}

.cta-inner {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: #fdfaf2;
}

.cta-sub {
  font-size: 17px;
  color: #c9c1b1;
  margin: 0 0 32px;
}

.waitlist-form--light {
  margin: 0 auto;
}

.waitlist-form--light input[type="email"] {
  background: #fff;
  border-color: transparent;
}

.form-note--light {
  color: #a49c8c;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-brand .wordmark-text {
  font-size: 18px;
  color: var(--ink);
}

.footer-brand p {
  margin: 4px 0 0;
}

.footer-meta {
  text-align: right;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-meta p {
  margin: 6px 0 0;
}

@media (max-width: 560px) {
  .footer-meta {
    text-align: left;
  }
}

/* ---------- SUCCESS DIALOG ---------- */
.success {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(3px);
}

.success.is-open {
  display: flex;
  animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 34px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.4);
  border: 1px solid var(--rule);
}

.success-card svg {
  color: var(--accent);
  margin-bottom: 16px;
}

.success-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--ink);
}

.success-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 22px;
}

.success-card button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.success-card button:hover {
  background: #000;
}
