/* ===========================================================
   BPK HOUSING — SHARED STYLESHEET
   Built by BridgePoint Growth, LLC
   Design system: bpkhousing.com — Navy + Tan on white body, black header
   =========================================================== */

:root {
    /* Brand Palette — matches bpkhousing.com */
    --navy-deep: #1E3045;
    --navy: #2b5672;
    --navy-mid: #3B608A;
    --blue: #4169E1;
    --blue-bright: #6B8AFF;
    --blue-glow: #4169E1;
    --blue-faded: #f5f5f3;
    --blue-mist: #fafafa;

    /* Neutrals */
    --paper: #0e1219;
    --bg: #1a2027;
    --ink: #f0f0f0;
    --ink-soft: #c4c4c4;
    --muted: #a0a0a0;
    --muted-light: #94a3b8;
    --line: rgba(255,255,255,0.1);
    --line-soft: rgba(255,255,255,0.05);

    /* Accents — aliased to royal blue for full-site brand consistency */
    --gold: #4169E1;             /* aliased to royal blue (was military tan) */
    --gold-light: #6B8AFF;       /* aliased to light royal blue (was tan-light) */
    --chrome: #B8B8B8;
    --chrome-light: #E0E0E0;
    --rust: #B5491E;
    --green: #059669;

    /* System */
    --shadow-sm: 0 2px 8px rgba(15, 44, 87, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 44, 87, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 44, 87, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.container-narrow {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

/* ===========================================================
   TYPOGRAPHY
   =========================================================== */

h1, h2, h3, h4, .display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--ink);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.03em;
    font-feature-settings: 'cv11';
}

em.accent {
    font-style: italic;
    color: var(--blue);
    font-family: 'Fraunces', Georgia, serif;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--blue);
}

.eyebrow.light { color: var(--blue-glow); }
.eyebrow.light::before { background: var(--blue-glow); }

/* ===========================================================
   TOP UTILITY BAR
   =========================================================== */

.top-bar {
    background: var(--navy-deep);
    color: var(--paper);
    font-size: 0.78rem;
    padding: 0.55rem 0;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left, .top-bar-right { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.top-bar a { color: var(--paper); }
.top-bar a:hover { color: var(--blue-glow); }

.top-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.top-bar-badge::before {
    content: '●';
    color: var(--gold-light);
    font-size: 0.6rem;
}

/* ===========================================================
   HEADER
   =========================================================== */

header.site {
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--navy);
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--navy);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 3px;
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--gold);
}

.logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.45rem;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.logo-text em {
    font-style: italic;
    color: var(--blue);
}

nav.primary { display: flex; gap: 1.85rem; align-items: center; }

nav.primary a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
}

nav.primary a:hover, nav.primary a.active { color: #ffffff; }

nav.primary a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--blue);
    color: var(--paper);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--paper);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-outline-light {
    background: transparent;
    color: var(--paper);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: var(--paper);
    color: var(--navy);
    border-color: var(--paper);
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: transparent;
    text-transform: none;
    letter-spacing: normal;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}
.btn-ghost:hover { color: var(--navy); }
.btn-ghost::after { content: ' →'; transition: transform .2s ease; }
.btn-ghost:hover::after { transform: translateX(3px); }

.btn-large { padding: 0.95rem 1.85rem; font-size: 0.95rem; }

/* ===========================================================
   HERO
   =========================================================== */

.hero {
    background: var(--navy-deep);
    color: var(--paper);
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(37, 99, 172, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--blue-glow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--blue-glow);
}

h1.hero-headline {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    color: var(--paper);
    line-height: 1.02;
    margin-bottom: 1.5rem;
    max-width: 980px;
    font-weight: 500;
}
h1.hero-headline em {
    font-style: italic;
    color: var(--blue-glow);
}

.hero-subhead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.78);
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.55;
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ===========================================================
   TRUST BAR
   =========================================================== */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.trust-item { min-width: 0; }

.trust-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.trust-value {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    color: var(--paper);
    font-weight: 500;
    line-height: 1.3;
}
.trust-value.italic { font-style: italic; }
.trust-value.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-style: normal;
}

.trust-bar-light { border-color: var(--line); }
.trust-bar-light .trust-label { color: var(--muted); }
.trust-bar-light .trust-value { color: var(--ink); }

/* ===========================================================
   GENERAL SECTIONS
   =========================================================== */

section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

section.compact { padding: clamp(3rem, 5vw, 4.5rem) 0; }

section.dark {
    background: var(--navy-deep);
    color: var(--paper);
}
section.dark h2, section.dark h3 { color: var(--paper); }

section.tinted { background: var(--bg); }
section.blue-tint { background: var(--blue-mist); }

h2.section {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.25rem;
    line-height: 1.05;
    max-width: 760px;
    font-weight: 500;
}
h2.section em {
    font-style: italic;
    color: var(--blue);
}

section.dark h2.section em { color: var(--blue-glow); }

.section-lede {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    color: var(--ink-soft);
    max-width: 680px;
    line-height: 1.55;
    margin-bottom: 2.5rem;
}
section.dark .section-lede { color: rgba(255,255,255,0.75); }

p.body {
    font-size: 1.02rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 1rem;
    max-width: 720px;
}
p.body strong { color: var(--ink); font-weight: 600; }
section.dark p.body { color: rgba(255,255,255,0.8); }
section.dark p.body strong { color: var(--paper); }

/* ===========================================================
   CARDS / GRIDS
   =========================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    padding: 2rem 1.85rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    position: relative;
}

.card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--blue);
    margin-bottom: 1.25rem;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1.15;
    color: var(--ink);
    font-weight: 500;
}

.card:hover h3 { color: var(--blue); }

.card-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.card-link::after { content: '→'; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(3px); }

/* Dark variant card */
.card-dark {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: var(--paper);
}
.card-dark h3 { color: var(--paper); }
.card-dark .card-desc { color: rgba(255,255,255,0.7); }
.card-dark:hover { border-color: var(--blue-glow); color: var(--paper); }
.card-dark:hover h3 { color: var(--blue-glow); }

/* ===========================================================
   PROJECTS LIST (DARK)
   =========================================================== */

.projects-list {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-row {
    display: grid;
    grid-template-columns: 60px 2fr 1.6fr 1fr;
    gap: 1.5rem;
    padding: 1.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: baseline;
    transition: padding 0.3s ease, background 0.3s ease;
}

.project-row:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.06), transparent);
}

.project-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.project-name {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--paper);
    font-weight: 500;
}
.project-name em {
    font-style: italic;
    color: var(--blue-glow);
}

.project-detail {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.project-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: right;
}

@media (max-width: 860px) {
    .project-row {
        grid-template-columns: 50px 1fr;
    }
    .project-detail, .project-meta {
        grid-column: 2;
        text-align: left;
    }
}

/* ===========================================================
   FAQ
   =========================================================== */

.faq-list {
    margin-top: 2.5rem;
    max-width: 880px;
}

.faq-item {
    border-top: 1px solid var(--line);
    padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
    cursor: pointer;
    padding: 1.5rem 0;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }

.faq-item summary::after {
    content: '+';
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--blue); }

.faq-answer {
    padding: 0 0 1.75rem;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 760px;
}

/* ===========================================================
   CTA STRIP
   =========================================================== */

.cta-strip {
    background: var(--navy-deep);
    color: var(--paper);
    text-align: center;
    padding: clamp(4rem, 7vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.cta-strip h2 {
    font-size: clamp(1.85rem, 4.5vw, 3.2rem);
    color: var(--paper);
    margin: 0 auto 1.25rem;
    max-width: 880px;
    font-weight: 500;
}
.cta-strip h2 em {
    font-style: italic;
    color: var(--blue-glow);
}

.cta-strip p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.55;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================================
   FOOTER
   =========================================================== */

footer.site {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.6);
    padding: clamp(3.5rem, 6vw, 5rem) 0 1.5rem;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

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

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-text { color: var(--paper); }
.footer-brand .logo-text em { color: var(--blue-glow); }

.footer-tagline {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-license {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    line-height: 1.6;
}
.footer-license a { color: var(--blue-glow); }

h4.footer-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

ul.footer-links { list-style: none; }
ul.footer-links li { margin-bottom: 0.55rem; }
ul.footer-links a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease;
    font-size: 0.92rem;
}
ul.footer-links a:hover { color: var(--blue-glow); }

.footer-credentials {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cred-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.cred-badge::before {
    content: '★';
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ===========================================================
   PAGE HEADERS (for non-home pages)
   =========================================================== */

.page-hero {
    background: var(--navy-deep);
    color: var(--paper);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(37, 99, 172, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.breadcrumbs a { color: rgba(255,255,255,0.55); }
.breadcrumbs a:hover { color: var(--blue-glow); }

h1.page-headline {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    color: var(--paper);
    line-height: 1.04;
    margin-bottom: 1.25rem;
    max-width: 920px;
    font-weight: 500;
}
h1.page-headline em {
    font-style: italic;
    color: var(--blue-glow);
}

.page-sub {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: rgba(255,255,255,0.78);
    max-width: 680px;
    line-height: 1.55;
}

/* ===========================================================
   CONTACT FORM
   =========================================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-row { margin-bottom: 1.25rem; }

label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 172, 0.12);
}

textarea { min-height: 130px; resize: vertical; }

/* ===========================================================
   RESPONSIVE TWEAKS
   =========================================================== */

@media (max-width: 860px) {
    nav.primary { display: none; }
    .nav-row { gap: 1rem; }
    .top-bar-left, .top-bar-right { gap: 1rem; }
}

/* ===========================================================
   ANIMATIONS
   =========================================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow,
h1.hero-headline,
.hero-subhead,
.hero-cta-row,
.trust-bar,
h1.page-headline,
.page-sub,
.breadcrumbs {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.breadcrumbs { animation-delay: 0.05s; }
.hero-eyebrow { animation-delay: 0.1s; }
h1.hero-headline, h1.page-headline { animation-delay: 0.2s; }
.hero-subhead, .page-sub { animation-delay: 0.35s; }
.hero-cta-row { animation-delay: 0.5s; }
.trust-bar { animation-delay: 0.65s; }

/* ===========================================================
   TEAM / LEADERSHIP
   =========================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.team-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    padding: 2rem 1.85rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    text-align: center;
}

.team-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--paper);
    overflow: hidden;
    background-image: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-weight: 500;
    font-family: 'Fraunces', serif;
    line-height: 1.2;
}

.team-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-bio {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===========================================================
   FLOORPLAN CATALOG
   =========================================================== */

.catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.5rem 0 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.filter-btn {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 0.45rem 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--blue-mist);
    border-color: var(--blue);
    color: var(--blue);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--paper);
}

.filter-btn .count {
    color: var(--muted);
    font-size: 0.65rem;
    margin-left: 0.4rem;
}

.filter-btn.active .count {
    color: rgba(255,255,255,0.6);
}

/* Featured products (with real images) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.product-featured {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--ink);
    display: block;
}

.product-featured:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.product-featured-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}

.product-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-featured:hover .product-featured-img img {
    transform: scale(1.04);
}

.product-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(8, 21, 44, 0.92);
    color: var(--paper);
    padding: 0.35rem 0.7rem;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.product-featured-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.product-featured-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-featured h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
    line-height: 1.15;
    font-weight: 500;
}

.product-featured-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.product-featured-desc {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.product-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: var(--blue-mist);
    border-radius: 4px;
}

.product-spec {
    text-align: center;
}

.product-spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.product-spec-value {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
}

.product-features-list {
    list-style: none;
    margin: 1rem 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.product-features-list li {
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding-left: 1rem;
    position: relative;
    line-height: 1.45;
}

.product-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.85rem;
}

.product-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.product-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.product-featured:hover .product-link::after {
    transform: translateX(3px);
}

/* Catalog cards (placeholder visuals) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 3rem;
}

.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.product-card-visual {
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.product-card-icon {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.85);
    z-index: 1;
    line-height: 1;
}

.product-card-cat-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.96);
    color: var(--navy);
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.product-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
    line-height: 1.2;
    font-weight: 500;
}

.product-card-sub {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex: 1;
}

.product-mini-specs {
    display: flex;
    gap: 0.85rem;
    margin: 0.5rem 0 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.mini-spec {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mini-spec strong {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.78rem;
}

.product-card-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: auto;
}

.product-card-link::after {
    content: ' →';
    transition: transform 0.2s ease;
    display: inline-block;
}

.product-card:hover .product-card-link::after {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .product-spec-grid { grid-template-columns: repeat(2, 1fr); }
    .product-features-list { grid-template-columns: 1fr; }
}

/* === ENHANCED CARD HOVER INTERACTIONS — added per Bethany feedback === */
.card,
.team-card,
.product-featured,
.card-dark {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s ease,
                background 0.2s ease;
}
.card:hover,
.team-card:hover,
.product-featured:hover,
.card-dark:hover {
    transform: translateY(-6px) !important;
    border-color: var(--blue) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45),
                0 0 0 1px var(--blue),
                0 6px 24px rgba(65, 105, 225, 0.22) !important;
}

@media (prefers-reduced-motion: reduce) {
    .card, .team-card, .product-featured, .card-dark {
        transition: none !important;
        transform: none !important;
    }
}
