/*
Theme Name: Afsoon Multimedia
Theme URI: https://afsoonmultimedia.com
Author: Orivion Tech & Evulation
Author URI: https://oriviontech.com
Description: Multimedia theme by Orivion Tech & Evulation — Dark theme default, Light theme optional. Elementor compatible with self-hosted fonts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afsoon-multimedia
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ DARK THEME (DEFAULT) ============ */
:root,
[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: #121210;
    --bg-soft: #1A1A18;
    --text-primary: #F5F2E8;
    --text-secondary: #EDE9DE;
    --text-muted: rgba(245, 243, 238, 0.62);
    --border-light: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.32);
    --accent: #F5F2E8;
    --accent-hover: #FFFFFF;
    --hero-artwork-bg: #EFEFEC;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-overlay: rgba(255, 255, 255, 0.03);
    --header-bg: rgba(10, 10, 10, 0.85);
}

/* ============ LIGHT THEME ============ */
[data-theme="light"] {
    --bg-primary: #FAFAF9;
    --bg-secondary: #FFFFFF;
    --bg-soft: #F0EFEB;
    --text-primary: #0A0A0A;
    --text-secondary: #1A1A18;
    --text-muted: rgba(10, 10, 10, 0.55);
    --border-light: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.2);
    --accent: #0A0A0A;
    --accent-hover: #2A2A28;
    --hero-artwork-bg: #0A0A0A;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --hover-overlay: rgba(0, 0, 0, 0.02);
    --header-bg: rgba(250, 250, 249, 0.85);
}

/* ============ SELF-HOSTED FONTS ============ */
@font-face {
    font-family: 'Fraunces';
    src: url('assets/fonts/fraunces-v38-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('assets/fonts/fraunces-v38-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('assets/fonts/fraunces-v38-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('assets/fonts/fraunces-v38-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease;
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============ LOGO ============ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.logo-img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

/* Circle/Square are opt-in only (Customizer → Site Identity → Header Logo Shape).
   By default the logo keeps its own natural size/ratio — no crop, no shape. */
.logo-img.logo-shape-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.logo-img.logo-shape-square {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

/* ============ HEADER ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 32px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.45s ease, padding 0.35s ease, border-color 0.45s ease;
}

/* Sticky header disabled from Customizer: sit inline instead of fixed,
   and always show a solid background since there's no scroll-blur trigger. */
.site-header:not(.site-header-sticky) {
    position: relative;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-light);
}

.site-header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 32px;
}

/* ============ NAVIGATION ============ */
.nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding-bottom: 3px;
    opacity: 0.95;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn:active {
    transform: scale(0.97);
}

.btn-filled {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.btn-filled:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 28px var(--shadow-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--hover-overlay);
    border-color: var(--text-primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.78rem;
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--hover-overlay);
    transform: scale(1.05);
}

/* ============ HAMBURGER ============ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.hamburger span {
    width: 16px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1005;
    background: var(--bg-primary);
    padding: 80px 32px 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

/* ============ HERO ============ */
.hero {
    height: 100vh;
    min-height: 600px;
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    overflow: hidden;
    position: relative;
}

.hero-left {
    padding: 104px 26px 26px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-frame {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 26px;
    min-height: 110px;
    position: relative;
    overflow: hidden;
}

.frame-label {
    position: absolute;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.frame-label.tl {
    top: 14px;
    left: 14px;
}

.frame-label.br {
    bottom: 14px;
    right: 14px;
    text-align: right;
}

.hero-copy h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 3.6vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.hero-copy p {
    max-width: 380px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.hero-artwork {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--hero-artwork-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--shadow-color);
    transition: background 0.4s ease;
}

.hero-artwork canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media-img,
.hero-media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-canvas-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: 0.7;
    pointer-events: none;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

/* ============ SECTIONS ============ */
section {
    padding: 100px 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 500;
}

.eyebrow::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--border-strong);
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    max-width: 720px;
    color: var(--text-primary);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* ============ STATS ============ */
.stat-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.stat {
    background: var(--bg-secondary);
    padding: 28px 24px;
    text-align: center;
}

.stat .num {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-primary);
}

.stat .lbl {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ SERVICES ============ */
.service-list {
    border-top: 1px solid var(--border-light);
}

.service-row {
    display: grid;
    grid-template-columns: 60px 1fr 1.1fr 60px;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-light);
    transition: padding-left 0.35s ease, background 0.35s ease;
    cursor: pointer;
}

.service-row:hover {
    padding-left: 14px;
    background: var(--hover-overlay);
}

.service-row .idx {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.service-row h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.service-row p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-row .arrow {
    justify-self: end;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.service-row:hover .arrow {
    transform: translateX(6px);
}

/* ============ WORK GRID ============ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 14px 32px var(--shadow-color);
}

/* Media wrapper only sets a *minimum* height so the grid stays tidy;
   the photo itself keeps whatever ratio it was uploaded in — never cropped. */
.work-card-media {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: var(--bg-soft);
    overflow: hidden;
}

.work-card-media canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.work-card-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.work-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
}

.work-card-body {
    padding: 20px 22px 24px;
}

.work-card-body h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.work-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.work-card-location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.work-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ============ INSIGHTS ============ */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.insight-card {
    background: var(--bg-secondary);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
    transition: background 0.35s ease;
}

.insight-card:hover {
    background: var(--bg-soft);
}

.insight-card .tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.insight-card h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.insight-card .read {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============ TEAM ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
}

.team-photo {
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--bg-secondary);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h5 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============ CONTACT BAND ============ */
.contact-band {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    padding: 100px 32px;
}

.contact-band .section-title {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.contact-band .cta-row {
    justify-content: center;
}

.contact-email {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-email a {
    text-decoration: underline;
    font-weight: 600;
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 60px 32px 28px;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 280px;
    margin-top: 16px;
}

.footer-col h6 {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0.85;
    color: var(--text-primary);
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 18px;
}

.socials a {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.socials a:hover {
    color: var(--text-primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-cta .btn {
        display: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .hero-right {
        order: -1;
        height: 280px;
        padding: 6px;
    }
    
    .hero-left {
        padding: 26px 20px;
    }
    
    section {
        padding: 70px 20px;
    }
    
    .stat-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-row {
        grid-template-columns: 40px 1fr 40px;
    }
    
    .service-row p {
        display: none;
    }
    
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .site-header {
        padding: 16px 18px;
    }
    
    .site-header.scrolled {
        padding: 12px 18px;
    }
}

/* ============ WORDPRESS ALIGNMENT ============ */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto; }
.sticky { display: block; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* ============ ELEMENTOR COMPATIBILITY ============ */
.elementor-page .site-header {
    position: relative;
}

.elementor-editor-active .site-header {
    position: relative;
}
/* ============ HEADER ACTIONS (Fixed) ============ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: 0;
}

.header-actions .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.header-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
@media (min-width: 901px) {
    .header-actions {
        gap: 16px;
        margin-left: 8px;
    }
    
    .header-actions .theme-toggle {
        margin-right: 4px;
    }
    
    .header-actions .btn {
        margin-left: 0;
    }
}
/* ============ CONTACT PAGE ============ */
.btn-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border-light);
}

.btn-link:hover {
    border-bottom-color: var(--text-primary);
}

/* ============ GALLERY (EVENTS + PHOTOS) ============ */
.gallery-event {
    margin-bottom: 64px;
}

.gallery-event:last-child {
    margin-bottom: 0;
}

.gallery-event-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.gallery-event-head h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.gallery-event-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-event-meta svg {
    width: 13px;
    height: 13px;
}

.gallery-event-desc {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* Masonry-style columns so every uploaded photo keeps its own ratio —
   nothing gets stretched, cropped, or forced into a square. */
.gallery-grid {
    column-count: 3;
    column-gap: 16px;
}

.gallery-photo {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    break-inside: avoid;
    cursor: zoom-in;
}

.gallery-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-empty-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    padding: 20px 22px;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 40px;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .gallery-grid { column-count: 2; }
}
@media (max-width: 560px) {
    .gallery-grid { column-count: 1; }
}

/* ============ CONTACT FORM ============ */
.contact-form-wrap {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border-light);
    max-width: 640px;
}

.contact-form-wrap h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-form-wrap > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .field-full {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--border-strong);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .field-submit {
    margin-top: 4px;
}

.contact-form button[type="submit"] {
    border: 1px solid transparent;
}

.form-notice {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
}

.form-notice-success {
    background: rgba(80, 200, 120, 0.12);
    border: 1px solid rgba(80, 200, 120, 0.35);
    color: var(--text-primary);
}

.form-notice-error {
    background: rgba(220, 90, 90, 0.12);
    border: 1px solid rgba(220, 90, 90, 0.35);
    color: var(--text-primary);
}

@media (max-width: 700px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* ============ ABOUT PAGE EXTRAS ============ */
.about-block {
    margin-top: 72px;
}

.about-block h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    max-width: 640px;
}

.about-lede {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 26px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.value-card .idx {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
    display: block;
}

.value-card h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .value-grid { grid-template-columns: 1fr; }
}
