/* ═══════════════════════════════════════════════════════════
   KHIIMORI WORLD — main.css
   Global: variables, reset, nav, footer, buttons, shared helpers.
   Loaded on every page.
═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
    --parchment:   #F2EDD8;
    --parchment-d: #E8E0C6;
    --sky:         #2E68BA;
    --sky-d:       #1D4F96;
    --gold:        #C89028;
    --gold-d:      #A07018;
    --earth:       #2C1A0E;
    --muted:       #8A7860;
    --muted-l:     #B5A890;
    --radius:      4px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--earth);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }
ul  { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 72px;
    transition: background 0.35s, box-shadow 0.35s, opacity 0.35s;
    opacity: 0;
    background: transparent;
}
#main-nav.visible { opacity: 1; }
#main-nav.scrolled {
    background: rgba(242, 237, 216, 0.97);
    box-shadow: 0 1px 0 rgba(44, 26, 14, 0.07);
    backdrop-filter: blur(8px);
}

/* WordPress admin bar offset */
.admin-bar #main-nav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #main-nav { top: 46px; }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--earth);
    font-weight: 400;
}
.nav-logo img { height: 52px; width: auto; }
.nav-logo span { color: var(--sky); }

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--sky); }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--earth);
    transition: all 0.2s;
}

/* ── Mobile menu ──────────────────────────────────────── */
.nav-mobile {
    position: fixed;
    inset: 0;
    background: var(--parchment);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    text-decoration: none;
    color: var(--earth);
    letter-spacing: 2px;
}
.nav-mobile a:hover { color: var(--sky); }
.nav-mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--muted);
    padding: 8px;
}
.nav-mobile-close:hover { color: var(--earth); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-sky {
    display: inline-block;
    background: var(--sky);
    color: var(--parchment);
    padding: 14px 32px;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.25s;
    font-family: 'Montserrat', sans-serif;
}
.btn-sky:hover { background: var(--sky-d); transform: translateY(-1px); }

.btn-outline {
    display: inline-block;
    border: 1px solid rgba(44, 26, 14, 0.25);
    color: var(--earth);
    padding: 13px 28px;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.btn-outline:hover { background: var(--earth); color: var(--parchment); }

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION HELPERS
═══════════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
}

.section-eyebrow {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 10px;
    font-weight: 500;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.15;
    color: var(--earth);
}

.section-link {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sky);
    text-decoration: none;
    border-bottom: 1px solid var(--sky);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.section-link:hover { color: var(--sky-d); border-color: var(--sky-d); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE CARD — used on front-page blog section and archive
═══════════════════════════════════════════════════════════ */
.article-card {
    background: var(--parchment);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44, 26, 14, 0.1);
}

.ac-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.ac-thumb-sky  { background: linear-gradient(145deg, var(--sky) 0%, var(--sky-d) 50%, var(--gold) 100%); }
.ac-thumb-cog  { background: linear-gradient(145deg, #9B6B40 0%, #7A4A28 40%, #C4522A 100%); }
.ac-thumb-gold { background: linear-gradient(145deg, var(--parchment) 0%, var(--gold) 60%, var(--gold-d) 100%); }
.ac-thumb-cloud { background: linear-gradient(160deg, #c8dff5 0%, #d5e8f5 30%, var(--parchment) 70%); }

.ac-thumb-label {
    position: absolute;
    bottom: 14px;
    left: 18px;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.article-card.featured .ac-thumb { height: 280px; }

.ac-body { padding: 24px 28px 28px; }

.ac-cat {
    font-size: 8px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 8px;
    font-weight: 500;
}

.ac-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--earth);
    margin-bottom: 10px;
}
.article-card.featured .ac-title { font-size: 26px; }

.ac-lead {
    font-size: 11px;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 16px;
}

.ac-read {
    font-size: 8.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sky);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
    background: var(--earth);
    padding: 64px 60px 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(242, 237, 216, 0.07);
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 52px; width: auto; }

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--parchment);
}
.footer-logo span { color: var(--sky); }

.footer-desc {
    font-size: 10px;
    line-height: 1.8;
    color: rgba(242, 237, 216, 0.35);
    max-width: 260px;
    margin-bottom: 20px;
}

.footer-domains { display: flex; flex-direction: column; gap: 5px; }

.footer-domain {
    font-size: 8.5px;
    color: rgba(242, 237, 216, 0.22);
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-domain:hover { color: var(--gold); }

.footer-col-title {
    font-size: 8.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(242, 237, 216, 0.25);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.footer-links a {
    font-size: 11px;
    color: rgba(242, 237, 216, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--parchment); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 9px;
    color: rgba(242, 237, 216, 0.16);
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — global elements
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    #main-nav { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }

    footer { padding: 48px 24px 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
}
