/* styles.css - shared styles for every page (tokens, base, header, buttons, footer).
   Page-specific CSS stays inline in each page. */

/* ── Tokens ── */
:root {
    /* Brand */
    --orange:       #FF4713;
    --orange-hover: #E63D0E;
    --orange-text:  #FF4713;
    --orange-btn:   #FF4713;
    --orange-btn-hover: #E63D0E;
    --ink:          #1A1F24;
    --muted:        #5B646D;
    --line:         #E8EAEC;
    --soft:         #F6F7F8;
    --white:        #FFFFFF;
    --font-head:    'Barlow Condensed', 'Barlow', sans-serif;

    /* Legacy aliases still used by inner pages */
    --text-dark:  #1A1F24;
    --text-light: #5B646D;
    --border:     #E8EAEC;

    /* Dark-section tokens (CTA blocks, footer, inner dark heroes) */
    --dark:       #1a1f24;
    --dark2:      #22282e;
    --dark3:      #2c3339;
    --smoke:      #e4e5e8;
    --text-muted: #8a9099;
    --font-disp:  'Barlow Condensed', sans-serif;
    --font-body:  'Barlow', sans-serif;

    /* Glass surfaces */
    --glass-tint:    rgba(18,20,24,0.62);
    --glass-border:  rgba(255,255,255,0.14);
    --glass-blur-lg: 20px;
    --glass-blur-md: 14px;
    --glass-blur-sm: 8px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 0.2s;
    --dur-base: 0.4s;
    --dur-slow: 0.55s;
    --reveal-distance: 32px;
}

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-x: clip; font-family: var(--font-body); line-height: 1.6; color: var(--ink); background-color: var(--white); font-size: 17px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.3px; line-height: 1.05; }
img { max-width: 100%; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── Header: full-width bar ── */
header#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
header#header .container { max-width: 1180px; }
header#header nav { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; position: relative; z-index: 1001; }
.logo img { height: 34px; width: auto; display: block; }

.nav-menu { display: flex; list-style: none; gap: 32px; align-items: center; position: relative; z-index: 1000; }
.nav-menu a { color: var(--ink); text-decoration: none; font-family: var(--font-body); font-size: 17px; font-weight: 500; transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--orange); }
.nav-menu a:focus-visible, .logo a:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; z-index: 1001; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--orange); z-index: 10000; transition: width .1s linear; pointer-events: none; display: none; }

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 24px 20px; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(26,31,36,.08);
    }
    .nav-menu.open { display: flex; }
    .nav-menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
    .nav-menu li:last-child { margin-top: 16px; }
    .nav-menu .btn { display: block; text-align: center; padding: 11px 18px; font-size: 17px; }
    #scroll-progress { display: block; }
    .container { padding: 0 24px; }
}

/* ── Buttons ── */
.btn {
    display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.2px;
    font-weight: 700; font-size: 17px; padding: 12px 24px; border-radius: 10px;
    background: var(--orange-btn); color: #fff; text-decoration: none; border: 0; cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-btn-hover); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
header#header .btn { padding: 9px 18px; font-size: 16px; letter-spacing: 1px; border-radius: 8px; color: #fff; }
header#header .btn:hover { color: #fff; }

/* Legacy buttons used on dark inner pages */
.btn-primary { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 0.85rem 1.8rem; border-radius: 10px; text-decoration: none; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary-outline { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); padding: 0.85rem 1.8rem; border-radius: 10px; text-decoration: none; transition: border-color 0.2s; }
.btn-secondary-outline:hover { border-color: #fff; }
.btn-dark { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--dark); padding: 0.85rem 1.8rem; border-radius: 10px; text-decoration: none; transition: background 0.2s; }
.btn-dark:hover { background: var(--orange); }
.arrow-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Scroll reveal (IntersectionObserver lives in footer.php) ── */
.reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.reveal-stagger > * { transition-delay: calc(var(--stagger-i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; animation: none !important; }
}

/* ── Footer (dark) ── */
footer { position: relative; background: #12161A; color: #B6BDC4; padding: 3.5rem 0 0; font-family: var(--font-body); }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--orange), rgba(255,71,19,0) 60%); }
footer .container { max-width: 1180px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { display: block; margin-bottom: 1rem; text-decoration: none; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-desc { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; max-width: 320px; }
.footer-col h5 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.95rem; color: #B6BDC4; text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-address { font-size: 0.9rem; line-height: 1.6; color: #8a9099; margin-top: 0.9rem; }
.footer-bar { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; padding: 1.5rem 0 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bar p { font-size: 0.85rem; }
.footer-legal { font-size: 0.8rem; color: #8a9099; }
.footer-social { display: flex; gap: 0.6rem; align-items: center; }
.footer-social a { color: #B6BDC4; display: flex; align-items: center; padding: 6px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; transition: color 0.2s, border-color 0.2s; }
.footer-social a:hover { color: #fff; border-color: #fff; }
footer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) {
    footer { padding: 2.75rem 0 0; }
    footer .container { padding: 0 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem; }
    .footer-bar { padding: 1.25rem 0 1.5rem; }
}

/* ── Shared page pieces (home, contact and the pages to come) ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; font-size: 15px; color: var(--orange-text); }
.cta .eyebrow { color: var(--orange); }
.head { max-width: 640px; margin-bottom: 48px; }
.head h2 { font-size: clamp(30px, 3.4vw, 40px); margin-top: 10px; }
.head p { color: var(--muted); margin-top: 14px; }
.soft { background: var(--soft); }
