@media (max-width: 767px) {
    .btn-presentation {
        display: none !important;
    }
}
/* ============================================================
   FIRE AGATE GALLERIA — Design System
   Dark luxury: black / gold
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --gold:        #c9a84c;
    --gold-light:  #e4c87a;
    --gold-dark:   #8b6914;
    --gold-glow:   rgba(201, 168, 76, 0.18);
    --bg:          #090909;
    --bg-card:     #111111;
    --bg-card-2:   #161616;
    --border:      rgba(201, 168, 76, 0.15);
    --text:        #e8e2d6;
    --text-muted:  #888880;
    --text-light:  #f5f0e8;
    --white:       #ffffff;
    --ff-serif:    'Cormorant Garamond', Georgia, serif;
    --ff-sans:     'Inter', system-ui, sans-serif;
    --radius:      4px;
    --radius-lg:   8px;
    --transition:  0.3s ease;
    --max-width:   1340px;
    --header-h:    72px;
}

/* ── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-sans);
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--ff-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.overline {
    font-family: var(--ff-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    max-width: 680px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.gold-line {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 1.2rem auto 0;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--transition), box-shadow var(--transition);
    background: rgba(9, 9, 9, 0.0);
}

.site-header.scrolled {
    background: rgba(9, 9, 9, 0.96);
    box-shadow: 0 1px 0 var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95);
    transition: filter var(--transition);
}
.site-logo:hover img { filter: brightness(1.1); }

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 3px;
    transition: color var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--gold-light);
}

.main-nav a[aria-current="page"]::after,
.main-nav a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.35);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9,9,9,0.2) 0%,
        rgba(9,9,9,0.0) 40%,
        rgba(9,9,9,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: var(--header-h);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-text { padding: 2rem 0; }

.hero-text .overline { color: var(--gold); }

.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-family: var(--ff-serif);
    font-weight: 300;
    color: var(--white);
    line-height: 1.0;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-family: var(--ff-serif);
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 0.95rem;
    color: rgba(232, 226, 214, 0.75);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-location {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    background: transparent;
}

/* Corner decorations via DOM element — reliable above GPU-composited img layers */
.slideshow-corners {
    position: absolute;
    inset: -18px;
    z-index: 20;
    pointer-events: none;
}
.slideshow-corners::before,
.slideshow-corners::after {
    content: '';
    position: absolute;
    width: 22%;
    height: 22%;
    pointer-events: none;
}
.slideshow-corners::before {
    top: 2px;
    left: 2px;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}
.slideshow-corners::after {
    bottom: 2px;
    right: 2px;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.hero-slideshow::before,
.hero-slideshow::after { display: none; }

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border: none;
    box-shadow: none;
    outline: none;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero-slideshow img.active {
    opacity: 1;
}

.btn {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    margin-right: 1rem;
}
.btn:hover {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 0 30px var(--gold-glow);
}
.btn-fill {
    background: var(--gold);
    color: var(--bg);
}
.btn-fill:hover {
    background: var(--gold-light);
    color: var(--bg);
    box-shadow: 0 0 30px var(--gold-glow);
}
.btn-presentation {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-presentation:hover {
    background: #7a5a10;
    border-color: #7a5a10;
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(139,105,20,0.4);
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
    padding-top: calc(var(--header-h) + 5rem);
    padding-bottom: 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(rgba(4,3,2,.68), rgba(4,3,2,.68)),
                url('/media/1_site_images/background.jpg') center / cover no-repeat;
}

.page-hero .overline { margin-bottom: 0.5rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ── Navigation Cards (Home) ────────────────────────────────── */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5px;
    background: var(--border);
}

.nav-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    display: block;
    position: relative;
    overflow: hidden;
    transition: background var(--transition);
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-card:hover { background: var(--bg-card-2); }
.nav-card:hover::before { opacity: 1; }

.nav-card p.nav-card-num {
    font-family: var(--ff-serif);
    font-size: 3rem;
    color: rgba(201, 168, 76, 0.35);
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}
.nav-card:hover p.nav-card-num { color: var(--gold); }

.nav-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.nav-card-arrow {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    transition: transform var(--transition), color var(--transition);
}
.nav-card:hover .nav-card-arrow {
    transform: translateX(6px);
    color: var(--gold-light);
}

/* ── Featured Slider (Home) ──────────────────────────────────── */
.section--no-bottom-pad { padding-bottom: 0; }

.section--has-scroll {
    position: relative;
    padding-bottom: 5rem;
    overflow: hidden;
}

.section--with-bg > .hero-bg,
.section--with-bg > .hero-overlay {
    position: absolute;
    inset: 0;
}

.section--with-bg > .hero-bg {
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: 0;
}

.section--with-bg > .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(9,9,9,0.2) 0%,
        rgba(9,9,9,0.0) 40%,
        rgba(9,9,9,0.7) 100%
    );
    z-index: 0;
}

.section--with-bg > .container,
.section--with-bg > .featured-slider-wrap,
.section--with-bg > .scroll-down {
    position: relative;
    z-index: 1;
}

.section--has-scroll .scroll-down {
    bottom: 1rem;
}

.featured-slider-wrap {
    position: relative;
    width: 100%;
    height: var(--fslider-h, clamp(220px, 30vw, 400px));
    background: transparent;
    overflow: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.featured-slider {
    display: flex;
    height: 100%;
    gap: 0;
    will-change: transform;
}

.featured-slide {
    flex: 0 0 calc(100% / 5);
    width: calc(100% / 5);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* klisza overlay — opacity controls visibility independently from the image */
.featured-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../media/1_site_images/klisza_klatka_1.png') center / 100% 100% no-repeat;
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}
.featured-slide:nth-child(3n+2)::before { background-image: url('../../media/1_site_images/klisza_klatka_2.png'); }
.featured-slide:nth-child(3n+3)::before { background-image: url('../../media/1_site_images/klisza_klatka_3.png'); }
.featured-slide::after { display: none; }

.featured-slide img {
    position: absolute;
    top: 17%;
    left: 9%;
    right: 9%;
    bottom: 26%;
    width: 82%;
    height: 57%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    display: block;
    z-index: 1;
}

.featured-slide-caption {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    height: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    pointer-events: none;
}

.fslider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 5;
}

.fslider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.3);
    cursor: pointer;
    transition: background var(--transition);
}

.fslider-dot.active { background: var(--gold); }

/* ── About Section (Home) ────────────────────────────────────── */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 2rem 0;
}

.about-image {
    position: relative;
    overflow: visible;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, rgba(255,255,255,0.04) 50%, transparent 80%);
    border-radius: var(--radius-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22%;
    height: 22%;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22%;
    height: 22%;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.about-text .overline { margin-bottom: 1.2rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* ── Gallery Grid ────────────────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    background: transparent;
    padding: 1rem;
}

.gallery-item {
    background: transparent;
    overflow: visible;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    z-index: 0;
}

.gallery-item:hover {
    z-index: 1;
}

.gallery-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Gold corner frame — bottom-right */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 35%;
    height: 35%;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0.55;
    z-index: 2;
}

/* Gold corner frame — top-left */
.gallery-item::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 35%;
    height: 35%;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0.55;
    z-index: 2;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    width: 52%;
    height: 52%;
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.18);
    filter: brightness(0.82);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-caption {
    font-size: 0.75rem;
    font-family: var(--ff-sans);
    letter-spacing: 0.06em;
    color: var(--gold-light);
    line-height: 1.4;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: lb-fade-in 0.2s ease;
}

.lightbox[hidden] { display: none; }

@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 1000px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-caption {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--gold-light);
    letter-spacing: 0.1em;
    text-align: center;
}

.lightbox-counter {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: none;
    border: 1px solid var(--border);
    color: var(--gold);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    font-size: 1.4rem;
    line-height: 1;
    z-index: 2010;
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 1.6rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 1.2rem;
    font-size: 2rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

/* ── Contact Page ────────────────────────────────────────────── */
.section-map { padding-top: 0; }
.map-wrap {
    position: relative;
    margin-top: 2rem;
    overflow: visible;
    width: 100%;
    padding: 18px;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, rgba(255,255,255,0.04) 50%, transparent 80%);  
}
.map-wrap::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 24%;
    height: 24%;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}
.map-wrap::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 24%;
    height: 24%;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}
.map-clip {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.map-clip iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: brightness(0.65) saturate(0.8);
}

.contact-photo-wrap {
    position: relative;
    margin-top: 2rem;
    overflow: visible;
    width: 100%;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, rgba(255,255,255,0.04) 50%, transparent 80%);
}
.contact-photo-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.contact-photo-wrap::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22%;
    height: 22%;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}
.contact-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22%;
    height: 22%;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    padding: 5rem 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-text { font-size: 0.95rem; color: var(--text-muted); }
.contact-detail-text a { color: var(--text-muted); }
.contact-detail-text a:hover { color: var(--gold); }
.contact-detail-label {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 0.2rem;
}

/* ── Contact Form ────────────────────────────────────────────── */
.contact-form h3 { margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.9rem 1.1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-error {
    background: rgba(180, 60, 60, 0.15);
    border: 1px solid rgba(180, 60, 60, 0.4);
    color: #e07070;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-success {
    background: rgba(76, 160, 100, 0.12);
    border: 1px solid rgba(76, 160, 100, 0.35);
    color: #7ed4a0;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 1.25rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo img {
    height: 36px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(0.3);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: flex-start;
}

.footer-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}

/* ── Admin link ─────────────────────────────────────────────── */
.admin-link {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    opacity: 0.65;
    z-index: 100;
    text-transform: none;
}
.admin-link a {
    color: inherit;
    text-decoration: none;
}
.admin-link a:hover { color: inherit; }

/* ── Back to top ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, color 0.3s ease;
    z-index: 100;
    border-radius: var(--radius);
    font-size: 1.1rem;
    line-height: 1;
}
.back-to-top.visible {
    opacity: 0.7;
    visibility: visible;
}
.back-to-top:hover {
    opacity: 1;
    background: var(--gold);
    color: var(--bg);
}

/* ── Gallery count badge ─────────────────────────────────────── */
.gallery-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ── Gallery Tabs ────────────────────────────────────────────── */
.gallery-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.gallery-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--ff-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
    margin-bottom: -1px;
    text-align: center;
}

.gallery-tab:hover {
    color: var(--gold-light);
}

.gallery-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.gallery-panel {
    display: none;
}

.gallery-panel.active {
    display: block;
}

/* ── Scroll indicator ───────────────────────────────────────── */
.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2.5s infinite;
    cursor: pointer;
    z-index: 2;
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1044px) {
    .nav-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-image { justify-content: center; }
    .hero-image img { max-height: 45vh; }
    .hero-slideshow { aspect-ratio: 4 / 3; height: auto; }
    .about-section { grid-template-columns: 1fr; gap: 3rem; }
    .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
    .footer-inner  { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .footer-copy   { white-space: normal; align-self: flex-end; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(380px, 90vw);
        height: 100vh;
        background: rgba(9,9,9,0.98);
        border-left: 1px solid var(--border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .main-nav.open { right: 0; }

    .main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
        color: var(--text);
    }

    /* narrower + semi-transparent on phones */
    @media (max-width: 480px) {
        .main-nav {
            width: min(220px, 72vw);
            background: rgba(9,9,9,0.82);
        }
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
        padding-bottom: 1rem;
    }

    .nav-cards {
        grid-template-columns: 1fr 1fr;
    }

    .hero-slideshow { aspect-ratio: 4 / 3; height: auto; }

    .hero-title { font-size: clamp(2.4rem, 9vw, 4rem); }

    .hero-content {
        padding-top: calc(var(--header-h) + 1.5rem);
        gap: 1.5rem;
    }

    .hero-text { padding: 1rem 0; }

    .btn { padding: 0.75rem 1.6rem; }

    .page-hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2.5rem; }

    .gallery-tabs { flex-wrap: wrap; }
    .gallery-tab  { padding: 0.7rem 1.2rem; font-size: 0.72rem; }

    .about-image img { aspect-ratio: 4 / 3; height: auto; }  /* remove max-height conflict */
    .featured-slide { flex-basis: calc(100% / 3); width: calc(100% / 3); }  /* 3 visible on tablet */

    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }

    .lightbox-prev,
    .lightbox-next { padding: 0.7rem 0.9rem; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .nav-cards  { grid-template-columns: 1fr; }
    .gallery    { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 0.5rem 0.5rem 1rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-desc  { font-size: 0.88rem; }
    .hero-slideshow { aspect-ratio: 4 / 3; height: auto; max-width: 100%; }
    .about-image { max-width: 100%; }
    .contact-photo-wrap { max-width: 100%; }
    .contact-grid { padding: 2.5rem 0; }
    .section { padding: 3.5rem 0; }
    .lightbox-content img { max-height: 70vh; }
    .lightbox-close { top: 0.8rem; right: 0.8rem; }
    .nav-card { padding: 2rem 1.5rem; }
    .nav-card p.nav-card-num { font-size: 4rem; margin-bottom: 1rem; }
    .gallery-tab { padding: 0.6rem 0.9rem; font-size: 0.67rem; }
    .featured-slide { flex-basis: calc(100% / 2); width: calc(100% / 2); }  /* 2 visible on mobile */
    .btn { display: block; width: 100%; text-align: center; margin-right: 0; margin-bottom: 0.8rem; }
    .btn + .btn { margin-left: 0; }
    .hero-text .btn { display: inline-block; width: auto; }
    .scroll-down { display: none; }
}

/* ── Mobile landscape: clamp featured-slider height to viewport ── */
@media (orientation: landscape) and (max-height: 499px) {
    .featured-slider-wrap {
        height: var(--fslider-h, clamp(160px, 45vh, 260px));
    }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .lightbox, .admin-link, .scroll-down { display: none; }
    body { background: #fff; color: #000; }
}
