/* ==========================================================================
   Metro Plywood & Laminates — Design Tokens
   ========================================================================== */
:root{
  /* Brand colors — pulled from logo & marketing flyers */
  --ink:        #241610;
  --espresso:   #2E1D13;
  --espresso-2: #46301F;
  --espresso-3: #5C4029;
  --timber:     #C9975F;
  --timber-lt:  #E8CB9B;
  --gold:       #B9862B;
  --gold-lt:    #E7C371;
  --red:        #9A3226;
  --red-dark:   #7A2620;
  --cream:      #FBF4E6;
  --cream-2:    #F3E7D0;
  --white:      #FFFFFF;
  --line:       rgba(46,29,19,.14);
  --shadow:     0 20px 45px -20px rgba(46,29,19,.35);
  --shadow-sm:  0 8px 20px -12px rgba(46,29,19,.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1200px;
  --header-h: 96px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; }
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 44px;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-solid{ background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-solid:hover{ background: var(--red-dark); }

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

.btn-outline-invert{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-invert:hover{ background: var(--white); color: var(--espresso); }

.btn-gold{ background: var(--gold); color: var(--espresso); box-shadow: var(--shadow-sm); }
.btn-gold:hover{ background: var(--gold-lt); }

.btn-sm{ padding: .55rem 1.1rem; font-size: .9rem; min-height: 40px; }
.btn-lg{ padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar{
  background: var(--espresso);
  color: var(--timber-lt);
  font-size: .82rem;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .5rem;
  gap: 1rem;
}
.topbar a{ color: var(--timber-lt); }
.topbar a:hover{ color: var(--white); }
.topbar-left .dot{ margin: 0 .5rem; opacity: .5; }
.topbar-right{ display: flex; align-items: center; gap: 1rem; }
.topbar-right .gst{ opacity: .8; letter-spacing: .02em; }
.topbar-right a{ display: inline-flex; }
@media (max-width: 760px){
  .topbar{ display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251,244,230,.98);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 78px;
}
.brand{
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
}
.brand-logo{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong{
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--espresso);
  letter-spacing: .01em;
}
.brand-text small{ font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 600; }

.nav ul{ display: flex; gap: 1.9rem; }
.nav a{
  font-weight: 600;
  font-size: .95rem;
  color: var(--espresso-2);
  position: relative;
  padding: .3rem 0;
}
.nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after{ transform: scaleX(1); }

.header-cta{ display: flex; gap: .6rem; margin-left: var(--space-3); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span{
  width: 20px;
  height: 2px;
  background: var(--espresso);
  margin: 0 auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav{
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: var(--space-4) var(--space-3);
    overflow-y: auto;
  }
  .nav.open{ transform: translateX(0); }
  .nav ul{ flex-direction: column; gap: 1.4rem; font-size: 1.15rem; }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ padding-block: var(--space-6) var(--space-5); position: relative; }
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, var(--cream-2) 0%, transparent 45%),
    radial-gradient(circle at 4% 90%, var(--timber-lt) 0%, transparent 35%);
  opacity: .55;
  z-index: -1;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--space-5);
  align-items: center;
}
.eyebrow{
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
}
.hero h1{
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  margin-bottom: .55em;
}
.hero-lede{ font-size: 1.1rem; color: var(--espresso-2); max-width: 46ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.6rem; }
.hero-chips{ display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.hero-chips li{
  font-size: .85rem;
  font-weight: 600;
  color: var(--espresso);
  background: var(--white);
  border: 1px solid var(--line);
  padding: .4rem .9rem;
  border-radius: 999px;
}

.hero-media{ position: relative; }
.hero-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 15 / 9;
  object-fit: cover;
  width: 100%;
}
.hero-badge{
  position: absolute;
  left: -1.2rem;
  bottom: -1.4rem;
  background: var(--espresso);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  box-shadow: var(--shadow);
  max-width: 260px;
}
.hero-badge-num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}
.hero-badge-text{ font-size: .78rem; line-height: 1.35; color: var(--timber-lt); }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .hero-badge{ left: .8rem; bottom: -1.2rem; }
}

/* ==========================================================================
   Brand strip
   ========================================================================== */
.brands{ padding-block: var(--space-3); background: var(--espresso); }
.brands-label{
  text-align: center;
  color: var(--timber-lt);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.brands-list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1rem;
}
.brands-list li{
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: .9;
  position: relative;
  padding-right: 1.1rem;
}
.brands-list li:not(:last-child)::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Section headers (shared)
   ========================================================================== */
.section-head{ max-width: 62ch; margin-bottom: var(--space-4); }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-lede{ color: var(--espresso-2); font-size: 1.05rem; }
section{ padding-block: var(--space-6); }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.features{ background: var(--cream-2); }
.feature-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.feature-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream-2);
  color: var(--red);
  margin-bottom: 1rem;
}
.feature-card h3{ font-size: 1.08rem; margin-bottom: .4em; }
.feature-card p{ font-size: .92rem; color: var(--espresso-2); margin: 0; }

@media (max-width: 1000px){ .feature-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .feature-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Products
   ========================================================================== */
.products-banner{
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow);
}
.products-banner img{ width: 100%; height: auto; }

.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.product-card{
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.product-card img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.product-card-body{ padding: 1.1rem 1.2rem 1.3rem; }
.product-card-body h3{ font-size: 1.05rem; margin-bottom: .3em; }
.product-card-body p{ font-size: .87rem; color: var(--espresso-2); margin: 0; }

.also-available{
  margin-top: var(--space-4);
  background: var(--white);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.6rem;
  font-size: .95rem;
  color: var(--espresso-2);
}
.also-available strong{ color: var(--espresso); }

@media (max-width: 1000px){ .product-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px){ .product-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Mouldings spotlight
   ========================================================================== */
.mouldings{ background: var(--espresso); color: var(--cream); }
.mouldings-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.mouldings-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.mouldings h2{ color: var(--white); }
.mouldings p{ color: var(--timber-lt); font-size: 1.05rem; }
.mouldings .eyebrow{ color: var(--gold-lt); }

@media (max-width: 900px){
  .mouldings-inner{ grid-template-columns: 1fr; }
  .mouldings-media{ order: -1; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-inner{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--space-5);
  align-items: center;
}
.about-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3.6;
  object-fit: cover;
}
.about-copy p{ color: var(--espresso-2); font-size: 1.02rem; }
.about-list{ margin-top: 1.2rem; display: grid; gap: .8rem; }
.about-list li{
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 600;
  color: var(--espresso);
}
.about-list svg{ color: var(--red); flex-shrink: 0; margin-top: .1rem; }

@media (max-width: 900px){
  .about-inner{ grid-template-columns: 1fr; }
  .about-media{ order: -1; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.gallery-grid figure{ margin: 0; }
.gallery-grid img{
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.gallery-grid figcaption{
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--espresso-2);
  text-align: center;
}
@media (max-width: 900px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner{
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
}
.cta-banner-inner{ text-align: center; }
.cta-banner h2{ color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-banner .hero-actions{ justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{ background: var(--cream-2); }
.contact-inner{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-5);
  align-items: start;
}
.contact-form-wrap form{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.form-row{ margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label{ font-weight: 600; font-size: .88rem; color: var(--espresso); }
.form-row input, .form-row select, .form-row textarea{
  font: inherit;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  min-height: 44px;
}
.form-row textarea{ min-height: 100px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  border-color: var(--red);
  outline: none;
}
.form-note{ margin-top: .8rem; font-size: .88rem; color: var(--red-dark); font-weight: 600; min-height: 1.2em; }

.contact-info{ display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.contact-info-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
}
.contact-info-card h3{ font-size: 1.05rem; margin-bottom: .5em; }
.contact-info-card p{ color: var(--espresso-2); margin: 0 0 .8em; }
.contact-info-card a:hover{ color: var(--red); }
.map-embed{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); line-height: 0; }

@media (max-width: 900px){ .contact-inner{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Mobile sticky CTA bar
   ========================================================================== */
.mobile-cta-bar{
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 95;
  background: var(--espresso);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
}
.mobile-cta-bar{ display: none; grid-template-columns: repeat(3, 1fr); }
.mobile-cta-bar a{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  color: var(--timber-lt);
  font-size: .72rem;
  font-weight: 600;
  padding: .65rem 0 .8rem;
}
.mobile-cta-bar a:active{ color: var(--white); }
@media (max-width: 760px){
  .mobile-cta-bar{ display: grid; }
  body{ padding-bottom: 64px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: #0B0603; color: var(--timber-lt); }
.footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.footer-brand img{ border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p{ font-size: .92rem; max-width: 34ch; }
.footer-social{ display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a{
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232,203,155,.3);
  border-radius: 50%;
  color: var(--timber-lt);
  transition: background .2s ease, color .2s ease;
}
.footer-social a:hover{ background: var(--gold); color: var(--espresso); }
.footer-col h4{ color: var(--white); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
.footer-col ul{ display: grid; gap: .7rem; font-size: .92rem; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{ border-top: 1px solid rgba(232,203,155,.15); padding-block: 1.2rem; font-size: .82rem; opacity: .75; }

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

/* ==========================================================================
   Back to top
   ========================================================================== */
#backToTop{
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 80;
  box-shadow: var(--shadow-sm);
}
#backToTop.visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (max-width: 760px){ #backToTop{ bottom: 76px; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}
