/* =========================================================
   Shared site chrome: design tokens, header, footer, buttons.
   Used by the landing page and the app page via
   resources/views/partials/site-nav.blade.php and site-footer.blade.php.
   ========================================================= */

:root {
    --navy: #002B5B;
    --navy-deep: #001f42;
    --navy-ink: #00152e;
    --gold: #B7952B;
    --gold-light: #CFB04C;
    --gold-soft: #E2CB7A;
    --gold-pale: #F5EDD3;
    --paper: #FBF8F1;
    --sand: #F3EEE1;
    --white: #ffffff;
    --ink: #141A26;
    --muted: #5C6673;
    --line: rgba(0, 43, 91, 0.12);
    --wa: #25D366;

    --container: 1180px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --nav-h: 76px;
    --radius: 22px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow-lg: 0 30px 60px -24px rgba(0, 21, 46, .45);
}

html { scroll-padding-top: calc(var(--nav-h) + 8px); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 1rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 1.02rem; line-height: 1;
    text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
    white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); box-shadow: 0 12px 28px -12px rgba(183, 149, 43, .7); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(183, 149, 43, .8); }
.btn-ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.btn-sm { padding: .8rem 1.3rem; font-size: .92rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* Scroll progress */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; z-index: 100; pointer-events: none; }
.progress::after { content: ""; display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* =========================================================
   Navigation
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--nav-h); transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.nav.is-scrolled { background: rgba(0, 21, 46, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.brand-name { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--gold-light); }
.nav-links { display: flex; gap: 2rem; font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .82); }
.nav-links a { position: relative; padding: .25rem 0; color: inherit; text-decoration: none; transition: color .3s; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold-light); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy-ink); color: rgba(255, 255, 255, .62); padding: 3rem 0 2.5rem; font-size: .9rem; font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer .brand-name { font-size: 1.05rem; }
.footer-meta { margin-top: .6rem; }
.footer-meta .sig { font-family: 'Bitter', Georgia, serif; font-style: italic; color: var(--gold-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: flex-end; }
.footer a { color: inherit; text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; font-size: .82rem; color: rgba(255, 255, 255, .42); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
    .brand-name { font-size: 1.05rem; }
    .nav-links { gap: 1.1rem; font-size: .88rem; }
}
@media (max-width: 960px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
    :root { --nav-h: 66px; }
    .brand-name { font-size: 1rem; }
    .brand-mark { width: 40px; height: 40px; }
    .nav-cta { display: none; }
}
