/* ============================================================
   BRAJOLA CRAFTS — Site Chrome (Header, Footer, Shared Utilities)
   Fresh design system — light, minimal, Inter only.
   ============================================================ */

:root {
    --bg: #f7f7f4;
    --white: #ffffff;
    --ink: #111111;
    --muted: #73736d;

    --line: #deded8;
    --soft: #eeeeea;

    --dark: #111111;
    --dark-2: #1b1b1b;

    --accent: #dfff48;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --max: 1240px;

    --ease: cubic-bezier(.2,.8,.2,1);
}

/* --- Shared Container / Section Utilities --- */
.container {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
}

/* Grid/flex children default to min-width:auto, which lets wide inner
   content (horizontal scroller strips, long unbroken strings) stretch the
   whole page on small screens. Allow the common layout wrappers to shrink. */
.contact-layout > *, .faq-layout > *, .faq-side > *,
.legal-layout > *, .brand-layout > *, .article-layout > *,
.problem-layout > *, .hero-grid > * { min-width: 0; }
.section { padding: 88px 0; }
.section-label {
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.section-title {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(42px, 12vw, 78px);
    line-height: .91;
    letter-spacing: -.065em;
}
.section-copy {
    margin-top: 20px;
    max-width: 580px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    transition: transform .25s var(--ease), background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: white; }
.btn-light { background: white; border: 1px solid var(--line); }
.btn-accent { background: var(--accent); color: var(--ink); }

/* --- Header (floating pill) --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 14px;
    background: transparent;
    color: var(--ink);
}
.nav {
    /* .nav is also .container, so width + horizontal centring come from there */
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 10px 0 22px;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(17,17,17,.09), 0 2px 8px rgba(17,17,17,.05);
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-scrolled .nav {
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 40px rgba(17,17,17,.13), 0 2px 8px rgba(17,17,17,.06);
}
/* give the menu button room off the pill's rounded end */
@media (max-width: 999px) {
    .nav { padding: 0 16px 0 20px; }
}
.logo {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.065em;
    color: var(--ink);
}
.nav-links { display: none; }
.nav-links a { color: #555; }
.header-action { display: none; }
.menu-button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    font-size: 18px;
    color: var(--ink);
    position: relative;
}
.menu-button__bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    position: relative;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-button__bar::before,
.menu-button__bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-button__bar::before { top: -5px; }
.menu-button__bar::after { top: 5px; }
.menu-button.is-active .menu-button__bar { background: transparent; }
.menu-button.is-active .menu-button__bar::before { top: 0; transform: rotate(45deg); }
.menu-button.is-active .menu-button__bar::after { top: 0; transform: rotate(-45deg); }

/* --- Mobile Nav Panel --- */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,.4);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.mobile-nav.is-open .mobile-nav__overlay { opacity: 1; }
.mobile-nav__inner {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: var(--bg);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__inner { transform: translateX(0); }
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}
.mobile-nav__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: white;
    position: relative;
}
.mobile-nav__close span {
    position: absolute;
    left: 50%; top: 50%;
    width: 14px; height: 1.5px;
    background: var(--ink);
    transform-origin: center;
}
.mobile-nav__close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.mobile-nav__close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }
.mobile-nav__links { margin-top: 32px; display: flex; flex-direction: column; }
.mobile-nav__links .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.03em;
    color: var(--ink);
}
.mobile-nav__footer { margin-top: auto; padding-top: 24px; }
.mobile-nav__footer .btn { width: 100%; }

@media (min-width: 1000px) {
    .container { width: min(calc(100% - 80px), var(--max)); }
    .nav-links {
        display: flex;
        gap: 30px;
        margin-left: auto;
        margin-right: 30px;
        font-size: 13px;
    }
    .header-action { display: inline-flex; }
    .menu-button { display: none; }
}
@media (min-width: 700px) and (max-width: 999px) {
    .container { width: min(calc(100% - 50px), var(--max)); }
}

/* --- Footer --- */
.footer {
    padding: 50px 0 35px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.footer-logo {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.06em;
}
.footer-description {
    max-width: 320px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 13px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    margin-top: 40px;
}
@media (min-width: 620px) {
    .footer-links { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.footer-column h4 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.footer-column a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}
.footer-bottom {
    margin-top: 45px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}
@media (min-width: 1000px) {
    .footer-links {
        grid-template-columns: repeat(3,1fr);
        max-width: 600px;
        margin-left: auto;
        margin-top: -45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header, .menu-button, .menu-button__bar, .mobile-nav, .mobile-nav__inner, .mobile-nav__overlay, .btn {
        transition: none !important;
    }
}
