/* ==========================================================================
   Akwan Wellness — Design System & Responsive Stylesheet
   ========================================================================== */

:root {
  --bg-ivory: #FAF8F4;
  --bg-sand: #F1ECE3;
  --bg-card: #FFFFFF;
  --sage-deep: #3E5245;
  --sage-hover: #304136;
  --sage-soft: #E5ECE7;
  --terracotta: #934D37;
  --terracotta-accent: #B36A52;
  --text-primary: #262927;
  --text-secondary: #525853;
  --border-subtle: #E4DDD1;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(38, 41, 39, 0.06);
  --shadow-book: 0 22px 45px rgba(38, 41, 39, 0.14), 0 4px 12px rgba(38, 41, 39, 0.06);
  --container-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 0;
}

p {
  margin-top: 0;
  color: var(--text-secondary);
}

a {
  color: var(--sage-deep);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--sage-deep);
  color: var(--bg-ivory);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tinted {
  background-color: var(--bg-sand);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-header {
  max-width: 660px;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-bottom: 0.9rem;
}

.section-intro {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sage-deep);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-text span {
  font-weight: 400;
  color: var(--sage-deep);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-ivory);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 16px 28px rgba(38, 41, 39, 0.08);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--sage-deep);
}

.site-nav .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  background-color: var(--sage-deep);
  color: var(--bg-ivory);
  padding: 0.7rem 1.15rem;
}

.site-nav .nav-cta:hover {
  background-color: var(--sage-hover);
  color: var(--bg-ivory);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--sage-deep);
  color: var(--bg-ivory);
  border: 1px solid var(--sage-deep);
}

.btn-primary:hover {
  background-color: var(--sage-hover);
  border-color: var(--sage-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--sage-deep);
  border: 1px solid var(--sage-deep);
}

.btn-secondary:hover {
  background-color: var(--sage-soft);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: var(--sage-soft);
  color: var(--sage-deep);
  margin-bottom: 1rem;
}

.badge-subtle {
  background-color: var(--bg-sand);
  color: var(--terracotta);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 5rem 0 5.25rem;
  background: radial-gradient(circle at 85% 15%, rgba(229, 236, 231, 0.75) 0%, rgba(250, 248, 244, 0) 55%);
}

.hero-inner {
  max-width: 760px;
  margin-left: 0;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.about-copy p {
  margin-bottom: 1.15rem;
}

.about-copy strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-note {
  padding-left: 1rem;
  border-left: 3px solid var(--terracotta-accent);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.principles-card {
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  align-self: start;
}

.principles-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.principles-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.principles-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.principles-list strong {
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.principles-list span {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ==========================================================================
   Our Focus Cards
   ========================================================================== */

.focus-grid {
  display: grid;
  gap: 1.25rem;
}

.focus-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.focus-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.focus-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.65rem;
}

.focus-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Wellness Workbook Spotlight
   ========================================================================== */

.workbook-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.workbook-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 4px 14px 14px 4px;
  background-color: var(--sage-deep);
  box-shadow: var(--shadow-book);
  overflow: hidden;
  display: flex;
}

.book-spine {
  width: 18px;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.22));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.book-cover {
  flex: 1;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: var(--bg-ivory);
  background: linear-gradient(155deg, #43584B 0%, #33453A 100%);
  border: 1px solid rgba(250, 248, 244, 0.14);
  margin: 10px 10px 10px 0;
  border-radius: 2px 10px 10px 2px;
}

.book-brand {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(250, 248, 244, 0.8);
}

.book-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.book-emblem {
  color: rgba(250, 248, 244, 0.88);
}

.book-emblem-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--bg-ivory);
  margin: 0;
}

.book-subtitle {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.82);
  margin: 0;
  max-width: 22ch;
}

.book-edition {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(250, 248, 244, 0.72);
}

.visual-caption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.9rem;
  margin-bottom: 0;
  text-align: center;
}

.workbook-content h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  margin-bottom: 1rem;
}

.workbook-highlights {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.workbook-highlights li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.workbook-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--terracotta-accent);
}

.workbook-highlights strong {
  color: var(--text-primary);
  font-weight: 600;
}

.helper-text {
  font-size: 0.88rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
  max-width: 48ch;
}

/* ==========================================================================
   Subtle Companion App Band
   ========================================================================== */

.companion-band {
  padding: 3.75rem 0;
}

.companion-inner {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.companion-copy {
  max-width: 680px;
}

.companion-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.companion-copy p {
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin-bottom: 0.9rem;
}

.contact-card p {
  max-width: 52ch;
  margin: 0 auto 1.65rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta-accent);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: var(--terracotta);
  border-color: var(--sage-deep);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-ivory);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  font-size: 0.93rem;
  max-width: 36ch;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--sage-deep);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-disclaimer {
  font-size: 0.84rem;
  margin-bottom: 0;
  max-width: 78ch;
}

.footer-copy {
  font-size: 0.84rem;
  margin-bottom: 0;
}

.footer-bottom-compact {
  padding-top: 0;
}

.footer-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
}

.footer-inline-links a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer-inline-links a:hover {
  color: var(--sage-deep);
  text-decoration: underline;
}

/* ==========================================================================
   Legal Pages (Privacy & Disclaimer)
   ========================================================================== */

.legal-main {
  padding: 3.5rem 0 5rem;
}

.legal-container {
  max-width: 740px;
}

.back-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-container h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.9rem;
  margin-bottom: 2.25rem;
}

.legal-container h2 {
  font-size: 1.32rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-container p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    padding: 3.5rem 3rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 5.75rem 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .site-nav a {
    padding: 0.35rem 0;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
  }

  .hero {
    padding: 6.75rem 0 6.75rem;
  }

  .about-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
  }

  .workbook-grid {
    grid-template-columns: 0.9fr 1.15fr;
    gap: 4rem;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .footer-bottom-compact {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}