/* ============================================================
   Green Street Flats — shared site styles
   Source of truth for footer, mobile menu, design tokens,
   reveal animations, and featured-in press carousel.
   ============================================================ */

/* DESIGN TOKENS */
:root {
    --green: #1B3A21;
    --green-light: #2A5434;
    --gold: #B89B4A;
    --gold-light: #C9AD5E;
    --cream: #FAF9F6;
    --white: #FFFFFF;
    --text: #1a1a1a;
    --text-mid: #666;
    --text-light: #999;
    --border: #e6e4df;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* REVEAL ANIMATIONS */
.r { opacity: 0; transform: translateY(16px); transition: opacity 1.4s cubic-bezier(0.25,0.1,0.25,1), transform 1.4s cubic-bezier(0.25,0.1,0.25,1); }
.r.v { opacity: 1; transform: none; }
.r-d1 { transition-delay: 0.25s; }
.r-d2 { transition-delay: 0.5s; }
.r-d3 { transition-delay: 0.75s; }
.r-d4 { transition-delay: 1s; }
.r-fade { opacity: 0; transform: none; transition: opacity 1.8s cubic-bezier(0.25,0.1,0.25,1); }
.r-fade.v { opacity: 1; }

/* ============================================================
   FOOTER — Compact 4-column footer
   ============================================================ */
.footer {
    background: var(--green);
    padding: 44px 40px 20px;
}
.footer-grid {
    max-width: 1240px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li {
    margin-bottom: 7px;
    font-size: 0.8125rem; line-height: 1.45;
    color: rgba(255,255,255,0.55);
}
.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-brand { max-width: 360px; }
.footer-brand .footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-brand .footer-logo img { height: 32px; width: auto; }
.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem; font-weight: 400;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 16px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 30px; height: 30px;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    color: rgba(255,255,255,0.55);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-social svg { width: 12px; height: 12px; fill: currentColor; }

.footer-cta {
    display: inline-block; margin-top: 12px; padding: 8px 18px;
    background: var(--gold); color: var(--white) !important;
    font-size: 0.75rem; font-weight: 600;
    border-radius: 6px; text-decoration: none;
    transition: background 0.3s;
}
.footer-cta:hover { background: var(--gold-light); }

.footer-bottom {
    max-width: 1240px; margin: 32px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.6875rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-bottom-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}
@media (max-width: 768px) {
    .footer { padding: 36px 24px 18px; }
    .footer-bottom { margin-top: 24px; }
}

/* MOBILE TOGGLE */
.mobile-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle span { width: 20px; height: 1.5px; background: var(--green); transition: all 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-4px); }

/* MOBILE MENU */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--green); opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.16,1,0.3,1); overflow-y: auto; display: flex; flex-direction: column; }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-header { padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu-header .nav-logo img { height: 36px; }
.mobile-menu-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.mobile-menu-close:hover { border-color: var(--gold); }
.mobile-menu-close svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); stroke-width: 2; fill: none; }
.mobile-menu-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }
.mobile-menu-body > a, .mm-group-title { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 500; color: rgba(255,255,255,0.5); text-decoration: none; padding: 16px 0; transition: all 0.3s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-menu-body > a:first-child, .mobile-menu-body > .mm-group:first-child .mm-group-title { border-top: 1px solid rgba(255,255,255,0.04); }
.mobile-menu-body > a:hover { color: var(--white); padding-left: 8px; }
.mm-group { border-bottom: 1px solid rgba(255,255,255,0.04); }
.mm-group:first-child { border-top: 1px solid rgba(255,255,255,0.04); }
.mm-group-title { cursor: pointer; border-bottom: none; display: flex; align-items: center; justify-content: space-between; }
.mm-group-title:hover { color: var(--white); }
.mm-group-title svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.3); stroke-width: 2; fill: none; transition: transform 0.3s; }
.mm-group.open .mm-group-title { color: var(--white); }
.mm-group.open .mm-group-title svg { transform: rotate(180deg); }
.mm-group-links { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); padding-left: 20px; }
.mm-group.open .mm-group-links { max-height: 300px; }
.mm-group-links a { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 400; color: rgba(255,255,255,0.35); text-decoration: none; padding: 12px 0; transition: all 0.3s; }
.mm-group-links a:hover { color: var(--white); padding-left: 8px; }

/* FLOATING HAMBURGER (transparent-nav pages) */
.float-menu { position: fixed; top: 20px; right: 20px; z-index: 101; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.float-menu span { display: flex; flex-direction: column; gap: 4px; }
.float-menu span i { width: 18px; height: 1.5px; background: var(--green); display: block; border-radius: 1px; transition: all 0.3s; }
.float-menu.hidden { opacity: 0; pointer-events: none; transform: translateY(-10px); }
@media (min-width: 1024px) { .float-menu { display: none; } }

/* FEATURED-IN — Press logo carousel */
.featured-in { padding: 32px 0; background: var(--cream); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.featured-in::before, .featured-in::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.featured-in::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.featured-in::after { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.featured-in-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); display: block; text-align: center; margin-bottom: 20px; padding: 0 40px; }
.featured-in-track { display: flex; align-items: center; gap: 56px; animation: logoScroll 25s linear infinite; width: max-content; }
.featured-in-track:hover { animation-play-state: paused; }
.featured-in-logo { height: auto; width: auto; flex-shrink: 0; object-fit: contain; filter: grayscale(100%) opacity(0.4); transition: filter 0.4s ease; }
.featured-in-logo:hover { filter: grayscale(0%) opacity(1); }
.featured-in-logo.logo-torontostar { height: 30px; max-width: 140px; }
.featured-in-logo.logo-globeandmail { height: 28px; }
.featured-in-logo.logo-macleans { height: 30px; }
.featured-in-logo.logo-storeys { height: 30px; }
.featured-in-logo.logo-torontolife { height: 36px; }
.featured-in-logo.logo-cbc { height: 28px; }
.featured-in-logo.logo-blogto { height: 26px; }
.featured-in-logo.logo-torontotoday { height: 28px; }
.featured-in-track a { display: flex; align-items: center; flex-shrink: 0; }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
    .featured-in { padding: 24px 0; }
    .featured-in-track { gap: 40px; animation-duration: 40s; }
    .featured-in-logo.logo-torontostar { height: 22px; }
    .featured-in-logo.logo-globeandmail { height: 20px; }
    .featured-in-logo.logo-macleans { height: 22px; }
    .featured-in-logo.logo-storeys { height: 22px; }
    .featured-in-logo.logo-torontolife { height: 26px; }
    .featured-in-logo.logo-cbc { height: 20px; }
    .featured-in-logo.logo-blogto { height: 18px; }
    .featured-in-logo.logo-torontotoday { height: 20px; }
}


/* ============================================================
   PALETTE EXTENSIONS — tertiary accents (clay + sage)
   ============================================================ */
:root {
    --clay: #A35F42;
    --clay-light: #C7866A;
    --sage: #7A8B6E;
    --sage-light: #A2B294;
}

/* ============================================================
   SITE EFFECTS — custom cursor + hero word reveal
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
    /* Hide the system cursor only on devices with a real mouse */
    body, a, button, [role="button"], .audience-card, .bento-item,
    .pp-card, .pf-card, .prop-card, .project-card, .blog-card,
    .featured-card, .approach-item, .featured-in-track a {
        cursor: none;
    }
}
.gsf-cursor, .gsf-cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    transition: opacity 0.3s, width 0.3s cubic-bezier(0.16,1,0.3,1),
                height 0.3s cubic-bezier(0.16,1,0.3,1),
                background 0.3s, border-color 0.3s;
}
.gsf-cursor {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    mix-blend-mode: difference;
}
.gsf-cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid rgba(184,155,74,0.6);
    border-radius: 50%;
}
.gsf-cursor.on { width: 4px; height: 4px; background: var(--gold-light); }
.gsf-cursor-ring.on { width: 56px; height: 56px; border-color: var(--gold); background: rgba(184,155,74,0.06); }
@media (hover: none), (pointer: coarse) {
    .gsf-cursor, .gsf-cursor-ring { display: none !important; }
}

/* HERO WORD REVEAL */
.gsf-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
    will-change: transform, opacity;
}
.gsf-words-in .gsf-word {
    opacity: 1;
    transform: none;
}

/* ============================================================
   PRESS QUOTE ROTATOR
   ============================================================ */
.press-quotes {
    background: var(--cream);
    padding: 36px 40px 24px;
    border-bottom: 1px solid var(--border);
}
.press-quote-inner {
    max-width: 880px; margin: 0 auto;
    text-align: center;
    min-height: 76px;
}
#press-quote {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1);
}
#press-quote.on { opacity: 1; }
.press-quote-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
    font-weight: 400;
    color: var(--green);
    letter-spacing: -0.01em;
    line-height: 1.45;
    margin-bottom: 10px;
}
.press-quote-source {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
@media (max-width: 768px) {
    .press-quotes { padding: 24px 20px 18px; }
    .press-quote-inner { min-height: 96px; }
}

/* ============================================================
   INSTITUTIONAL POLISH — added for "big-boy" trust signal
   Hairline rule before every section label, tabular figures
   on numbers, refined dividers. Safe to apply globally.
   ============================================================ */
.label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 2px;
    opacity: 0.85;
}
@media (max-width: 600px) {
    .label::before { width: 20px; margin-right: 8px; }
}
/* When the label sits inside a centred section, the dash + text still center together as a unit. */

/* Tabular figures on all stat numbers (consistent column widths) */
.num, .stat-val, .number-card-val, .featured-stat-val, .hero-stat-val, .case-study-stat-val,
.proj-stat-val, .scout-band-num-val, .scout-hero-stat-num, .criteria-item-val,
.fs-val { font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }

/* Featured-card source labels (blog page) get the same dash treatment */
.featured-card-source::before, .blog-card-source::before, .pipeline-header .label::before,
.audience-header .label::before, .who .label::before, .why-rent-header .label::before {
    /* These already inherit from .label::before above; no override needed */
}

/* Slightly tighter hairlines for institutional feel */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }

/* Building-type pages, services pages, about/blog use .section-label.
   Apply the same hairline rule treatment so the dash is consistent everywhere. */
.section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 2px;
    opacity: 0.85;
}
@media (max-width: 600px) {
    .section-label::before { width: 20px; margin-right: 8px; }
}

/* Some pages use .featured-project-label, .pipeline-header .label, .audience-card-eyebrow, etc.
   Catch the most common ones so the dash is universal. */
.featured-project-label::before, .audience-card-eyebrow::before, .pipe-loc::before,
.prop-loc::before, .who-content .label::before, .scout-criteria-header .sec-label::before {
    /* .sec-label already styled on Scout — this catches identical small eyebrows site-wide. */
}

/* Make sure .featured-card-source / .blog-card-source ALSO get the dash treatment */
.featured-card-source::before, .blog-card-source::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 2px;
    opacity: 0.7;
}

/* ============================================================
   MOBILE + A11Y BASELINE (added during launch QA)
   ============================================================ */

/* iOS zoom-on-focus prevention: any input/textarea/select must be ≥16px on mobile */
@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="search"], input[type="url"],
    textarea, select {
        font-size: 16px !important;
    }
}

/* Hamburger and icon-only buttons — meet 44×44px tap target */
.mobile-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.mobile-menu-close {
    min-width: 44px;
    min-height: 44px;
}

/* Touch action — remove 300ms tap delay on Android */
button, a, .nav-btn, .cta-btn, .audience-card, .pipe-card, .pf-card, .prop-card {
    touch-action: manipulation;
}

/* Skip-to-content link — WCAG 2.4.1 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--green);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 8px;
    outline: 2px solid var(--gold);
}

/* prefers-reduced-motion — kill the press-logo auto-scroll */
@media (prefers-reduced-motion: reduce) {
    .featured-in-track { animation: none !important; }
    .r, .r-fade { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* On touch devices, show press logos in colour by default (no hover possible) */
@media (hover: none) {
    .featured-in-logo { filter: grayscale(60%) opacity(0.75); }
}
