/* ===========================================================
   ARCHETYPE WELLNESS AND LONGEVITY
   Holistic & elite — warm light stylesheet
   =========================================================== */

:root {
  /* Backgrounds */
  --bg-base: #FAF7F2;        /* warm white — body */
  --bg-soft: #F0E9DC;        /* light beige — alternating sections */
  --bg-warm: #E8DFCD;        /* warmer beige — accent surfaces */
  --surface: #FFFFFF;        /* cards, forms */
  --surface-tinted: #FCF9F4; /* very subtle cream surface */

  /* Text */
  --text-primary: #2A2620;   /* warm charcoal — headlines & body */
  --text-secondary: #5C544B; /* warm gray-brown — secondary copy */
  --text-muted: #8F877B;     /* muted earth — captions, labels */

  /* Accents */
  --accent: #A8865A;         /* sophisticated bronze-gold */
  --accent-bright: #C4A574;  /* warmer hover gold */
  --accent-deep: #8B6E45;    /* deeper gold for text on light bg */
  --sage: #889679;           /* subtle holistic sage — used sparingly */
  --sage-soft: #B5BFA8;      /* lighter sage hint */

  /* Lines & shadows */
  --border: rgba(168, 134, 90, 0.22);
  --border-strong: rgba(168, 134, 90, 0.45);
  --shadow-soft: 0 8px 30px rgba(43, 38, 32, 0.06);
  --shadow-medium: 0 16px 40px rgba(43, 38, 32, 0.10);
  --shadow-strong: 0 24px 60px rgba(43, 38, 32, 0.14);

  /* Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-weight: 500;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  display: block;
  height: 104px;
  width: auto;
  max-width: 100%;
}

.footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}

.footer-logo img {
  display: block;
  height: 84px;
  width: auto;
  max-width: 320px;
}

.hero-logo {
  display: block;
  margin: 0 auto 2.5rem;
  max-width: 520px;
  width: 100%;
  height: auto;
}

/* (responsive logo/hero-logo rules consolidated into main 768px block below) */

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
}

nav a:hover,
nav a.active {
  color: var(--accent-deep);
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.5rem !important;
  color: var(--accent-deep) !important;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--surface) !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--surface);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background:
    radial-gradient(ellipse at top, rgba(168, 134, 90, 0.10), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(136, 150, 121, 0.10), transparent 55%),
    var(--bg-base);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(168, 134, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 134, 90, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-weight: 300;
  margin-bottom: 1.8rem;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.8rem;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 10rem 2rem 5rem;
  background:
    radial-gradient(ellipse at top, rgba(168, 134, 90, 0.10), transparent 60%),
    var(--bg-base);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header .eyebrow {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.2rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 4rem;
}

.section-center {
  text-align: center;
}

.section-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
}

.section-center .divider {
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS / GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.card ul {
  list-style: none;
  margin-top: 1rem;
}

.card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ===== TWO-COLUMN SPLIT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.split-image {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.split-image::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  opacity: 0.35;
}

.split-image-label {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  background: rgba(43, 38, 32, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 2;
}

/* ===== CREDENTIALS / STATS ===== */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cred-item {
  text-align: center;
}

.cred-number {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 2.5rem;
  color: var(--accent-deep);
  font-weight: 400;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.cred-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== ALTERNATING BG ===== */
.bg-darker {
  background: var(--bg-soft);
}

.bg-soft {
  background: var(--bg-warm);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse at center, rgba(168, 134, 90, 0.10), transparent 70%),
    var(--bg-warm);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: var(--text-primary);
}

.cta-banner p {
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* ===== FORM ===== */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.6rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text-primary);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-warm);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

footer h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.2rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.6rem;
}

footer ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

footer ul li a:hover {
  color: var(--accent-deep);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

.disclaimer strong {
  color: var(--accent-deep);
  font-style: normal;
}

/* ===== FIRST SECTION (replaces inline padding-top on services/philosophy) ===== */
.first-section {
  padding-top: 10rem;
}

/* ===== HAMBURGER TOGGLE (hidden on desktop) ===== */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.6rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
  position: relative;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== OVERLAY SCRIM ===== */
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 38, 32, 0.45);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-open .nav-scrim {
  display: block;
  opacity: 1;
}

/* ===== RESPONSIVE: TABLET & MOBILE (768px) ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-base);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(42, 38, 32, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6rem 2rem 2rem;
  }

  .nav-open nav {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  nav ul li {
    border-bottom: 1px solid var(--border);
  }

  nav ul li:last-child {
    border-bottom: none;
    margin-top: 1rem;
  }

  nav a {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    min-height: 44px;
  }

  nav a.active::after {
    display: none;
  }

  .nav-cta {
    display: block !important;
    text-align: center;
    padding: 1rem 1.5rem !important;
    min-height: 48px;
    border-radius: var(--radius-sm);
  }

  body.nav-open {
    overflow: hidden;
  }

  .logo img {
    height: 72px;
  }

  .hero-logo {
    max-width: 360px;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  section {
    padding: 4rem 0;
  }

  .page-header {
    padding: 7rem 1.5rem 3rem;
  }

  .first-section {
    padding-top: 7rem;
  }

  .cta-banner {
    padding: 4rem 1.5rem;
  }

  .hero-eyebrow {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
  }

  .credentials {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .form-row input,
  .form-row textarea,
  .form-row select {
    padding: 1rem;
    font-size: 16px;
  }

  footer ul li a {
    display: inline-block;
    padding: 0.4rem 0;
    min-height: 44px;
    line-height: 2.4;
  }
}

/* ===== RESPONSIVE: NARROW PHONES (480px) ===== */
@media (max-width: 480px) {
  .nav-wrap {
    padding: 0.8rem 1rem;
  }

  .logo img {
    height: 56px;
  }

  .container,
  .container-narrow {
    padding: 0 1.2rem;
  }

  .page-header {
    padding: 6rem 1.2rem 2.5rem;
  }

  .first-section {
    padding-top: 6rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero-eyebrow {
    font-size: 1.05rem !important;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .credentials {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cred-number {
    font-size: 2rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .cta-banner {
    padding: 3rem 1.2rem;
  }

  .split {
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== LEGACY VARIABLE ALIASES =====
   Keep legacy var names working in inline styles across HTML files. */
:root {
  --navy-deep: var(--bg-base);
  --navy: var(--bg-soft);
  --navy-soft: var(--bg-warm);
  --gold: var(--accent);
  --gold-bright: var(--accent-deep);
  --gold-soft: var(--accent);
  --ivory: var(--text-primary);
  --bone: var(--bg-soft);
  --text-light: var(--text-secondary);
}
