/* ==========================================================
   Stiltz Tile & Granite — stiltztile.com
   Modern single-page design, 2026 refresh
   ========================================================== */

:root {
    --ink:        #1c1a17;   /* near-black warm charcoal */
    --ink-soft:   #3d3933;
    --paper:      #faf8f5;   /* warm off-white */
    --paper-alt:  #f0ece5;   /* warm stone */
    --gold:       #c9a227;   /* brand gold (from #f3c85b family) */
    --gold-deep:  #a5831a;
    --line:       #ddd6ca;
    --serif:      "Fraunces", Georgia, serif;
    --sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }

address { font-style: normal; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow, .narrow-p { max-width: 780px; }
.narrow-p { margin-bottom: 1.5rem; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 26, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand img { width: 140px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.site-nav a {
    color: #e9e4da;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--gold); text-decoration: none; }

.nav-phone {
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    color: var(--gold) !important;
}
.nav-phone:hover { background: var(--gold); color: var(--ink) !important; }

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

.hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0.65) 70%, rgba(20, 18, 15, 0.8) 100%);
}

.hero-content { position: relative; max-width: 850px; padding: 5rem 1.25rem; }

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #e8e3d8;
    max-width: 640px;
    margin: 0 auto 2rem;
}

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

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #dbb52f; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
    background: none;
    border: 1px solid #b3392f;
    color: #b3392f;
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.btn-danger:hover { background: #b3392f; color: #fff; }

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

.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-alt); }

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
}

.section p { margin-bottom: 1rem; }

.licenses { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.5rem; }

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

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.gallery-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(28, 26, 23, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover { box-shadow: 0 8px 24px rgba(28, 26, 23, 0.14); transform: translateY(-3px); }

.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.gallery-item figcaption { padding: 0.85rem 1rem 1.1rem; font-size: 0.92rem; color: var(--ink-soft); }

.tag {
    display: inline-block;
    background: var(--paper-alt);
    color: var(--gold-deep);
    border-radius: 999px;
    padding: 0.1rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.5rem;
}

/* ---------------- Lightbox ---------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 13, 11, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}
.lightbox[hidden] { display: none; }

.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; }
.lightbox-caption { color: #e8e3d8; margin-top: 1rem; font-size: 0.95rem; }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.4rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 2px 10px rgba(28, 26, 23, 0.05);
}

.service-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.service-card h3::before { content: "◆ "; color: var(--gold); font-size: 0.75rem; vertical-align: 2px; }

.service-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------------- Service area ---------------- */

.towns {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem 1.2rem;
    margin-top: 1.5rem;
}

.towns li {
    padding: 0.45rem 0.9rem;
    background: var(--paper-alt);
    border-radius: 6px;
    font-size: 0.95rem;
}
.towns li::before { content: "◆ "; color: var(--gold); font-size: 0.7rem; }

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 1.4rem 0 1.8rem; }
.contact-list li { margin-bottom: 1rem; }

.contact-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(28, 26, 23, 0.12);
}

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

.site-footer {
    background: var(--ink);
    color: #cfc8bb;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    gap: 1rem;
}

.site-footer a { color: var(--gold); }
.footer-licenses, .footer-meta { font-size: 0.8rem; color: #a29a8b; }

/* ---------------- Admin ---------------- */

.admin-form { display: grid; gap: 0.5rem; max-width: 480px; margin: 1.5rem 0 2.5rem; }

.admin-form label { font-weight: 600; font-size: 0.9rem; margin-top: 0.6rem; }

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form select {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--sans);
    background: #fff;
}

.admin-form button { justify-self: start; margin-top: 1rem; }

.admin-gallery-heading { margin-top: 1.5rem; }

.flash {
    background: #fdf6dd;
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.5rem;
}
