/* Empress' Touch Hair & Beauty — public site styles
   Brand: dark navy background, gold/champagne accents, light sans-serif body. */

:root {
    --navy: #0b1220;
    --navy-panel: #141d33;
    --navy-panel-light: #1b2742;
    --gold: #c9a24b;
    --gold-light: #e6c988;
    --text: #f5f2ea;
    --text-muted: #c7cddb;
    --border: #2a3757;
    --radius: 10px;
    --max-width: 1180px;
    --focus-ring: 3px solid #e6c988;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

a { color: var(--gold-light); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--gold);
    color: #1a1a1a;
    padding: 0.75rem 1rem;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
    background: var(--navy-panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    border-radius: 50%;
    background: #000;
    object-fit: cover;
    width: 48px;
    height: 48px;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--gold-light);
}
.brand-name em {
    font-style: normal;
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    font-size: 0.95rem;
}

.site-nav a:not(.btn) {
    text-decoration: none;
    color: var(--text);
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.nav-book { margin-left: 0.25rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #1a1206;
}
.btn-gold:hover { filter: brightness(1.08); }

.btn-outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold-light);
}
.btn-outline:hover { background: rgba(201, 162, 75, 0.12); }

.btn-disabled,
.btn[aria-disabled="true"] {
    background: var(--navy-panel-light);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: not-allowed;
}

/* ---------- Hero ---------- */

.hero {
    padding: 3.5rem 0 3rem;
    text-align: center;
    background: radial-gradient(ellipse at top, var(--navy-panel) 0%, var(--navy) 70%);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--gold-light);
    margin: 0 0 0.5rem;
}

.hero .location-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ---------- Sections ---------- */

section { padding: 3rem 0; }

.section-title {
    color: var(--gold-light);
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 0.5rem;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.panel {
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.note-banner {
    background: rgba(201, 162, 75, 0.12);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
    text-align: center;
}

/* ---------- Services / Prices ---------- */

.service-category {
    margin-bottom: 2.25rem;
}

.service-category h2 {
    color: var(--gold-light);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.4rem;
    font-size: 1.35rem;
}

.category-note {
    font-style: italic;
    color: var(--text-muted);
    margin-top: -0.25rem;
    font-size: 0.95rem;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table tr {
    border-bottom: 1px solid var(--border);
}

.service-table td {
    padding: 0.75rem 0.25rem;
}

.service-table td:last-child {
    text-align: right;
    color: var(--gold-light);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Gallery ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-grid figure {
    margin: 0;
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* ---------- Booking page ---------- */

.booking-panel {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.booking-panel .btn { margin: 0.5rem; }

/* ---------- Contact ---------- */

.contact-list {
    list-style: none;
    padding: 0;
    max-width: 30rem;
    margin: 0 auto;
    text-align: center;
}
.contact-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-panel);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.25rem;
    margin-top: 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-heading { color: var(--gold-light); margin: 0 0 0.4rem; font-size: 1.2rem; }
.footer-subheading { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.6rem; }

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--gold-light); }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Booking modal (progressive enhancement, JS optional) ---------- */

.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.booking-modal-overlay[hidden] { display: none; }

.booking-modal {
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 60rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.booking-modal iframe {
    width: 100%;
    flex: 1;
    border: 0;
    min-height: 70vh;
    background: #fff;
}

.booking-modal-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

/* ---------- Flash messages (shared with admin) ---------- */

.admin-flash {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid;
}
.admin-flash--success { background: rgba(90, 179, 120, 0.12); border-color: #5ab378; color: #b7e6c6; }
.admin-flash--error { background: rgba(201, 75, 75, 0.12); border-color: #c94b4b; color: #f0b8b8; }

/* ---------- Shop ---------- */

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.shop-categories a {
    text-decoration: none;
    color: var(--text);
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}
.shop-categories a:hover,
.shop-categories a.active {
    color: #1a1206;
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.product-card {
    display: block;
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    padding-bottom: 1rem;
}
.product-card:hover { border-color: var(--gold); }

.product-card-image {
    aspect-ratio: 1 / 1;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-noimage { color: var(--text-muted); font-size: 0.85rem; }

.product-card-name { font-size: 1rem; margin: 0.75rem 1rem 0.25rem; }
.product-card-price { color: var(--gold-light); font-weight: 600; margin: 0 1rem; }
.product-card-stock { color: #f0b8b8; margin: 0.25rem 1rem 0; font-size: 0.85rem; }

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.product-detail-image {
    aspect-ratio: 1 / 1;
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-category { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.product-detail-price { font-size: 1.4rem; color: var(--gold-light); font-weight: 700; }

.add-to-cart-form { display: flex; align-items: end; gap: 0.75rem; flex-wrap: wrap; }
.add-to-cart-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.add-to-cart-form input[type="number"] {
    width: 5rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--navy);
    color: var(--text);
}

.cart-table td { vertical-align: middle; }
.cart-qty-form { display: flex; gap: 0.4rem; align-items: center; }
.cart-total { text-align: right; font-size: 1.2rem; margin-top: 1rem; }

@media (max-width: 640px) {
    .product-detail { grid-template-columns: 1fr; }
}

/* ---------- Booking: slots + hairstyle picker ---------- */

.hairstyle-picker-label,
.hairstyle-picker > .hairstyle-picker-label,
.field > .hairstyle-picker-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.slot-option {
    position: relative;
}
.slot-option input {
    position: absolute;
    opacity: 0;
}
.slot-option span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--navy);
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
}
.slot-option input:checked + span {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #1a1206;
    font-weight: 600;
}
.slot-option input:focus-visible + span {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.hairstyle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0;
}
.hairstyle-option {
    position: relative;
    cursor: pointer;
}
.hairstyle-option input {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    z-index: 1;
}
.hairstyle-option img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
}
.hairstyle-option input:checked ~ img,
.hairstyle-option input:checked ~ .hairstyle-option-none {
    border-color: var(--gold-light);
}
.hairstyle-option-none {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    border: 2px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* ---------- Owner profile ---------- */

.owner-profile {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 2rem;
    align-items: center;
}
.owner-profile-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
}
.owner-profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px dashed var(--border);
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}
@media (max-width: 640px) {
    .owner-profile { grid-template-columns: 1fr; text-align: center; }
    .owner-profile-photo { max-width: 220px; margin: 0 auto; }
    .owner-profile-bio .section-title { text-align: center !important; }
}

/* ---------- Maps embed ---------- */

.maps-embed {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.maps-embed iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

/* ---------- Reviews ---------- */

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.review-card {
    background: var(--navy-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.review-stars { color: var(--gold-light); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.review-text { color: var(--text); }
.review-author { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .site-nav { width: 100%; justify-content: flex-start; }
    .nav-book { margin-left: 0; }
    .hero { padding: 2.5rem 0 2rem; }
}
