/* ============================================================
   Serenity Spa - Stylesheet
   ============================================================ */

:root {
    --sage: #2f5b41;
    --sage-dark: #16301f;
    --forest: #16301f;
    --forest-light: #2f5b41;
    --sand: #f3ede0;
    --cream: #fbf8f4;
    --charcoal: #211f1a;
    --gold: #dc9d3f;
    --gold-light: #f0b866;
    --white: #ffffff;
    --danger: #b5544a;
    --success: #5c8a5c;
    --warning: #c9962e;
    --border: #e3ddd2;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(22, 48, 31, 0.1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--charcoal); margin-top: 0; }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--forest);
    border-bottom: none;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}
.navbar .brand {
    font-family: Georgia, serif;
    font-size: 22px;
    color: var(--white);
    font-weight: bold;
    letter-spacing: 0.5px;
}
.navbar .brand span { color: var(--gold); }
.navbar nav {
    display: flex;
    align-items: center;
}
.navbar nav a {
    margin-left: 22px;
    color: rgba(255,255,255,0.85);
    font-size: 14.5px;
    font-weight: 500;
}
.navbar nav a:hover { color: var(--gold-light); text-decoration: none; }
.navbar .nav-badge {
    background: var(--gold);
    color: var(--forest);
    border-radius: 50%;
    font-size: 11px;
    padding: 1px 6px;
    margin-left: 4px;
}

/* ---------- Hamburger toggle (hidden on desktop) ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.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); }

/* ---------- Responsive navbar / mobile menu ---------- */
@media (max-width: 860px) {
    .navbar { padding: 14px 20px; position: relative; }
    .nav-toggle { display: flex; }
    .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--forest);
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        transition: max-height .3s ease, padding .3s ease;
        box-shadow: 0 12px 20px rgba(0,0,0,0.18);
    }
    .navbar nav.open {
        max-height: 600px;
        padding: 8px 20px 20px;
    }
    .navbar nav a {
        margin-left: 0;
        padding: 14px 2px;
        font-size: 15.5px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar nav a:last-child { border-bottom: none; }
}

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 32px 24px; }
.page-header { margin-bottom: 24px; }
.page-header p { color: #6d6a62; margin-top: 4px; }

.layout-with-sidebar { display: flex; align-items: flex-start; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 28px 24px; }
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 84px;
}
.sidebar a {
    display: block;
    padding: 11px 24px;
    color: var(--charcoal);
    font-size: 14.5px;
    border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
    background: var(--sand);
    border-left-color: var(--sage);
    text-decoration: none;
    color: var(--sage-dark);
    font-weight: 600;
}
.sidebar .sidebar-title {
    padding: 0 24px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9689;
}
.content { flex: 1; min-width: 0; width: 100%; }

/* ---------- Responsive layout adjustments ---------- */
@media (max-width: 900px) {
    .container { padding: 28px 20px; }
    .layout-with-sidebar { gap: 20px; padding: 24px 20px; }
}
@media (max-width: 600px) {
    .container { padding: 22px 16px; }
    .layout-with-sidebar { flex-direction: column; padding: 20px 16px; gap: 16px; }
    .sidebar {
        width: 100%;
        position: static;
        padding: 8px;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar .sidebar-title { display: none; }
    .sidebar a {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 16px;
        white-space: nowrap;
    }
    .sidebar a:hover, .sidebar a.active { border-left-color: transparent; border-bottom-color: var(--sage); }
}

/* ---------- Hero (split layout) ---------- */
.hero-split {
    background: var(--cream);
    padding: 60px 32px 90px;
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto;
}
.hero-left { flex: 1; min-width: 320px; }
.hero-eyebrow {
    display: inline-block;
    color: var(--forest);
    background: var(--sand);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-left h1 {
    font-size: 44px;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 18px;
}
.hero-left p { font-size: 16.5px; color: #6d6a62; max-width: 460px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--forest); color: var(--forest); }
.btn-outline-dark:hover { background: var(--forest); color: white; }

.hero-right { flex: 1; min-width: 300px; position: relative; text-align: center; }
.hero-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--sand) center/cover no-repeat;
    aspect-ratio: 4 / 5;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.hero-leaf {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 110px;
    height: 110px;
    opacity: 0.9;
    pointer-events: none;
}
.hero-badge-card {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--charcoal);
}
.hero-badge-card .stars { font-size: 15px; }
@media (max-width: 800px) {
    .hero-split { flex-direction: column; gap: 40px; padding: 36px 20px 60px; text-align: center; }
    .hero-left { min-width: 0; width: 100%; }
    .hero-left h1 { font-size: 30px; }
    .hero-left p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-right { min-width: 0; width: 100%; }
    .hero-badge-card { position: static; transform: none; margin: 22px auto 0; width: fit-content; }
}
@media (max-width: 420px) {
    .hero-left h1 { font-size: 26px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .hero-badge-card { flex-direction: column; text-align: center; gap: 4px; padding: 12px 18px; }
}

/* ---------- Category circles ---------- */
.section-eyebrow {
    text-align: center;
    color: var(--forest);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 12.5px;
    margin-bottom: 6px;
}
.section-title { text-align: center; font-size: 30px; margin-bottom: 40px; }
.category-row {
    display: flex;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}
.category-item { text-align: center; width: 110px; }
.category-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--sand) center/cover no-repeat;
    margin: 0 auto 12px;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}
.category-item span { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
@media (max-width: 600px) {
    .section-title { font-size: 24px; margin-bottom: 28px; }
    .category-row { gap: 20px; }
    .category-item { width: 84px; }
    .category-circle { width: 76px; height: 76px; }
}

/* ---------- Promo banner cards ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1140px; margin: 0 auto; }
.promo-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--sage-dark) center/cover no-repeat;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    overflow: hidden;
}
.promo-card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(22,48,31,0.82) 10%, rgba(22,48,31,0.15) 70%);
}
.promo-card-content { position: relative; z-index: 1; }
.promo-card h3 { color: white; font-size: 21px; margin-bottom: 12px; line-height: 1.3; }
@media (max-width: 700px) {
    .promo-grid { grid-template-columns: 1fr; gap: 18px; }
    .promo-card { min-height: 190px; }
}

/* ---------- Journey / stats section ---------- */
.journey-section {
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 24px;
}
.journey-image { flex: 1; min-width: 280px; }
.journey-image-frame {
    border-radius: var(--radius);
    background: var(--sand) center/cover no-repeat;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}
.journey-text { flex: 1; min-width: 280px; }
.journey-stats { display: flex; gap: 34px; margin-top: 26px; }
.journey-stats div strong { display: block; font-size: 26px; color: var(--forest); font-family: Georgia, serif; }
.journey-stats div span { font-size: 13px; color: #6d6a62; }
@media (max-width: 800px) {
    .journey-section { flex-direction: column; gap: 30px; padding: 20px 20px; }
    .journey-stats { flex-wrap: wrap; gap: 22px; }
}
@media (max-width: 420px) {
    .journey-stats { justify-content: center; text-align: center; }
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 20px; }
}

.service-card { border: 1px solid var(--border); border-radius: var(--radius); background: white; transition: box-shadow .15s; overflow: hidden; }
.service-card:hover { box-shadow: var(--shadow); }
.service-thumb { height: 160px; background: var(--sand) center/cover no-repeat; }
.service-card-body { padding: 20px; }
.service-card h3 { font-size: 18px; margin-bottom: 6px; }
.service-card .price { color: var(--forest); font-weight: bold; font-size: 17px; margin: 10px 0; }
.service-card .meta { color: #8b8778; font-size: 13px; margin-bottom: 12px; }

.stat-card { text-align: center; }
.stat-card .value { font-size: 30px; font-weight: bold; color: var(--sage-dark); font-family: Georgia, serif; }
.stat-card .label { color: #8b8778; font-size: 13.5px; margin-top: 4px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=time], input[type=number], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14.5px;
    font-family: inherit;
    background: var(--cream);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--sage);
    background: white;
}
.form-card { max-width: 460px; margin: 40px auto; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; min-width: 0; }
@media (max-width: 560px) {
    .form-card { margin: 24px auto; padding: 0 4px; }
    .form-row { flex-direction: column; gap: 0; }
    input[type=text], input[type=email], input[type=password], input[type=tel],
    input[type=date], input[type=time], input[type=number], select, textarea {
        font-size: 16px; /* prevents iOS auto-zoom on focus */
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 7px;
    background: var(--sage-dark);
    color: white;
    border: none;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: var(--sage); text-decoration: none; color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-outline { background: transparent; border: 1px solid var(--sage-dark); color: var(--sage-dark); }
.btn-outline:hover { background: var(--sage-dark); color: white; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #96433a; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); }
@media (max-width: 480px) {
    .btn { padding: 12px 20px; font-size: 15px; }
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--sand); font-weight: 600; color: var(--charcoal); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; }
tr:hover td { background: #faf9f6; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
    th, td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
}

/* ---------- Badges & alerts ---------- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #f8ecd4; color: #96731c; }
.badge-confirmed { background: #dbe6f5; color: #33629e; }
.badge-completed { background: #dfeee0; color: #3d7a3d; }
.badge-cancelled { background: #f6dedb; color: #a2453a; }

.alert { padding: 13px 18px; border-radius: 7px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #e4f2e4; color: #3d7a3d; border: 1px solid #c3e0c3; }
.alert-error { background: #fbe6e3; color: #a2453a; border: 1px solid #f0c7c1; }
.alert-info { background: #e6eef7; color: #33629e; border: 1px solid #c9dcf0; }

/* ---------- Misc ---------- */
.stars { color: var(--gold); letter-spacing: 2px; }
.footer { text-align: center; padding: 28px 20px; color: #9a9689; font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; }
.text-muted { color: #8b8778; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mb-0 { margin-bottom: 0; }
