/* ===========================================================================
   Lumina — clean, modern landing page styles
   Sections: tokens · base · layout · header/nav · hero · cards · about ·
             contact/form · footer · reveal animation · responsive
   =========================================================================== */

/* ---- Design tokens ---- */
:root {
    --bg:          #ffffff;
    --bg-alt:      #f6f7fb;
    --surface:     #ffffff;
    --text:        #1c2230;
    --muted:       #5b6577;
    --border:      #e6e8ef;

    --brand:       #4f46e5;   /* indigo */
    --brand-dark:  #4338ca;
    --brand-soft:  #eef0ff;
    --accent:      #06b6d4;   /* cyan, for the hero glow */

    --success-bg:  #e9f9ef;  --success-fg: #1b7a43;
    --error-bg:    #fdecec;  --error-fg:   #c0362c;

    --radius:      14px;
    --radius-sm:   10px;
    --shadow:      0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lg:   0 18px 50px rgba(79,70,229,.18);

    --container:   1120px;
    --font:        system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }

img, svg { max-width: 100%; }

.muted { color: var(--muted); }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--brand);
    color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
    text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
    font-weight: 700; color: var(--brand); margin: 0 0 .6rem;
}

.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; font-weight: 600; font-size: .95rem; cursor: pointer;
    padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
    background: var(--brand); color: #fff; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--brand-dark); border-color: var(--brand); box-shadow: var(--shadow); }

/* ---- Header / nav ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); font-size: 1.15rem; }
.brand-mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 1rem;
}

.primary-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--text); font-weight: 500; font-size: .96rem; }
.primary-nav a:hover { color: var(--brand); }
.primary-nav .btn:not(.btn-ghost) { color: #fff; }   /* solid nav buttons only; keep ghost ("Book a meeting") text dark/brand & visible */

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-inner { position: relative; max-width: 760px; text-align: center; margin-inline: auto; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 620px; margin-inline: auto; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-glow {
    position: absolute; inset: auto 50% -55% auto; transform: translateX(50%);
    width: min(720px, 90vw); height: 420px; z-index: -1;
    background: radial-gradient(closest-side, rgba(79,70,229,.22), rgba(6,182,212,.10), transparent);
    filter: blur(8px);
}

/* ---- Cards ---- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem 1.4rem; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-icon {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
    border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---- About / stats ---- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem;
    border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.4rem 1.2rem; text-align: center; box-shadow: var(--shadow);
}
.stat-value { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---- Contact / form ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro p { color: var(--muted); }

.contact-form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
    font: inherit; color: var(--text); padding: .7rem .85rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input.invalid, .field textarea.invalid { border-color: var(--error-fg); }
.field .error { color: var(--error-fg); font-size: .82rem; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; margin: 0; }
.alert-success { background: var(--success-bg); color: var(--success-fg); }
.alert-error   { background: var(--error-bg);   color: var(--error-fg); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { background: #0f1320; color: #c7cdda; padding: 3rem 0 1.5rem; margin-top: 1rem; }
.site-footer .brand, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { color: #97a0b3; max-width: 32ch; font-size: .94rem; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: #c7cdda; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #97a0b3; }

/* ---- Reveal-on-scroll animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 70px 0 auto 0; background: var(--bg);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
    .primary-nav li { border-bottom: 1px solid var(--border); }
    .primary-nav li:last-child { border-bottom: 0; padding-top: .75rem; }
    .primary-nav a { display: block; padding: .85rem 0; }
    .primary-nav .btn { display: inline-flex; }
}

@media (max-width: 460px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Booking widget ---- */
.booking-grid{max-width:760px;margin-inline:auto}
.bk-tz{color:var(--muted);font-size:.92rem;margin-bottom:1rem}
.bk-tz select{font:inherit;padding:.3rem .5rem;border:1px solid var(--border);border-radius:8px}
.bk-step{margin:0 0 1.25rem}
.bk-label{font-weight:700;margin:0 0 .6rem}
.bk-days,.bk-times{display:flex;flex-wrap:wrap;gap:.5rem}
.bk-chip{font:inherit;cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:999px;padding:.5rem .9rem;transition:all .15s ease}
.bk-chip:hover{border-color:var(--brand);color:var(--brand)}
.bk-chip.sel{background:var(--brand);color:#fff;border-color:var(--brand)}
.bk-when{margin:.2rem 0 1rem;color:var(--muted)}
.bk-form{display:grid;gap:1rem;max-width:460px}
.bk-msg,.bk-done{text-align:center;color:var(--muted);padding:1.5rem}
.bk-done h3{color:var(--brand);font-size:1.4rem;margin:.2rem 0}
.bk-err{background:var(--error-bg);color:var(--error-fg);padding:.7rem 1rem;border-radius:10px;margin:0}
