/* ============================================================
   ArtiSpark — home page styles
   Design language: light studio look — Montserrat (hero/nav),
   Playfair Display (headings), Raleway (body); gold + charcoal buttons.
   ============================================================ */

:root {
    --gold: #dea227;
    --gold-dark: #c48f1c;
    --charcoal: #484848;
    --ink: #2a2a2a;
    --heading: #42514c;
    --quote: #7b8c89;
    --muted: #8e8e8e;
    --bg: #f9f9f9;
    --white: #ffffff;
    --line: #e6e6e6;

    --font-hero: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
    --font-quote: "Gentium Basic", Georgia, serif;

    --container: 1100px;
    --section-y: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(var(--container), 100% - 48px); margin: 0 auto; }
.section-padding { padding: var(--section-y) 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: var(--charcoal);
    border: 0;
    padding: 14px 30px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { background: #2f2f2f; transform: translateY(-1px); }
.btn-primary { background: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-secondary { background: var(--charcoal); }

/* ---------- Section headers ---------- */
.section-header { text-align: center; max-width: 880px; margin: 0 auto 48px; }
.section-intro {
    font-family: var(--font-quote);
    font-size: 13px;
    font-weight: 700;
    line-height: 34px;
    color: #818181;
    margin: 0 0 10px;
}
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    color: #515151;
    line-height: 1.3;
    margin: 0 0 26px;
}
.title-underline {
    width: 22px;
    height: 6px;
    margin: 0 auto 22px;
    border-top: 1px solid rgba(38, 38, 38, .6);
    border-bottom: 1px solid rgba(38, 38, 38, .6);
}
.section-quote {
    font-family: var(--font-quote);
    font-size: 16px;
    color: #626262;
    line-height: 34px;
    margin: 0 auto;
}
.section-subtitle { font-family: var(--font-quote); font-size: 16px; line-height: 34px; color: #626262; margin: 0; }

/* ---------- Navigation ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
}
.logo-link { display: block; }
.logo { height: 88px; width: auto; }
.nav-menu {
    margin-left: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
}
.nav-link {
    font-family: var(--font-hero);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.mobile-menu-toggle {
    order: 3;
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 34px;
    height: 3px;
    background: var(--gold);
    margin: 7px 0;
    transition: transform .25s, opacity .25s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: #333 center / cover no-repeat;
    color: var(--white);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 100%);
}
.hero .container { position: relative; }
.hero-content { margin-left: auto; max-width: 720px; text-align: right; }
.hero-title {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: clamp(40px, 6.5vw, 76px);
    line-height: 1.05;
    margin: 0 0 26px;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 0 34px auto;
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-actions .btn { min-width: 200px; text-align: center; }

/* ---------- Services (tiles) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.service-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ddd;
    cursor: pointer;
}
.service-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.service-tile:hover img { transform: scale(1.06); }
.service-label {
    position: absolute;
    left: 50%; bottom: 28px;
    transform: translateX(-50%);
    white-space: nowrap;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .3s;
}
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(66, 81, 76, .92);
    color: var(--white);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    overflow: auto;
}
.service-tile:hover .service-overlay,
.service-tile.is-open .service-overlay { opacity: 1; }
.service-tile:hover .service-label,
.service-tile.is-open .service-label { opacity: 0; }
.service-overlay h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 12px;
    letter-spacing: .5px;
}
.service-overlay p { font-size: 13px; line-height: 1.65; margin: 0; }

/* ---------- About (quote block) ---------- */
.about { background: var(--white); }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text p {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 16px;
    color: var(--quote);
    line-height: 1.85;
    margin: 0 0 18px;
}

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 820px;
    margin: 0 auto 48px;
}
.team-member { text-align: center; }
.team-member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 22px; }
.team-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 21px;
    color: #515151;
    margin: 0 0 10px;
}
.team-credentials {
    font-family: var(--font-quote);
    font-size: 16px;
    color: #626262;
    line-height: 1.7;
    margin: 0;
}
.section-action { text-align: center; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--bg);
    padding: 40px 34px 30px;
    text-align: center;
    position: relative;
}
.testimonial-quote-mark {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1;
    color: var(--gold);
    height: 34px;
}
.testimonial-text {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 15px;
    color: var(--quote);
    line-height: 1.8;
    margin: 0 0 20px;
}
.testimonial-name {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 17px;
    color: var(--heading);
}

/* ---------- Gallery (home preview + gallery page) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 18px;
    margin-bottom: 48px;
}
.gallery-item { position: relative; overflow: hidden; background: #ddd; }
.gallery-item-large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: var(--white);
    padding: 36px 16px 14px;
    font-size: 13px;
    opacity: 0;
    transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { margin: 0; }
.gallery-page .gallery-grid { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.contact-item { margin-bottom: 24px; }
.contact-label {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading);
    margin: 0 0 4px;
}
.contact-text { margin: 0; color: var(--ink); }
.contact-text a { text-decoration: none; }
.contact-text a:hover { color: var(--gold); }
.contact-form .form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 0;
}
.form-input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.5em; }
.form-status.is-success { color: #3c7a52; }
.form-status.is-error { color: #b8524a; }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 28px; text-align: center; }
.footer-logo-img { height: 64px; width: auto; margin: 0 auto 10px; }
.footer-tagline { font-family: var(--font-heading); color: var(--heading); margin: 0 0 26px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 28px; }
.footer-links a {
    font-family: var(--font-hero);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    :root { --section-y: 64px; }
    .nav-wrapper { height: 88px; }
    .logo { height: 70px; }
    .mobile-menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 10px 24px 16px;
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { padding: 10px 0; }
    .about-content, .contact-wrapper { grid-template-columns: 1fr; gap: 36px; }
    .hero { min-height: 560px; }
    .gallery-item-large { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 540px) {
    .hero-actions .btn { min-width: 0; width: 100%; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
}

/* ---------- Contact map ---------- */
.contact-map {
    width: 100%;
    height: 420px;
    margin: 0 auto 56px;
    background: #e9e9e9;
    z-index: 0;
}
.contact-map .leaflet-popup-content { font-family: var(--font-body); font-size: 13px; }
@media (max-width: 900px) { .contact-map { height: 300px; margin-bottom: 40px; } }

/* ---------- Hero: dark text variant (for light background photos) ---------- */
.hero--dark { color: var(--heading); }
.hero--dark::before { background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 100%); }
.hero--dark .hero-title, .hero--dark .hero-subtitle { text-shadow: none; }
.hero--dark .hero-subtitle { color: var(--ink); }
