/* ===== Floorstar International — Industrial Luxury System ===== */

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

:root {
    --ink: #0D0E0B;
    --panel: #16170F;
    --panel-hi: #1C1E14;
    --cream: #EDE9DE;
    --muted: #9C9788;
    --gold: #C0973E;
    --gold-hi: #E4C567;
    --line: rgba(237, 233, 222, 0.09);
    --serif: 'Cormorant Garamond', 'Iowan Old Style', serif;
    --cond: 'Barlow Condensed', sans-serif;
    --sans: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--cream);
}

em { font-style: italic; color: var(--gold); font-weight: 500; }

p { color: var(--muted); }

.label {
    font-family: var(--cond);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.label::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 768px) { .wrap { padding: 0 1.4rem; } }

/* ===== Nav ===== */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.6rem 3rem;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    background: rgba(13, 14, 11, 0.94);
    backdrop-filter: blur(14px);
    padding: 1.1rem 3rem;
    border-bottom-color: var(--line);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.brand .sub { font-family: var(--cond); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2.4rem; list-style: none; }
.nav-links a {
    font-family: var(--cond);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--cream); }

.nav-cta {
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    padding: 0.6rem 1.3rem;
    transition: all 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.08);
    animation: heroZoom 18s ease-out forwards;
    filter: saturate(0.9);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,14,11,0.55) 0%, rgba(13,14,11,0.5) 40%, rgba(13,14,11,0.97) 100%);
}

.hero-content {
    position: relative; z-index: 2;
    width: 100%;
    padding: 0 3rem 4rem;
}

.hero-content .label { margin-bottom: 1.6rem; }

.hero-content h1 {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 0.98;
    margin-bottom: 1.6rem;
    animation: fadeUp 1s ease-out 0.2s both;
}
.hero-content h1 .line2 { display: block; }

.hero-content > p {
    max-width: 540px;
    color: rgba(237,233,222,0.75);
    font-size: 1.05rem;
    margin-bottom: 2.4rem;
    animation: fadeUp 1s ease-out 0.4s both;
}

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

.hero-btns { display: flex; gap: 1rem; margin-bottom: 3.5rem; animation: fadeUp 1s ease-out 0.55s both; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--cond);
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 1rem 1.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn-line { border-color: rgba(237,233,222,0.35); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); background: rgba(237,233,222,0.06); }

.stat-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    animation: fadeUp 1s ease-out 0.7s both;
}
.stat-strip .stat { padding: 1.4rem 1.5rem 0; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); }
.stat-label { font-family: var(--cond); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

@media (max-width: 768px) {
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip .stat:nth-child(2) { border-right: none; }
}

/* ===== Section shells ===== */
section { position: relative; }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 2rem; margin-bottom: 4.5rem; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.05; margin-top: 1rem; max-width: 600px; }
.section-head .lede { max-width: 380px; font-size: 1rem; }

/* ===== Pillars (What We Do) ===== */
.pillars { padding: 8rem 0; }

.pillar-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4.5rem; align-items: center;
    padding: 5rem 0;
    border-top: 1px solid var(--line);
}
.pillar-row:first-of-type { border-top: none; padding-top: 0; }
.pillar-row.reverse .pillar-media { order: 2; }
.pillar-row.reverse .pillar-copy { order: 1; }

.pillar-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.pillar-row:hover .pillar-media img { transform: scale(1.05); }

.pillar-index {
    position: absolute; top: 0; left: 0;
    font-family: var(--serif);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.9;
    background: var(--ink);
    padding: 0.3rem 1rem 0.6rem 0;
}

.pillar-copy .label { margin-bottom: 1.2rem; }
.pillar-copy h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 1.1rem; }
.pillar-copy > p { max-width: 480px; margin-bottom: 1.6rem; }

.pillar-list { list-style: none; margin-bottom: 1.8rem; }
.pillar-list li {
    display: flex; gap: 0.7rem; align-items: flex-start;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: rgba(237,233,222,0.8);
    border-top: 1px solid var(--line);
}
.pillar-list li:first-child { border-top: none; }
.pillar-list li::before { content: '—'; color: var(--gold); flex-shrink: 0; }

.text-link {
    font-family: var(--cond);
    font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: gap 0.3s;
}
.text-link:hover { gap: 0.9rem; color: var(--gold-hi); border-color: var(--gold-hi); }

@media (max-width: 860px) {
    .pillar-row, .pillar-row.reverse { grid-template-columns: 1fr; gap: 2.2rem; }
    .pillar-row.reverse .pillar-media, .pillar-row.reverse .pillar-copy { order: unset; }
    .pillar-index { font-size: 3.5rem; }
}

/* ===== Products ===== */
.products { padding: 8rem 0; background: var(--panel); }

.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}

.product-card {
    background: var(--panel-hi);
    border: 1px solid var(--line);
    transition: border-color 0.3s, transform 0.3s;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-4px); }

.product-media { aspect-ratio: 1; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover .product-media img { transform: scale(1.06); }

.product-body { padding: 1.8rem; }

.product-tag {
    font-family: var(--cond);
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
    display: block;
}

.product-body h4 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.product-body > p { font-size: 0.88rem; margin-bottom: 1rem; }

.product-cats {
    font-family: var(--cond);
    font-size: 0.72rem; letter-spacing: 0.03em;
    color: var(--muted);
    margin-bottom: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

.custom-band {
    margin-top: 2.5rem;
    border: 1px dashed rgba(192,151,62,0.4);
    padding: 2.2rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.custom-band h4 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.custom-band p { font-size: 0.9rem; margin: 0; }

/* ===== Why Floorstar ===== */
.why { padding: 8rem 0; }

.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}

.why-card { background: var(--ink); padding: 2.8rem 2.4rem; transition: background 0.4s; }
.why-card:hover { background: var(--panel); }

.why-card svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.3; margin-bottom: 1.4rem; }
.why-card h4 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.why-card p { font-size: 0.9rem; }

@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== CTA band ===== */
.cta-band {
    padding: 7rem 3rem;
    text-align: center;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cta-band .label { margin-bottom: 1.6rem; justify-content: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 780px; margin: 0 auto 2.2rem; line-height: 1.25; }

/* ===== Contact ===== */
.contact { padding: 8rem 0; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 5rem; }

.contact-info h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 1rem 0 1.4rem; }
.contact-info > p { max-width: 420px; margin-bottom: 2.6rem; }

.contact-meta { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-meta .item { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.contact-meta .item:first-child { border-top: none; padding-top: 0; }
.contact-meta h5 { font-family: var(--cond); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.contact-meta p { color: var(--cream); font-size: 0.98rem; margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.field { margin-bottom: 1.6rem; }
.field label {
    display: block;
    font-family: var(--cond);
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 0.6rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s;
}
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 100px; }

.form-status {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #8FBF8F; }
.form-status.err { color: #D98A7A; }

.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
footer { background: var(--panel); border-top: 1px solid var(--line); padding: 5rem 0 0; }

.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}
.footer-brand .name { font-family: var(--serif); font-size: 1.7rem; }
.footer-brand .sub { font-family: var(--cond); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.2rem; display: block; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; margin-bottom: 1.6rem; }

.footer-col h5 { font-family: var(--cond); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col p { font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.6rem 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
    font-size: 0.8rem; color: var(--muted);
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
