/* ============================================================
   Free State Floor Supplies LLC — Premium Wood Craft
   ============================================================ */

:root {
  /* Brand */
  --espresso: #4A2515;
  --espresso-deep: #361A0E;
  --gold: #D9A35C;
  --gold-deep: #C18A3F;
  --gold-soft: #EAD0A8;
  --cream: #F7F2EA;
  --cream-2: #F1E8DA;
  --white: #FFFFFF;
  --ink: #2C1A10;
  --muted: #7A6757;
  --line: rgba(74, 37, 21, 0.12);

  /* Type */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Space & shape */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(54, 26, 14, 0.06);
  --shadow: 0 14px 40px rgba(54, 26, 14, 0.12);
  --shadow-lg: 0 26px 70px rgba(54, 26, 14, 0.20);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { position: relative; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; color: var(--espresso); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 16px; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--espresso-deep); box-shadow: 0 10px 24px rgba(217,163,92,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(217,163,92,.5); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247,242,234,.45); }
.btn-ghost:hover { background: rgba(247,242,234,.12); border-color: var(--cream); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { transform: translateY(-3px); background: var(--espresso-deep); box-shadow: var(--shadow); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.header.scrolled {
  background: rgba(247,242,234,.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; transition: height .35s; }
.header.scrolled .brand img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .96rem; color: var(--espresso);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: inline-flex; }

/* When header sits on the dark hero (top of page) */
.header:not(.scrolled) .nav-links a { color: var(--cream); }
.header:not(.scrolled) .brand { background: rgba(247,242,234,.92); padding: 6px 12px; border-radius: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--espresso); border-radius: 2px; transition: .3s; }
.header:not(.scrolled) .burger span { background: var(--cream); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  color: var(--cream);
  background:
    linear-gradient(120deg, rgba(54,26,14,.92) 0%, rgba(74,37,21,.78) 45%, rgba(54,26,14,.55) 100%),
    url("../assets/img/hero.jpg") center/cover no-repeat;
  background-color: var(--espresso-deep);
  padding: 120px 0 80px;
}
/* Wood-grain fallback if hero.jpg is missing */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(118deg, rgba(217,163,92,.06) 0 22px, transparent 22px 60px),
    radial-gradient(1200px 600px at 80% -10%, rgba(217,163,92,.22), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero h1 {
  color: var(--cream); font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.02em; line-height: 1.04;
  margin: 22px 0 18px;
}
.hero h1 .accent { color: var(--gold); }
.hero .slogan {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold-soft);
  margin-bottom: 14px;
}
.hero p.sub { font-size: 1.15rem; color: rgba(247,242,234,.85); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247,242,234,.65); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity:.3 } 50% { opacity:1 } }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-copy p + p { margin-top: 16px; }
.about-stats { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 140px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700;
  color: var(--gold-deep); line-height: 1.1; white-space: nowrap;
}
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.about-visual {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; background: var(--espresso);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(54,26,14,.5), transparent 50%);
}
.about-visual .badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; background: var(--white); color: var(--espresso);
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); max-width: 240px;
}
.about-visual .badge strong { font-family: var(--font-display); display: block; color: var(--gold-deep); }

/* ============================================================
   Products
   ============================================================ */
.products { background: var(--cream-2); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(54,26,14,.22), transparent 55%);
}
.product-card:hover .product-photo img { transform: scale(1.07); }
.product-body { padding: 22px 24px 26px; }
.product-body h3 { margin-bottom: 8px; }
.product-body p { font-size: .94rem; color: var(--muted); }

/* ============================================================
   Suppliers
   ============================================================ */
.suppliers { background: var(--espresso); color: var(--cream); }
.suppliers h2 { color: var(--cream); }
.suppliers .eyebrow { color: var(--gold); }
.supplier-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 8px;
}
.supplier-card {
  background: var(--white); border: 1px solid rgba(247,242,234,.14); border-radius: var(--radius-sm);
  padding: 30px 26px; display: grid; place-items: center; min-height: 150px; box-shadow: var(--shadow-sm);
}
.supplier-card img {
  max-height: 90px; max-width: 100%; width: auto; object-fit: contain;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background:
    linear-gradient(100deg, var(--espresso-deep), var(--espresso)),
    radial-gradient(600px 300px at 90% 0, rgba(217,163,92,.25), transparent);
  color: var(--cream); padding: 70px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--cream); max-width: 620px; }
.cta-inner p { color: rgba(247,242,234,.8); margin-top: 6px; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; }
.gallery-item {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); aspect-ratio: 1/1; background: var(--espresso);
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(54,26,14,.28), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* ============================================================
   Locations
   ============================================================ */
.locations { background: var(--cream-2); }
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.location-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.location-card .lc-body { padding: 26px 26px 22px; flex: 1; }
.location-card .tag {
  display: inline-block; font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.location-card .tag.main { background: var(--gold); color: var(--espresso-deep); }
.location-card .tag.sat { background: var(--gold-soft); color: var(--espresso-deep); }
.location-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.location-card address { font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.location-card .lc-phone {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; color: var(--espresso); font-size: .96rem;
}
.location-card .lc-phone:hover { color: var(--gold-deep); }
.location-card .lc-phone svg { width: 16px; height: 16px; }
.location-card iframe { width: 100%; height: 160px; border: 0; display: block; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--espresso); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; background: var(--cream); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(217,163,92,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; }
.contact-form .btn[disabled] { opacity: .65; cursor: progress; }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.2em; text-align: center; font-family: var(--font-display); }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #b3261e; }

.info-block { margin-bottom: 26px; display: flex; gap: 16px; align-items: flex-start; }
.info-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--espresso-deep);
}
.info-ico svg { width: 22px; height: 22px; }
.info-block h4 { font-family: var(--font-display); font-size: 1rem; color: var(--espresso); margin-bottom: 2px; }
.info-block p, .info-block a { color: var(--muted); font-size: .96rem; }
.info-block a:hover { color: var(--gold-deep); }
.placeholder-tag { display: inline-block; font-size: .72rem; background: var(--gold-soft); color: var(--espresso-deep); padding: 1px 8px; border-radius: 6px; margin-left: 6px; font-family: var(--font-display); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--espresso); color: var(--cream); transition: transform .3s var(--ease), background .3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--gold); color: var(--espresso-deep); }
.socials svg { width: 20px; height: 20px; }
.map-embed { margin-top: 22px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--espresso-deep); color: rgba(247,242,234,.75); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(247,242,234,.12); }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-display); color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: .92rem; margin-bottom: 9px; transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 16/10; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: var(--cream);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--espresso) !important; font-size: 1.2rem; }
  .header:not(.scrolled) .brand { background: rgba(247,242,234,.92); }
  .nav-cta { display: none; }
  .burger { display: flex; z-index: 95; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--espresso); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--espresso); }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
