/* ============================================================
   Chris Wolfsberg — Gem Cutter  |  Stylesheet
   ============================================================ */

:root {
    --ink:        #1c1c1e;
    --ink-soft:   #4a4a4f;
    --gold:       #b8892b;
    --gold-dark:  #96701f;
    --cream:      #faf7f2;
    --line:       #e5ddd0;
    --white:      #ffffff;
    --shadow:     0 8px 30px rgba(0, 0, 0, .08);
    --radius:     6px;
    --max:        1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sticky footer: main grows to fill, footer stays pinned to the viewport bottom */
main { flex: 1 0 auto; display: flex; flex-direction: column; }

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

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

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

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

.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    padding: .8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .82rem;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.brand-tagline { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--gold-dark); border-color: var(--gold); }
.header-phone { font-weight: 500; color: var(--gold-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Hero / slider ---------- */
.hero { position: relative; background: #111; overflow: hidden; }
.slider { position: relative; height: clamp(360px, 60vh, 620px); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.slide figcaption {
    position: absolute; bottom: 1rem; left: 1.25rem;
    color: #fff; font-size: .85rem; letter-spacing: .05em;
    background: rgba(0, 0, 0, .35); padding: .3rem .7rem; border-radius: 4px;
}
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, .35); color: #fff; border: 0;
    width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; border-radius: 50%;
    transition: background .2s;
}
.slider-btn:hover { background: var(--gold); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.hero-overlay {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; pointer-events: none;
}
.hero-overlay h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); margin-bottom: 1.4rem; }
.hero-overlay h1 span { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); margin-bottom: 1.4rem; }
.hero-overlay .btn { pointer-events: auto; }

/* ---------- Intro ---------- */
.intro { max-width: 820px; text-align: center; }
.intro p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card h3 { margin: 1rem 0 .25rem; }
.card p { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Page head ---------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 3rem 0; text-align: center; }
.page-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { padding: .8rem 1rem; display: flex; flex-direction: column; }
.gallery-item figcaption strong { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }
.gallery-item figcaption span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-text p { color: var(--ink-soft); }
.about-text h2 { margin-top: 1.8rem; }

/* ---------- Contact ---------- */
.contact {
    flex: 1 0 auto;                 /* fill the space between header and footer */
    display: flex;
    flex-direction: column;
    justify-content: center;        /* vertically centre the details */
    text-align: center;
    padding: 2rem 1.25rem;
}
.contact-details { max-width: 640px; margin: 0 auto; }
.contact-details h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.75rem; }
.contact-details p { color: var(--ink-soft); font-size: 1.2rem; margin: 1.1rem 0; }
.contact-details a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcac2; margin-top: 2rem; flex-shrink: 0; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 1.25rem; }
.site-footer h3 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 1.2rem; font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; gap: 1rem; align-items: flex-start;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 1.25rem; box-shadow: var(--shadow);
        transform: translateY(-140%); transition: transform .3s; z-index: -1;
    }
    .site-nav.open { transform: translateY(0); }
    .site-nav ul { flex-direction: column; gap: .9rem; width: 100%; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }

    /* A touch more breathing room on the sides for phones */
    .container { padding: 0 1.5rem; }
    .contact { padding: 2rem 1.5rem; }
    .footer-inner { padding: 3rem 1.5rem; }

    /* Stack CTA buttons full-width so they line up with the text block */
    .cta-row { flex-direction: column; align-items: stretch; }
    .cta-row .btn { width: 100%; text-align: center; }
}
@media (max-width: 460px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 0 1.75rem; }
    .contact { padding: 2rem 1.75rem; }
    .footer-inner { padding: 2.5rem 1.75rem; }
}
