/* ==================================================
   GLOBAL STYLESHEET
   Used across all pages for consistent design
   ================================================== */

/* ==================================================
   1) Reset & Root
   ================================================== */

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

:root {
    --ink: #1a1208;
    --sepia-dark: #2b1d0e;
    --sepia-mid: #6b4c2a;
    --sepia-light: #c9a96e;
    --cream: #f5ead6;
    --warm-white: #fdf6ec;
    --ember: #d4622a;
    --glow: #f0a84b;
    --nav-bg: rgba(245, 234, 214, 0.96);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    background: var(--cream);
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(14px, 1.2vw, 16px);
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Brand bar & navbar styles moved to includes/navbar.php */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
    z-index: 120;
}

/* Mobile menu: hidden by default, shown only when .open on small screens */
.nav-inner {
    display: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ==================================================
   4) Footer
   ================================================== */

.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: clamp(48px, 6vw, 70px) 0 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 48px) clamp(40px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 234, 214, 0.92);
    border: 1px solid rgba(201, 169, 110, 0.55);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.footer-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(245, 234, 214, 0.85);
    margin: 12px 0 20px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(245, 234, 214, 0.35);
    border-radius: 50%;
    color: rgba(245, 234, 214, 0.82);
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.social-link:hover {
    color: var(--glow);
    border-color: var(--glow);
    background: rgba(240, 168, 75, 0.08);
}

.footer-col-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.75rem, 0.9vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sepia-light);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    color: rgba(245, 234, 214, 0.82);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--glow);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 234, 214, 0.12);
    text-align: center;
    padding: 20px 24px;
    font-family: 'Crimson Pro', serif;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    color: rgba(245, 234, 214, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-sep {
    opacity: 0.4;
}

/* ==================================================
   Page Background (for form/content pages)
   ================================================== */

.page-bg {
    position: relative;
    flex: 1;
    background: var(--cream);
    min-height: calc(100vh - 120px);
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

/* ==================================================
   5) Shared Helpers / Buttons
   ================================================== */

.section-heading {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.section-heading.light .section-title,
.section-heading.light .section-sub {
    color: var(--cream);
}

.section-heading.light .section-sub {
    opacity: .7;
}

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--ink);
    margin-bottom: 10px;
}

.section-sub {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #4a3520;
    font-style: italic;
}

.btn-solid {
    display: inline-block;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 36px;
    background: var(--ink);
    color: var(--cream);
    border: 2px solid var(--ink);
    transition: background 0.3s, color 0.3s;
}

.btn-solid:hover {
    background: var(--ember);
    border-color: var(--ember);
}

.btn-outline {
    display: inline-block;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--cream);
}

/* ==================================================
   6) Global Responsive Rules
   ================================================== */

@media (max-width: 768px) {
    .navbar {
        top: 12px;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        justify-content: space-between;
        width: calc(100% - 20px);
    }

    .nav-left,
    .nav-right {
        min-width: 0;
    }

    .nav-center,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-inner {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 12px 0 6px;
        border-top: 1px solid rgba(245, 234, 214, 0.2);
        background: rgba(12, 8, 6, 0.75);
        border-radius: 12px;
        margin: 10px 0 4px;
        backdrop-filter: blur(12px);
        margin-top: 8px;
    }

    .nav-inner.open {
        display: flex;
    }

    .nav-search {
        width: 100%;
        justify-content: center;
        padding: 10px 24px;
    }

    .nav-primary+.nav-primary::before,
    .user-menu {
        display: none;
    }

}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

/* Import responsive (fallback); navbar.php loads it again for correct cascade order on nav pages */
@import url('responsive.css');