/* ==========================================================================
   KP-AEC PLUS · Luxury gold & dark-brown theme
   ========================================================================== */

:root {
    --gold:        #c9a227;
    --gold-light:  #e6c968;
    --gold-deep:   #9a7a1c;
    --gold-grad:   linear-gradient(135deg, #9a7a1c 0%, #e6c968 45%, #c9a227 70%, #f4e2a1 100%);
    --brown-950:   #140d07;
    --brown-900:   #1c120a;
    --brown-800:   #2b1d12;
    --brown-700:   #3d2a1a;
    --cream:       #f6f0e4;
    --cream-2:     #efe7d7;
    --cream-3:     #e7dcc6;
    --ink:         #2a2119;
    --ink-soft:    #6b5d4c;
    --line:        rgba(201, 162, 39, .28);
    --shadow:      0 18px 50px rgba(20, 13, 7, .18);
    --radius:      4px;
    --font-head:   'Kanit', sans-serif;
    --font-body:   'Kanit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }

::selection { background: var(--gold); color: var(--brown-950); }

/* Monogram pattern (inline SVG data-URI, subtle quatrefoil + diamond) */
.monogram-pattern,
.hero-pattern,
.about-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.16'%3E%3Cpath d='M48 8 L88 48 L48 88 L8 48 Z'/%3E%3Ccircle cx='48' cy='48' r='13'/%3E%3Cpath d='M48 39 L53 53 L39 53 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.p-tone-a {
    background-color: var(--brown-800);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.22'%3E%3Cpath d='M48 8 L88 48 L48 88 L8 48 Z'/%3E%3Ccircle cx='48' cy='48' r='13'/%3E%3Cpath d='M48 39 L53 53 L39 53 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.p-tone-b {
    background-color: var(--cream-3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%233d2a1a' stroke-opacity='.14'%3E%3Cpath d='M48 8 L88 48 L48 88 L8 48 Z'/%3E%3Ccircle cx='48' cy='48' r='13'/%3E%3Cpath d='M48 39 L53 53 L39 53 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.p-tone-c {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 240, 190, .35), transparent 55%),
        linear-gradient(150deg, #b28c20 0%, #e6c968 55%, #9a7a1c 100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%231c120a' stroke-opacity='.12'%3E%3Cpath d='M48 8 L88 48 L48 88 L8 48 Z'/%3E%3Ccircle cx='48' cy='48' r='13'/%3E%3Cpath d='M48 39 L53 53 L39 53 Z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 30% 20%, rgba(255, 240, 190, .35), transparent 55%),
        linear-gradient(150deg, #b28c20 0%, #e6c968 55%, #9a7a1c 100%);
}

/* Typography helpers */
.eyebrow {
    font-size: .72rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 600;
    color: var(--brown-900);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-title em, .hero-title em {
    font-style: italic;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-lead { color: var(--ink-soft); max-width: 46ch; }

/* ==========================================================================
   Buttons & forms
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.btn-gold {
    background: var(--gold-grad);
    background-size: 180% 180%;
    color: var(--brown-950);
    box-shadow: 0 8px 24px rgba(201, 162, 39, .35);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 90% 50%; box-shadow: 0 12px 32px rgba(201, 162, 39, .5); }

.btn-outline {
    border-color: var(--line);
    color: var(--brown-800);
    background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

.hero .btn-outline, .admin-header .btn-outline, .login-card .btn-outline { color: var(--cream); border-color: rgba(201,162,39,.5); }
.hero .btn-outline:hover, .admin-header .btn-outline:hover { color: var(--gold-light); border-color: var(--gold-light); }
.cta .btn-outline { color: var(--cream); border-color: rgba(201,162,39,.5); }
.cta .btn-outline:hover { color: var(--gold-light); border-color: var(--gold-light); }

.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1.2rem; font-size: .68rem; }

.lux-form { display: grid; gap: 1.1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row-3 { grid-template-columns: 1fr 1fr; }

.field { display: grid; gap: .4rem; }

.field-label {
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
}

.field input, .field select, .field textarea {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 400;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    transition: border-color .3s ease, box-shadow .3s ease;
    width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .15);
}
.about-thumb-preview {
    margin-top: .8rem;
    max-width: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(20, 13, 7, .1);
}
.about-thumb-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.alert {
    padding: .9rem 1.2rem;
    border-radius: var(--radius);
    font-size: .92rem;
    margin-bottom: 1.2rem;
    border: 1px solid;
}
.alert ul { padding-left: 1.2rem; }
.alert-success { background: #f0ead6; border-color: var(--line); color: #5c4a10; }
.alert-error   { background: #f6e4de; border-color: #d9a293; color: #7c2d1a; }

/* ==========================================================================
   Announcement bar & header
   ========================================================================== */

.announce {
    background: var(--brown-950);
    color: var(--gold-light);
    text-align: center;
    font-size: .7rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    padding: .6rem 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 18, 10, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 39, .18);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-light); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo-svg { height: 58px; width: auto; display: block; }
.brand-text {
    font-family: var(--font-head);
    font-size: 1.25rem;
    letter-spacing: .06em;
    color: var(--cream);
}
.brand-text small { font-family: var(--font-body); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-left: .5rem; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    position: relative;
    color: var(--cream-2);
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .1em;
    font-weight: 400;
    padding: .4rem 0;
    transition: color .3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .35s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { width: 100%; }
.nav-admin { border: 1px solid var(--line); padding: .45rem 1rem; border-radius: var(--radius); }
.nav-admin:hover { border-color: var(--gold); }
.nav-admin::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-light); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 75% -10%, rgba(201, 162, 39, .22), transparent 60%),
        linear-gradient(160deg, var(--brown-900) 0%, var(--brown-950) 100%);
    color: var(--cream);
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 15%;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(20, 13, 7, .72) 0%, rgba(20, 13, 7, .88) 100%);
}
/* Photo slides: brighter photo, light directional scrim so text stays readable */
.hero.hero-photo .hero-slide { filter: brightness(1.45) contrast(1.06) saturate(1.1); }
.hero.hero-photo .hero-slide::after {
    background: linear-gradient(100deg, rgba(20, 13, 7, .82) 0%, rgba(20, 13, 7, .62) 38%, rgba(20, 13, 7, .3) 68%, rgba(20, 13, 7, .08) 100%);
}
.hero.hero-photo .hero-pattern { opacity: 0; }
.hero-pattern { position: absolute; inset: 0; opacity: .5; pointer-events: none; z-index: 1; }

.hero-dots { display: flex; gap: .6rem; margin-bottom: 3.2rem; }
.hero-dot {
    width: 34px; height: 3px; border: 0; padding: 0;
    background: rgba(246, 240, 228, .28);
    cursor: pointer; transition: background .3s ease;
}
.hero-dot:hover { background: rgba(246, 240, 228, .55); }
.hero-dot.is-active { background: var(--gold); }

.hero-inner {
    position: relative;
    z-index: 2;
    padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(4.5rem, 9vw, 7rem);
    max-width: 880px;
}

.hero .eyebrow { color: var(--gold); }

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 1.4rem;
}
.hero-title em { color: var(--gold-light); }

.hero-lead { font-size: 1.08rem; color: rgba(246, 240, 228, .82); max-width: 52ch; margin-bottom: 2.2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.2rem; }

.hero-stats { display: flex; align-items: center; gap: 2.2rem; flex-wrap: wrap; }
.hero-stat { display: grid; }
.stat-num {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--gold-light);
    line-height: 1;
}
.hero-stat .stat-label { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 240, 228, .6); margin-top: .4rem; }
.hero-stat-divider { width: 1px; height: 42px; background: rgba(201, 162, 39, .3); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-head .section-lead { margin-inline: auto; }

.empty-note { text-align: center; color: var(--ink-soft); padding: 2.5rem 1rem; border: 1px dashed var(--cream-3); border-radius: var(--radius); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-deep);
    padding: 1rem 0 .5rem;
    margin-bottom: 1rem;
}
.breadcrumb a {
    color: var(--gold-deep);
    text-decoration: none;
    transition: color .3s ease;
    font-weight: 500;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--cream-3); user-select: none; }
.breadcrumb-current { color: var(--brown-900); font-weight: 600; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }

.lux-card {
    position: relative;
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: 2.4rem 2rem 2rem;
    overflow: hidden;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.lux-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
}
.lux-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--line); }
.lux-card:hover::before { transform: scaleX(1); }

.card-monogram {
    position: absolute;
    top: .6rem; right: 1rem;
    font-family: var(--font-head);
    font-size: 4.6rem;
    color: var(--gold);
    opacity: .1;
    pointer-events: none;
    user-select: none;
}

.card-category {
    font-size: .64rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: .8rem;
}
.card-title { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--brown-900); margin-bottom: .7rem; }
.card-desc { font-size: .93rem; color: var(--ink-soft); margin-bottom: 2rem; }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--cream-2);
    padding-top: 1.6rem;
    margin-top: .5rem;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-deep);
    font-weight: 500;
}
.card-link svg { transition: transform .3s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* About */
.section-about {
    position: relative;
    background: var(--cream-3);
    color: var(--ink);
    overflow: hidden;
}
.section-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, .08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 162, 39, .06) 0%, transparent 50%);
    pointer-events: none;
}
.about-pattern { position: absolute; inset: 0; opacity: .08; pointer-events: none; }
.about-inner {
    position: relative;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.about-frame {
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(201, 162, 39, .4);
    border-radius: var(--radius);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.2rem;
    background:
        radial-gradient(circle at 50% 30%, rgba(201, 162, 39, .1), transparent 65%),
        var(--cream-2);
    box-shadow: var(--shadow);
    position: relative;
}
.about-frame::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius) + 3px);
    border: 1px solid rgba(201, 162, 39, .15);
    pointer-events: none;
}
.about-crest { width: 110px; color: var(--gold-deep); }
.about-crest-text {
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--brown-800);
    line-height: 2;
}

.about-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: var(--cream-2);
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.section-about .section-title { color: var(--brown-900); }
.section-about .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: .5rem 0 1rem;
}
.about-copy {
    padding-left: 1rem;
    border-left: 2px solid rgba(201, 162, 39, .3);
}
.about-copy p + p { margin-top: 1rem; }
.about-copy p { color: var(--ink-soft); }
.about-copy .btn { margin-top: 2rem; }
.about-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.about-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ink-soft);
    font-size: .95rem;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .55em;
    width: .55rem; height: .55rem;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.section-alt { background: var(--cream-2); }

/* Homepage portfolio cards */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.portfolio-grid .p-item {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, .2);
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 28px rgba(20, 13, 7, .1), 0 0 0 0 rgba(201, 162, 39, 0);
    transition: box-shadow .4s ease, border-color .4s ease, transform .4s ease;
    background: var(--cream-2);
}
.portfolio-grid .p-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 30px rgba(20, 13, 7, .2);
    pointer-events: none;
    z-index: 1;
}
.portfolio-grid .p-item:hover {
    box-shadow: 0 18px 45px rgba(20, 13, 7, .2), 0 0 20px rgba(201, 162, 39, .1);
    border-color: rgba(201, 162, 39, .4);
    transform: translateY(-4px);
}
.portfolio-grid .p-pattern {
    position: absolute;
    inset: 0;
    transition: transform .7s ease;
}
.portfolio-grid .p-photo-trigger {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: auto;
}
.portfolio-grid .p-item:hover .p-pattern,
.portfolio-grid .p-item:hover .p-photo { transform: scale(1.07); }
.portfolio-grid .p-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.portfolio-grid .p-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem 1.5rem 1.3rem;
    background: linear-gradient(to top, rgba(20, 13, 7, .88) 0%, rgba(20, 13, 7, .45) 55%, transparent 100%);
    transition: padding .3s ease;
    pointer-events: none;
}
.portfolio-grid .p-item:hover .p-overlay { padding: 1.8rem 1.8rem 1.6rem; }
.portfolio-grid .p-cat {
    margin-bottom: .3rem;
    color: var(--gold-light);
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.portfolio-grid .p-title {
    color: var(--cream);
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
}

.p-photo-trigger {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #15120f;
    cursor: zoom-in;
}
.p-photo-trigger:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: -5px;
}
.p-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 3.5rem 1.25rem 1.5rem;
    background: rgba(14, 10, 7, .94);
    backdrop-filter: blur(5px);
}
.portfolio-lightbox.open { display: grid; }
.portfolio-lightbox-content {
    display: grid;
    justify-items: center;
    gap: .9rem;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}
.portfolio-lightbox-image {
    display: block;
    max-width: min(92vw, 1440px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.portfolio-lightbox-close {
    position: absolute;
    top: .8rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.portfolio-lightbox-close:hover,
.portfolio-lightbox-close:focus-visible {
    border-color: var(--gold-light);
    background: rgba(201, 162, 39, .25);
}
.portfolio-lightbox-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: .9rem; }

.faq-item {
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .35s ease, box-shadow .35s ease;
}
.faq-item.open { border-color: var(--line); box-shadow: 0 10px 26px rgba(20, 13, 7, .08); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--brown-900);
    padding: 1.15rem 1.4rem;
}
.faq-q svg { flex: none; color: var(--gold-deep); transition: transform .35s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 1.4rem 1.35rem; color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }

.t-card {
    position: relative;
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: 2.4rem 1.9rem 1.9rem;
    box-shadow: 0 10px 28px rgba(20, 13, 7, .07);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }
.t-card::before {
    content: '\201C';
    position: absolute;
    top: .4rem; left: 1.1rem;
    font-family: var(--font-head);
    font-size: 4.6rem;
    line-height: 1;
    color: var(--gold);
    opacity: .3;
    pointer-events: none;
}
.t-stars { color: var(--gold); letter-spacing: .25em; font-size: .85rem; margin-bottom: .9rem; }
.t-text {
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--brown-800);
    margin-bottom: 1.5rem;
}
.t-name { font-weight: 500; color: var(--brown-900); }
.t-role { font-size: .76rem; letter-spacing: .1em; color: var(--ink-soft); margin-top: .15rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-details { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-details li { font-size: .98rem; color: var(--brown-800); }
.contact-label {
    display: block;
    font-size: .64rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: .2rem;
}
.contact-form-wrap {
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow);
}

/* Footer */
.site-footer { background: var(--brown-950); color: var(--cream-2); }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3rem 0;
}
.footer-brand { display: grid; justify-items: start; gap: .3rem; }
.footer-brand .brand-mark { width: 44px; height: 44px; color: var(--gold); margin-bottom: .4rem; }
.footer-logo { display: inline-flex; align-items: center; line-height: 0; margin-bottom: .35rem; }
.footer-logo-svg { height: 66px; width: auto; display: block; }
.footer-logo-img { display: block; margin-bottom: .35rem; }
.footer-brand .brand-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--cream); }
.footer-tag { font-size: .78rem; letter-spacing: .12em; color: rgba(246, 240, 228, .55); }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a {
    color: rgba(246, 240, 228, .75);
    text-decoration: none;
    font-size: .74rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    transition: color .3s ease;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-nav .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(246, 240, 228, .75);
    width: 32px;
    height: 32px;
    border: 1px solid rgba(246, 240, 228, .2);
    border-radius: 50%;
    transition: all .3s ease;
    text-decoration: none;
}
.footer-nav .social-link:hover { color: var(--gold-light); border-color: var(--gold); }
.footer-bar { border-top: 1px solid rgba(201, 162, 39, .18); padding: 1.1rem 0; text-align: center; font-size: .74rem; color: rgba(246, 240, 228, .45); }

/* ==========================================================================
   Login page
   ========================================================================== */

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(201, 162, 39, .18), transparent 60%),
        var(--brown-950);
    padding: 2rem 1rem;
}
.login-wrap { width: 100%; max-width: 420px; }
.login-card {
    background: var(--brown-900);
    border: 1px solid rgba(201, 162, 39, .3);
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.login-brand { text-align: center; margin-bottom: 2rem; }
.login-brand .brand-mark { width: 52px; height: 52px; color: var(--gold); margin-inline: auto; }
.brand-name { font-family: var(--font-head); font-size: 1.4rem; color: var(--cream); margin-top: .8rem; }
.brand-sub { font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.login-form { display: grid; gap: 1.1rem; }
.login-card .field-label { color: rgba(246, 240, 228, .6); }
.login-card .field input {
    background: var(--brown-800);
    border-color: rgba(201, 162, 39, .25);
    color: var(--cream);
}
.login-card .field input:focus { border-color: var(--gold); }
.login-hint { margin-top: 1.4rem; text-align: center; font-size: .76rem; color: rgba(246, 240, 228, .45); }
.login-hint code { color: var(--gold-light); }
.login-back { display: block; text-align: center; margin-top: .8rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: rgba(246, 240, 228, .6); }
.login-back:hover { color: var(--gold-light); }

/* ==========================================================================
   Admin dashboard
   ========================================================================== */

.admin-body { background: var(--cream-2); min-height: 100vh; }

.admin-header { background: var(--brown-950); border-bottom: 2px solid var(--gold); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; }
.admin-header-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.admin-user { font-size: .8rem; color: rgba(246, 240, 228, .7); }
.admin-user strong { color: var(--gold-light); font-weight: 500; }

.admin-main { padding: 2.6rem 0 4.5rem; }
.admin-title-row { margin-bottom: 1.8rem; }
.admin-title { font-family: var(--font-head); font-size: 2.1rem; color: var(--brown-900); }
.admin-subtitle { color: var(--ink-soft); font-size: .95rem; font-weight: 400; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 2.4rem; }
.stat-card {
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 8px 24px rgba(20, 13, 7, .07);
}
.stat-card .stat-label { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.stat-card .stat-value { font-family: var(--font-head); font-size: 2.3rem; color: var(--brown-900); line-height: 1.1; margin-top: .35rem; }
.stat-card-gold { background: var(--brown-900); border-top-color: var(--gold-light); }
.stat-card-gold .stat-label { color: rgba(246, 240, 228, .6); }
.stat-card-gold .stat-value { color: var(--gold-light); }

.admin-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--cream-3); margin-bottom: 1.8rem; flex-wrap: wrap; }
.tab {
    position: relative;
    padding: .8rem 1.3rem;
    text-decoration: none;
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
    transition: color .3s ease;
}
.tab:hover { color: var(--brown-900); }
.tab.active { color: var(--brown-900); }
.tab.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--gold);
}
.tab-badge {
    display: inline-block;
    min-width: 1.25rem;
    padding: .05rem .35rem;
    margin-left: .4rem;
    background: var(--gold);
    color: var(--brown-950);
    border-radius: 999px;
    font-size: .68rem;
    text-align: center;
    letter-spacing: 0;
}

.admin-panel {
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
    margin-bottom: 1.8rem;
    box-shadow: 0 8px 24px rgba(20, 13, 7, .06);
}
.panel-title { font-family: var(--font-head); font-size: 1.35rem; color: var(--brown-900); margin-bottom: 1.4rem; }
.panel-count {
    font-family: var(--font-body);
    font-size: .78rem;
    color: var(--gold-deep);
    vertical-align: middle;
    margin-left: .4rem;
}

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-weight: 400; min-width: 640px; }
.admin-table th {
    text-align: left;
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
    padding: .7rem .9rem;
    border-bottom: 2px solid var(--cream-3);
    white-space: nowrap;
}
.admin-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--cream-2); vertical-align: middle; font-weight: 400; }
.admin-table tbody tr { transition: background .25s ease; }
.admin-table tbody tr:hover { background: #faf5ea; }
.row-new { background: #fbf3dd; }
.td-strong { font-weight: 500; color: var(--brown-900); }
.td-sub { font-size: .8rem; color: var(--ink-soft); }
.th-actions, .td-actions { text-align: right; white-space: nowrap; }
.td-actions { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; }
.inline-form { display: inline; }

.action-btn {
    display: inline-grid;
    place-items: center;
    width: 32px; height: 32px;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    background: #fffdf8;
    color: var(--brown-700);
    cursor: pointer;
    transition: all .25s ease;
}
.action-btn:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-1px); }
.action-danger:hover { border-color: #b3402a; color: #b3402a; }

.badge {
    display: inline-block;
    padding: .18rem .7rem;
    border-radius: 999px;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
}
.badge-active { background: #e8e0c8; color: #5c4a10; border: 1px solid var(--line); }
.badge-muted  { background: var(--cream-2); color: var(--ink-soft); border: 1px solid var(--cream-3); }
.badge-gold   { background: var(--gold-grad); color: var(--brown-950); }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 13, 7, .72); backdrop-filter: blur(4px); }
.modal-card {
    position: relative;
    width: min(560px, 92%);
    max-height: 84vh;
    overflow-y: auto;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.4rem 2.2rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
    animation: modal-in .35s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute;
    top: .8rem; right: 1rem;
    background: none;
    border: 0;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .25s ease;
}
.modal-close:hover { color: var(--gold-deep); }
.modal-subject { font-family: var(--font-head); font-size: 1.5rem; color: var(--brown-900); margin-bottom: 1.2rem; }
.modal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.modal-meta dt { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.modal-meta dd { font-size: .92rem; color: var(--brown-800); overflow-wrap: anywhere; }
.modal-message {
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    font-size: .95rem;
    color: var(--ink);
    white-space: pre-wrap;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 74px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--brown-950);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s ease;
    }
    .main-nav.open { max-height: 560px; }
    .nav-link { padding: 1rem 6%; border-top: 1px solid rgba(201, 162, 39, .12); }
    .nav-admin { border: 0; border-radius: 0; }
}

@media (max-width: 920px) {
    .about-inner { grid-template-columns: 1fr; }
    .about-media { max-width: 380px; margin-inline: auto; width: 100%; }
    .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .modal-meta { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.4rem; }
    .hero-stat-divider { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-brand { justify-items: center; }
    .footer-logo-svg { height: 52px; }
    .brand-logo-svg { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Multi-page additions (page heroes, active nav, values, timeline, articles)
   ========================================================================== */

/* Reveal delay helpers */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* Active nav link */
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after { width: 100%; }

/* Inner-page hero banner */
.page-hero {
    position: relative;
    background-color: var(--brown-900);
    color: var(--cream);
    padding: clamp(4rem, 9vw, 7rem) 0;
    overflow: hidden;
}
.page-hero.p-tone-a,
.page-hero.p-tone-b,
.page-hero.p-tone-c { background-position: center; }
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 13, 7, .35), rgba(20, 13, 7, .72));
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.3rem, 5.5vw, 3.7rem);
    font-weight: 600;
    line-height: 1.12;
}
.page-hero-lead {
    max-width: 720px;
    margin-top: 1.1rem;
    color: rgba(246, 240, 228, .82);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Centered button below a grid */
.center-cta { text-align: center; margin-top: 2.6rem; }

/* CTA band */
.cta {
    background:
        radial-gradient(900px 420px at 50% -20%, rgba(201, 162, 39, .22), transparent 60%),
        linear-gradient(160deg, var(--brown-900), var(--brown-950));
    color: var(--cream);
    text-align: center;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.cta h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 600;
}
.cta p { margin-top: .9rem; margin-bottom: 1.8rem; color: rgba(246, 240, 228, .78); font-weight: 300; }
.cta .hero-actions { justify-content: center; }

/* About page: value cards */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.value-card {
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow);
}
.value-card svg { fill: var(--gold-deep); margin-bottom: 1rem; }
.value-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--brown-900);
    margin-bottom: .6rem;
}
.value-card p { color: var(--ink-soft); font-size: .94rem; line-height: 1.75; }

/* About page: timeline */
.timeline {
    list-style: none;
    max-width: 760px;
    margin-inline: auto;
    position: relative;
    padding-left: 2.2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 6px; bottom: 6px;
    width: 1px;
    background: linear-gradient(var(--gold), var(--cream-3));
}
.timeline li { position: relative; padding-bottom: 2.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -2.2rem; top: 6px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--gold-grad);
    box-shadow: 0 0 0 4px var(--cream-2);
}
.timeline .t-year {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .22em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: .35rem;
}
.timeline h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--brown-900);
    margin-bottom: .35rem;
}
.timeline p { color: var(--ink-soft); font-size: .95rem; line-height: 1.75; }

/* Articles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.a-card {
    display: flex;
    flex-direction: column;
    background: #fffdf8;
    border: 1px solid var(--cream-3);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.a-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(20, 13, 7, .18), 0 0 20px rgba(201, 162, 39, .08);
    border-color: rgba(201, 162, 39, .35);
}
.a-cat {
    font-size: .66rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: .8rem;
}
.a-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--cream-2);
    position: relative;
}
.a-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.a-card:hover .a-card-image img { transform: scale(1.05); }
.a-card-image.p-tone-a,
.a-card-image.p-tone-b,
.a-card-image.p-tone-c { position: relative; }
.a-card:hover .a-card-image.p-tone-a,
.a-card:hover .a-card-image.p-tone-b,
.a-card:hover .a-card-image.p-tone-c { transform: none; }
.a-title {
    font-family: var(--font-head);
    font-size: 1.28rem;
    line-height: 1.35;
    margin-bottom: .7rem;
}
.a-title a { color: var(--brown-900); text-decoration: none; transition: color .3s ease; }
.a-title a:hover { color: var(--gold-deep); }
.a-excerpt {
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.75;
    flex: 1;
}
.a-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-3);
    font-size: .8rem;
    color: var(--ink-soft);
}
.a-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--gold-deep);
    font-weight: 500;
    letter-spacing: .06em;
    text-decoration: none;
    transition: color .3s ease;
}
.a-more:hover { color: var(--gold-light); }

.article-image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-2);
}
.article-image-wrap img {
    width: 100%; height: auto; display: block; object-fit: cover;
}
.share-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--cream-3);
}
.share-label {
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
    margin-right: .3rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem 1rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--brown-950);
    background: var(--gold-grad);
    box-shadow: 0 3px 10px rgba(201, 162, 39, .25);
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 162, 39, .4);
    filter: brightness(1.08);
}
.share-btn svg { color: var(--brown-950); }

/* Article detail page */
.article-hero-title { max-width: 860px; }
.article-wrap { max-width: 780px; }
.article-body p {
    color: var(--ink);
    font-size: 1.04rem;
    font-weight: 300;
    line-height: 2;
    margin-bottom: 1.6rem;
}
.article-back { margin-top: 2.4rem; }
.article-back .btn { display: inline-flex; align-items: center; gap: .5rem; }

/* Contact page: map placeholder */
.map-placeholder {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.1rem 1.3rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--cream-2);
    color: var(--brown-800);
    font-size: .92rem;
}
.map-placeholder svg { fill: var(--gold-deep); flex-shrink: 0; }

/* 404-style box */
.notfound-box {
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
    padding: 3.5rem 2rem;
}
.notfound-box h2 {
    font-family: var(--font-head);
    font-size: 1.9rem;
    color: var(--brown-900);
    margin-bottom: .8rem;
}
.notfound-box p { color: var(--ink-soft); margin-bottom: 1.8rem; }

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

@media (max-width: 760px) {
    .value-grid,
    .article-grid { grid-template-columns: 1fr; }
    .a-meta { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ============================================================
   Admin area: sidebar shell + dashboard widgets
   ============================================================ */
.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    background: var(--brown-950);
    border-right: 1px solid rgba(201, 162, 39, .25);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.side-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.2rem;
    border-bottom: 1px solid rgba(201, 162, 39, .25);
}
.side-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50%;
}
.side-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.side-brand-text strong { color: var(--cream); font-weight: 500; font-size: 1.05rem; }
.side-brand-text small { color: var(--gold-light); font-size: .62rem; letter-spacing: .22em; }

.side-nav { display: flex; flex-direction: column; padding: 1rem .8rem 1.4rem; gap: .15rem; flex: 1; }
.side-section {
    margin: 1.1rem .5rem .35rem;
    font-size: .65rem;
    letter-spacing: .22em;
    color: rgba(246, 240, 228, .4);
}
.side-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .8rem;
    border-radius: var(--radius);
    color: rgba(246, 240, 228, .75);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}
.side-link svg { flex-shrink: 0; opacity: .85; }
.side-link:hover { background: rgba(201, 162, 39, .12); color: var(--cream); }
.side-link.active {
    background: rgba(201, 162, 39, .18);
    color: var(--gold-light);
    box-shadow: inset 3px 0 0 var(--gold);
}
.side-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 .4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gold);
    color: var(--brown-950);
    font-size: .72rem;
    font-weight: 600;
}
.side-logout { margin-top: auto; color: rgba(246, 160, 140, .8); }
.side-logout:hover { background: rgba(190, 70, 50, .18); color: #f2b8ac; }

/* Sidebar dropdown groups */
.side-group { border-radius: var(--radius); }
.side-group-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .8rem;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    color: rgba(246, 240, 228, .75);
    font-size: .92rem;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    transition: background .25s ease, color .25s ease;
}
.side-group-btn > svg:first-child { flex-shrink: 0; opacity: .85; }
.side-group-btn:hover { background: rgba(201, 162, 39, .12); color: var(--cream); }
.side-group.open .side-group-btn { color: var(--gold-light); }
.side-chevron { margin-left: auto; flex-shrink: 0; opacity: .7; transition: transform .25s ease; }
.side-group.open .side-chevron { transform: rotate(180deg); }
.side-sub { display: none; flex-direction: column; gap: .1rem; padding: .15rem 0 .4rem; }
.side-group.open .side-sub { display: flex; }
.side-sublink {
    display: block;
    padding: .45rem .8rem .45rem 2.7rem;
    border-radius: var(--radius);
    color: rgba(246, 240, 228, .6);
    font-size: .86rem;
    font-weight: 400;
    text-decoration: none;
    position: relative;
    transition: background .25s ease, color .25s ease;
}
.side-sublink::before {
    content: "";
    position: absolute;
    left: 1.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .45);
}
.side-sublink:hover { background: rgba(201, 162, 39, .1); color: var(--cream); }
.side-sublink.active { background: rgba(201, 162, 39, .16); color: var(--gold-light); }
.side-sublink.active::before { background: var(--gold); }

/* Main column */
.admin-maincol { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.8rem;
    background: #fdfaf3;
    border-bottom: 1px solid var(--cream-3);
    position: sticky;
    top: 0;
    z-index: 20;
}
.topbar-title h1 {
    font-family: var(--font-head);
    font-size: 1.55rem;
    color: var(--brown-900);
    line-height: 1.2;
}
.topbar-title p { color: var(--ink-soft); font-size: .85rem; margin-top: .15rem; }
.topbar-actions { display: flex; align-items: center; gap: .9rem; }
.admin-profile { display: flex; align-items: center; gap: .6rem; }
.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brown-900);
    color: var(--gold-light);
    font-family: var(--font-head);
    font-size: 1.05rem;
    border: 1px solid var(--gold);
}
.profile-text { display: flex; flex-direction: column; line-height: 1.25; }
.profile-text strong { font-size: .88rem; color: var(--brown-900); font-weight: 500; }
.profile-text small { font-size: .75rem; color: var(--ink-soft); }

.admin-content { padding: 1.8rem; flex: 1; width: 100%; max-width: 1240px; font-weight: 400; }
.admin-foot {
    padding: 1.1rem 1.8rem;
    border-top: 1px solid var(--cream-3);
    color: var(--ink-soft);
    font-size: .8rem;
}

/* Dashboard widgets */
.dash-stat-grid { grid-template-columns: repeat(4, 1fr); }
.dash-stat { display: flex; flex-direction: column; gap: .3rem; }
.dash-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}
.dash-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, .15);
    color: var(--gold-deep);
    flex-shrink: 0;
}
.dash-icon-green { background: rgba(84, 130, 80, .16); color: #4d7a49; }
.dash-icon-orange { background: rgba(196, 120, 60, .16); color: #a8642c; }
.dash-icon-dark { background: rgba(27, 18, 10, .1); color: var(--brown-800); }
.dash-sub { font-size: .8rem; color: var(--ink-soft); }
.dash-trend { font-size: .78rem; font-weight: 500; }
.dash-trend.up { color: #4d7a49; }
.dash-trend.down { color: #b0503c; }

.dash-chart-panel { margin-bottom: 1.6rem; }
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.dash-range { display: flex; gap: .35rem; }
.range-pill {
    padding: .3rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--ink-soft);
    transition: all .25s ease;
}
.range-pill:hover { border-color: var(--gold); color: var(--brown-900); }
.range-pill.active { background: var(--brown-900); border-color: var(--brown-900); color: var(--gold-light); }
.dash-chart-wrap { position: relative; height: 300px; }

.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-bottom: 1.6rem;
}

.dash-meter { margin-bottom: .9rem; }
.dash-meter:last-child { margin-bottom: 0; }
.dash-meter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .3rem;
    font-size: .86rem;
}
.dash-meter-label { color: var(--brown-800); }
.dash-meter-val { color: var(--ink-soft); font-size: .8rem; white-space: nowrap; }
.dash-meter-track {
    height: 7px;
    border-radius: 999px;
    background: var(--cream-2);
    overflow: hidden;
}
.dash-meter-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
.dash-meter-fill.fill-green { background: linear-gradient(90deg, #4d7a49, #79a874); }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.quick-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fdfaf3;
    color: var(--brown-800);
    font-size: .9rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.quick-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--brown-900);
}

.dash-feed { display: flex; flex-direction: column; }
.dash-feed-item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--cream-2);
}
.dash-feed-item:last-child { border-bottom: 0; }
.dash-feed-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cream-3);
    margin-top: .4rem;
    flex-shrink: 0;
}
.dash-feed-dot.is-new { background: var(--gold); }
.dash-feed-text { min-width: 0; flex: 1; }
.dash-feed-text strong {
    display: block;
    font-size: .88rem;
    color: var(--brown-900);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-feed-text span {
    font-size: .8rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.dash-feed-date { font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.dash-feed-foot { margin-top: 1rem; }

@media (max-width: 1024px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(201, 162, 39, .25);
    }
    .side-nav { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .7rem .8rem; }
    .side-section { display: none; }
    .side-link { padding: .5rem .7rem; }
    .side-link.active { box-shadow: inset 0 -2px 0 var(--gold); }
    .side-logout { margin-top: 0; margin-left: auto; }
    .side-group { width: 100%; }
    .side-group-btn { padding: .5rem .7rem; font-size: .9rem; }
    .side-sublink { padding: .4rem .7rem .4rem 2.4rem; }
    .side-sublink::before { left: 1.2rem; }
    .dash-stat-grid { grid-template-columns: 1fr 1fr; }
    .dash-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .admin-content { padding: 1.2rem 1rem; }
    .admin-topbar { padding: .9rem 1rem; }
    .profile-text { display: none; }
    .dash-stat-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
    .topbar-actions { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Back to top button
   ========================================================================== */
.to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 95;
    width: 54px;
    height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: rgba(28, 18, 10, .92);
    color: var(--gold-light);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: .53rem;
    font-weight: 500;
    letter-spacing: .2em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(20, 13, 7, .32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease, color .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover, .to-top:focus-visible {
    background: var(--gold-grad);
    color: var(--brown-950);
    transform: translateY(-3px);
    outline: none;
}
.to-top svg { width: 15px; height: 15px; display: block; }

@media (max-width: 600px) {
    .to-top { right: 1rem; bottom: 1rem; width: 46px; height: 46px; font-size: .48rem; }
    .to-top svg { width: 13px; height: 13px; }
}

/* ==========================================================================
   Floating social share (left dock)
   ========================================================================== */
.share-dock {
    position: fixed;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 94;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
}

.share-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: rgba(28, 18, 10, .92);
    color: var(--gold-light);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(20, 13, 7, .3);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.share-toggle:hover, .share-toggle:focus-visible { background: var(--gold-grad); color: var(--brown-950); outline: none; }

.share-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .75rem .55rem .6rem;
    border: 1px solid rgba(201, 162, 39, .5);
    border-radius: 999px;
    background: rgba(28, 18, 10, .92);
    box-shadow: 0 14px 34px rgba(20, 13, 7, .3);
    backdrop-filter: blur(6px);
}

.share-caption {
    font-size: .55rem;
    font-weight: 500;
    letter-spacing: .18em;
    color: var(--gold-light);
    padding-bottom: .5rem;
    margin-bottom: .1rem;
    border-bottom: 1px solid rgba(201, 162, 39, .5);
}

.share-dock .share-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(201, 162, 39, .55);
    border-radius: 50%;
    background: var(--gold-grad);
    background-size: 160% 160%;
    background-position: 30% 50%;
    color: var(--brown-950);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(201, 162, 39, .38);
    transition: transform .25s ease, background-position .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.share-dock .share-btn svg { width: 17px; height: 17px; color: inherit; }
.share-dock .share-btn:hover, .share-dock .share-btn:focus-visible {
    transform: translateX(3px) scale(1.06);
    background-position: 85% 50%;
    border-color: var(--gold-light);
    box-shadow: 0 10px 24px rgba(201, 162, 39, .55);
    outline: none;
}
.share-dock .share-copy.is-copied {
    background: var(--brown-950);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 10px 24px rgba(20, 13, 7, .35);
}

.share-dock .share-btn::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    padding: .38rem .7rem;
    border-radius: var(--radius);
    background: var(--brown-950);
    color: var(--cream);
    font-size: .62rem;
    letter-spacing: .12em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.share-dock .share-btn:hover::after, .share-dock .share-btn:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 1100px) {
    .share-dock {
        top: auto;
        bottom: 5.4rem;
        left: .9rem;
        transform: none;
        flex-direction: column-reverse;
    }
    .share-toggle { display: inline-flex; }
    .share-list {
        position: absolute;
        left: 0;
        bottom: calc(100% + .55rem);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    }
    .share-dock.is-open .share-list {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .share-caption { padding: 0 0 .45rem; margin: 0; }
    .share-dock .share-btn::after { left: calc(100% + 10px); }
}

@media (max-width: 760px) {
    .hero.hero-photo .hero-slide::after {
        background: linear-gradient(180deg, rgba(20, 13, 7, .8) 0%, rgba(20, 13, 7, .58) 55%, rgba(20, 13, 7, .4) 100%);
    }
}
