/* ==========================================================================
   K Beauty Lab — design system
   Palette: sage green + warm cream. Type: Playfair Display / Inter
   ========================================================================== */

:root {
    --green-dark:   #2e4638;   /* headings, primary buttons */
    --green:        #3a5646;
    --green-muted:  rgba(45, 69, 56, 0.63);
    --text:         #5b625c;   /* body text */
    --olive:        #777e5b;
    --sage:         #dce3d1;
    --sage-soft:    rgba(220, 227, 209, 0.44);
    --cream:        #f8f6f0;   /* section background */
    --cream-2:      #f3ece2;
    --sand:         #e5ddc6;
    --white:        #ffffff;
    --black:        #1d1e20;

    --font-head: "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --container: 1200px;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow: 0 10px 40px rgba(46, 70, 56, 0.08);
    --shadow-lg: 0 20px 60px rgba(46, 70, 56, 0.12);
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--green-dark);
    font-weight: 500;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-sage  { background: var(--sage-soft); }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 600;
    color: var(--olive);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(30px, 4vw, 46px);
    margin-bottom: 18px;
}

.section-intro {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
    color: var(--text);
}
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    padding: 15px 34px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--green-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 70, 56, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}
.brand-logo { height: 48px; width: auto; border-radius: 50%; }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--green-dark);
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--olive);
    transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--olive); }
.btn-book { padding: 11px 26px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--green-dark);
    transition: var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../img/hero-bg.png") center/cover no-repeat;
    opacity: 0.35;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    padding: 90px 0 100px;
}
.hero-copy h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.08;
    margin-bottom: 26px;
    max-width: 12ch;
}
.hero-copy p { font-size: 19px; margin-bottom: 34px; max-width: 46ch; }
.hero-photo {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Cards / services
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(46, 70, 56, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; background: var(--sage); }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 22px; margin-bottom: 12px; }
.card-body p { font-size: 15px; margin-bottom: 20px; flex: 1; }
.card-link {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--olive);
}
.card-link:hover { color: var(--green-dark); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-head);
    font-size: clamp(40px, 5vw, 58px);
    color: var(--green-dark);
    line-height: 1;
}
.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 600;
    color: var(--olive);
    margin-top: 10px;
}

/* ==========================================================================
   Difference (split) section
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}
.split-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 22px; }
.split-copy p { margin-bottom: 18px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    padding: 88px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 34px; opacity: 0.9; }

/* ==========================================================================
   Instagram feed
   ========================================================================== */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.insta-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: var(--transition); }
.insta-grid a:hover img { opacity: 0.85; transform: scale(1.02); }

/* ==========================================================================
   Contact section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    text-align: center;
}
.contact-card h4 {
    font-size: 15px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--olive);
    margin-bottom: 16px;
}
.contact-card .big { font-family: var(--font-head); font-size: 22px; color: var(--green-dark); }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(46,70,56,0.12); font-size: 15px; }
.hours-list li:last-child { border-bottom: none; }
.badge {
    display: inline-block;
    background: var(--sand);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.82); padding: 72px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding-bottom: 56px;
}
.footer-logo { height: 48px; width: auto; border-radius: 50%; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; margin-bottom: 20px; }
.footer-social { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--white); }
.footer-social img { border-radius: 6px; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 15px; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; }
.footer-bottom p { font-size: 13px; text-align: center; color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { background: var(--cream); text-align: center; padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.page-hero p { max-width: 620px; margin: 0 auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 20px; }
.prose h2 { margin: 40px 0 16px; font-size: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 70px; }
    .hero-photo { max-width: 480px; margin: 0 auto; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split-img { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .main-nav {
        position: fixed;
        inset: 78px 0 auto 0;
        background: var(--white);
        border-bottom: 1px solid rgba(46,70,56,0.1);
        transform: translateY(-120%);
        transition: transform var(--transition);
        box-shadow: var(--shadow);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px; }
    .main-nav li { border-bottom: 1px solid rgba(46,70,56,0.06); }
    .main-nav a { display: block; padding: 14px 0; }
    .nav-toggle { display: flex; }
    .btn-book { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .card-grid, .stats, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .stats { gap: 32px; }
}
