/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #f6efe4;                   /* warm cream, the page tint and the bands */
    --cream-dark: #ecdfcc;
    --white: #ffffff;
    --gold: #b8862b;
    --gold-light: #dcb766;
    --gold-dark: #8a5f1c;
    --brown: #4a3222;                   /* dark brown from the card */
    --text: #4b3d31;
    --text-light: #8a7a6b;
    --border: rgba(120, 95, 60, 0.18);
    --sheet-width: 1140px;
    --header-h-top: 120px;              /* header height at the top of the page */
    --header-h-scrolled: 72px;          /* the same once the page is scrolled: the header shrinks to this */
    --header-h: var(--header-h-top);
    --header-anim: 0.35s ease;
    --head-ratio: 0.6955;               /* width / height of head.png */
}

/* header.js adds this class once the page is scrolled: the header and the logo shrink */
html.scrolled { --header-h: var(--header-h-scrolled); }

html { scroll-behavior: smooth; }

/* Page: a faint marble behind a centred white sheet.
   The marble is a pre-rendered JPEG on a fixed element (not background-attachment: fixed),
   so scrolling only moves the content layer and never repaints the background. */
body {
    font-family: 'Raleway', 'Segoe UI', sans-serif;
    font-weight: 300;
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cream);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(246, 239, 228, 0.55), rgba(246, 239, 228, 0.55)),
        var(--cream) url('/images/marble.jpg') center / cover no-repeat;
    pointer-events: none;
}

a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; }

/* ===== Header: head at the very left edge, wordmark, menu on the right ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-h);
    transition: height var(--header-anim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw 0 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.wordmark {
    display: flex;
    align-items: flex-end;
    height: 100%;
    line-height: 1;
}

/* The profile cut from the business card, transparent PNG, flush with the left edge of the window */
.head {
    display: block;
    height: var(--header-h);
    width: calc(var(--header-h) * var(--head-ratio));
    object-fit: contain;
    object-position: left bottom;
    transition: height var(--header-anim), width var(--header-anim);
}

.wordmark-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-left: 0.6rem;
    padding-bottom: calc(var(--header-h) * 0.28);
    font-size: calc(var(--header-h) * 0.1333);    /* 16px at 120px header; shrinks together with the header */
    transition: font-size var(--header-anim), padding var(--header-anim);
}

.wordmark-initial,
.wordmark-name {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 45%, var(--gold) 70%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wordmark-initial {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 3em;
}

.wordmark-name {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4em;
}

.site-nav {
    display: flex;
    gap: 1.8rem;
}

.site-nav a {
    color: var(--brown);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

/* ===== Sheet: the white page the content sits on ===== */
.sheet {
    flex: 1;
    width: 100%;
    max-width: var(--sheet-width);
    margin: 2.5rem auto 3rem;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(74, 50, 34, 0.12);
}

.section {
    padding: 4.5rem 6%;
    scroll-margin-top: calc(var(--header-h-scrolled) + 0.5rem);
}

.section.band { background: var(--cream); }

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--brown);
    margin-bottom: 1.25rem;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--brown);
    margin-bottom: 2.25rem;
    text-align: center;
}

h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    margin: 0.9rem auto 0;
    background: var(--gold);
}

h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--brown);
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.lead { font-size: 1.08rem; max-width: 30rem; margin-bottom: 2rem; }

.note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Arrow link ("Storitve →") like the reference */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown);
}

.arrow-link .arrow {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    transition: background 0.2s, color 0.2s;
}

.arrow-link:hover .arrow { background: var(--gold); color: #fff; }

.button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--brown);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.button:hover { background: var(--gold-dark); color: #fff; }

/* ===== Hero: text left, photo right on a cream block ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hero-photo {
    position: relative;
    padding: 2rem 0 0 2rem;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0 2rem 2rem 0;
    background: var(--cream);
}

.hero-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(74, 50, 34, 0.15);
}

/* ===== Info cards: hours, social, phone ===== */
.info { padding-top: 1rem; }

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem 1.5rem 1.4rem;
    box-shadow: 0 10px 30px rgba(74, 50, 34, 0.08);
}

.info-card h3 {
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gold-light);
    display: inline-block;
}

.info-card p { font-size: 0.92rem; }
.info-card p + p { margin-top: 0.3rem; }

.info-card svg {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 34px;
    height: 34px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-address {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

/* ===== About: text + two salon photos ===== */
.about {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p { font-size: 1.02rem; }
.about-text p + p { margin-top: 1rem; }

.about-photos {
    display: grid;
    gap: 1.25rem;
}

.frame {
    display: block;
    background: var(--white);
    padding: 8px;
    box-shadow: 0 12px 30px rgba(74, 50, 34, 0.14);
}

.frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photos .frame img { aspect-ratio: 4 / 3; }

/* ===== Services: four cards ===== */
.services {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.services li {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.75rem 1.75rem 1.6rem;
    box-shadow: 0 10px 30px rgba(74, 50, 34, 0.06);
}

.services h3 { margin-bottom: 0.6rem; }

.services h3::before {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 0.8rem;
}

.services p { font-size: 0.95rem; }

/* ===== Gallery: framed photos ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 960px;
    margin: 0 auto;
}

.gallery a { overflow: hidden; }

.gallery .frame img {
    aspect-ratio: 3 / 4;
    transition: transform 0.4s;
}

.gallery a:hover img { transform: scale(1.03); }

/* ===== FAQ ===== */
.faq { max-width: 44rem; margin: 0 auto; }

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 0;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0 0.7rem 1.6rem;
    position: relative;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.08rem;
    color: var(--brown);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
}

.faq details[open] summary::before { content: "−"; }

.faq p { padding: 0 0 0.9rem 1.6rem; font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(74, 50, 34, 0.08);
}

.contact-card p + p { margin-top: 1rem; }
.contact-card strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 1.2rem; color: var(--brown); }

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 1px solid var(--border);
    filter: saturate(0.75) sepia(0.1);
}

/* ===== Call to action + footer ===== */
.cta {
    text-align: center;
    padding: 3.5rem 6%;
}

.cta h2 { margin-bottom: 1.5rem; }
.cta h2::after { display: none; }

.site-footer {
    text-align: center;
    padding: 0 1rem 2rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--text-light);
}

/* ===== Lightbox ===== */
.hidden { display: none !important; }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(30, 22, 15, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.lightbox-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 501;
}

.lightbox-close:hover { color: var(--gold-light); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.9rem 1rem;
    z-index: 501;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(184, 134, 43, 0.6); }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #cfc4b4;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ===== Tablet ===== */
@media (max-width: 1000px) {
    .info-cards { grid-template-columns: 1fr; max-width: 420px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    :root { --header-h-top: 72px; --header-h-scrolled: 60px; }

    .site-header {
        flex-wrap: wrap;
        height: auto;
        padding: 0 0.75rem 0.5rem 0;
    }

    .wordmark { height: var(--header-h); }
    .wordmark-text { padding-bottom: calc(var(--header-h) * 0.22); font-size: calc(var(--header-h) * 0.15); }

    .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.1rem 1rem;
        padding: 0.2rem 0.75rem 0;
    }

    .site-nav a { font-size: 0.72rem; letter-spacing: 0.14em; padding: 0.2rem 0; }

    .sheet { margin: 0; box-shadow: none; }
    .section { padding: 3rem 1.25rem; scroll-margin-top: 7.5rem; }

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; margin-bottom: 1.75rem; }

    .hero, .about, .contact-grid, .services { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding-top: 2.5rem; }
    .hero-photo { padding: 1.25rem 0 0 1.25rem; }
    .hero-photo::before { inset: 0 1.25rem 1.25rem 0; }
    .hero-photo img { aspect-ratio: 4 / 4.2; }

    .about-photos { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
    .gallery { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-header, .head, .wordmark-text, .gallery img, .button, .site-nav a, .arrow-link .arrow { transition: none; }
}
