/* ==========================================================================
   Lotus Bud Acupuncture — design system
   Palette drawn from the logo: sage greens + soft blush on warm cream.
   ========================================================================== */

:root {
    /* Color */
    --pine-900: #223528;
    --pine-800: #2e4636;
    --pine-700: #3d5a45;
    --sage-600: #739867;
    --sage-400: #b2c491;
    --sage-100: #e9efdf;
    --blush-400: #eccbc1;
    --blush-200: #f6e5de;
    --blush-100: #faf0eb;
    --cream: #faf7f2;
    --white: #ffffff;
    --ink: #2b352e;
    --ink-soft: #5b6a5f;

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

    /* Shape & shadow */
    --radius: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(34, 53, 40, 0.06), 0 4px 14px rgba(34, 53, 40, 0.05);
    --shadow-md: 0 4px 10px rgba(34, 53, 40, 0.07), 0 14px 34px rgba(34, 53, 40, 0.09);

    --container: 1140px;
}

/* ---------- Base ---------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--pine-800);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.5em; }

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--pine-700);
    text-decoration: none;
    transition: color 0.25s ease;
}

ul, ol { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 104px 0; }
.section-tinted { background-color: var(--white); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--pine-800);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    z-index: 2000;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--sage-600);
    outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage-600);
    margin-bottom: 14px;
}

.eyebrow-light { color: var(--sage-400); }

.lede {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 34em;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-sub {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.text-link {
    font-weight: 600;
    color: var(--pine-700);
    border-bottom: 1px solid var(--sage-400);
    padding-bottom: 1px;
}
.text-link:hover { color: var(--sage-600); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--pine-700);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--pine-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--pine-700);
    color: var(--pine-700);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--pine-700);
    color: var(--white);
}

.btn-ghost {
    color: var(--pine-700);
    padding-left: 18px;
    padding-right: 18px;
}
.btn-ghost:hover { color: var(--sage-600); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text { line-height: 1.15; }

.logo-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pine-800);
}

.logo-tagline {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sage-600);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-nav a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}
.site-nav a:not(.btn):hover { color: var(--sage-600); }

.btn-nav { padding: 9px 22px; font-size: 0.9rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    height: 2px;
    width: 100%;
    background-color: var(--pine-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(160deg, var(--blush-100) 0%, var(--cream) 45%, var(--sage-100) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 110px;
}

.hero h1 { margin: 0 0 24px; }
.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--sage-600);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
}

.hero-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    max-width: 90%;
    background: radial-gradient(circle at 40% 35%, var(--white) 0%, var(--white) 30%, var(--sage-100) 62%, var(--sage-400) 105%);
    border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
    opacity: 0.9;
    filter: blur(1px);
    animation: blob-drift 14s ease-in-out infinite alternate;
}

@keyframes blob-drift {
    from { border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%; transform: rotate(-2deg) scale(1); }
    to   { border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%; transform: rotate(3deg) scale(1.04); }
}

.hero-lotus {
    position: relative;
    width: min(300px, 60%);
    filter: drop-shadow(0 18px 30px rgba(34, 53, 40, 0.18));
}

/* Trust bar */
.trust-bar {
    border-top: 1px solid rgba(115, 152, 103, 0.25);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 18px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--pine-700);
    text-align: center;
}

.trust-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--sage-400);
    flex-shrink: 0;
}

/* ---------- Split layout (Approach / Conditions) ---------- */

.split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
}

.split-body p { margin-bottom: 20px; color: var(--ink); }
.split-body p:last-of-type { margin-bottom: 28px; }

/* ---------- Service cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    background-color: var(--cream);
    border: 1px solid rgba(115, 152, 103, 0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-photo {
    width: 100%;
    aspect-ratio: 900 / 640;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-photo { transform: scale(1.04); }

.card-body { padding: 26px 28px 30px; }

.card p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Conditions ---------- */

.condition-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
    margin-bottom: 30px;
}

.condition-list li {
    position: relative;
    padding: 10px 14px 10px 36px;
    background-color: var(--white);
    border: 1px solid rgba(115, 152, 103, 0.18);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.condition-list li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--sage-600), var(--sage-400));
}

.condition-note { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: step;
}

.step {
    background-color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    border: 1px solid rgba(115, 152, 103, 0.16);
}

.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--sage-400);
    margin-bottom: 14px;
}

.step p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Bio ---------- */

.bio-grid {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 64px;
    align-items: start;
}

.bio-figure {
    position: sticky;
    top: 110px;
}

.bio-figure img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.bio-figure figcaption {
    margin-top: 18px;
    text-align: center;
    line-height: 1.4;
}

.bio-figure figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--pine-800);
}

.bio-figure figcaption span {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-600);
}

.bio-text p { margin-bottom: 20px; }

.credentials {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credentials li {
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pine-700);
}

.credentials li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--sage-100), var(--blush-200));
    border: 1.5px solid var(--sage-600);
}

.credentials li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 6px;
    height: 9px;
    border: solid var(--pine-700);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* ---------- Locations ---------- */

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    max-width: 940px;
    margin: 0 auto;
}

.location-card {
    background-color: var(--cream);
    border: 1px solid rgba(115, 152, 103, 0.16);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.location-city {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage-600);
    margin-bottom: 10px;
}

.location-desc {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin-bottom: 24px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.location-details li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.location-details svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--sage-600);
}

.location-details a { font-weight: 500; }
.location-details a:hover { color: var(--sage-600); }

.location-cta { align-self: flex-start; }

/* ---------- Contact ---------- */

.contact-section {
    background: linear-gradient(150deg, var(--pine-800) 0%, var(--pine-900) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.contact-info h2 { color: var(--white); }
.contact-info > p { color: rgba(255, 255, 255, 0.82); margin-bottom: 36px; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage-400);
}

.contact-details a,
.contact-details li > span:not(.contact-label) {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-details a:hover { color: var(--blush-400); }

.contact-form-wrapper {
    background-color: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pine-800);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid rgba(115, 152, 103, 0.35);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background-color: var(--cream);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-600);
    background-color: var(--white);
}

.form-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
    background-color: var(--pine-900);
    padding: 44px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.3;
}

.footer-cred {
    font-size: 0.8rem;
    color: var(--sage-400);
}

.footer-nav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Scroll reveal ---------- */

html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-blob { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .section { padding: 80px 0; }

    .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
    .hero-art { order: -1; min-height: 240px; }
    .hero-blob { width: 300px; height: 300px; }
    .hero-lotus { width: 200px; }

    .split { grid-template-columns: 1fr; gap: 28px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .condition-list { grid-template-columns: repeat(2, 1fr); }

    .bio-grid { grid-template-columns: 1fr; gap: 40px; }
    .bio-figure { position: static; max-width: 380px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 700px) {
    .nav-toggle { display: flex; }

    .nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    .site-nav {
        position: fixed;
        inset: 78px 0 auto 0;
        background-color: var(--cream);
        box-shadow: var(--shadow-md);
        transform: translateY(-130%);
        transition: transform 0.35s ease;
        padding: 28px 0 36px;
    }

    .site-nav.open { transform: translateY(0); }

    .site-nav ul {
        flex-direction: column;
        gap: 22px;
    }

    .card-grid { grid-template-columns: 1fr; }
    .location-grid { grid-template-columns: 1fr; }
    .condition-list { grid-template-columns: 1fr; }

    .hero-actions { justify-content: flex-start; }

    .contact-form-wrapper { padding: 32px 24px; }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand { flex-direction: column; }
    .footer-nav { justify-content: center; }
}
