/* =========================================================
   STRUTTURA BUILDING MATERIALS TRADING FZE LLC
   Wilshire build — Visual Template T01 "Editorial Grid"
   Palette derived from client logo (oxblood maroon)
   ========================================================= */

/* ---------------------------------------------------------
   1. ROOT TOKENS
   --------------------------------------------------------- */
:root {
  /* Brand — from logo */
  --primary-color: #4e1d25;
  --primary-light: #7c3542;
  --secondary-color: #2a1013;
  --secondary-light: #46222a;
  --accent-color: #8e2c39;
  --accent-dark: #6e202b;

  /* Neutrals */
  --ink: #16181a;
  --ink-soft: #55595e;
  --line: #e2e2df;
  --band: #f4f4f2;
  --white: #ffffff;

  /* T01 template tokens */
  --radius: 0px;
  --btn-radius: 2px;
  --shadow: none;
  --section-pad: 110px;
  --container-max: 1200px;
  --grid-gap: 2rem;
  --h1-size: clamp(2.2rem, 4.6vw, 3.65rem);
  --h2-size: clamp(1.7rem, 3vw, 2.2rem);
  --body-lh: 1.8;
  --card-pad: 0px;
  --text-cap: 560px;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: var(--body-lh);
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); }

a { text-decoration: none; transition: color .25s ease; }

img { max-width: 100%; }

.container { max-width: var(--container-max); }

.section-padding { padding: var(--section-pad) 0; }

.bg-light-soft { background: var(--band); }

/* Section tag — D1: short accent dash + uppercase micro caps */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent-color);
  flex: 0 0 26px;
}
.text-center .section-tag { justify-content: center; }

.section-title {
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 20px;
}

.text-cap { max-width: var(--text-cap); }

/* ---------------------------------------------------------
   3. BUTTONS — sharp, uppercase, arrow glyph
   --------------------------------------------------------- */
.btn-brand,
.btn-brand-outline,
.btn-brand-secondary {
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  text-transform: lowercase;
}

.btn-brand { background: var(--accent-color); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--accent-dark); color: #fff; }
.btn-brand::after { content: "\2192"; font-size: 1rem; line-height: 1; transform: translateY(-1px); }

.btn-brand-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-brand-outline:hover, .btn-brand-outline:focus { background: #fff; color: var(--ink); border-color: #fff; }

.btn-brand-secondary { background: var(--primary-color); color: #fff; }
.btn-brand-secondary:hover, .btn-brand-secondary:focus { background: var(--secondary-color); color: #fff; }

.btn-lg { padding: 16px 38px; font-size: 0.8rem; }

/* ---------------------------------------------------------
   4. TOP BAR — accent-filled, white text
   --------------------------------------------------------- */
.top-bar {
  background: var(--primary-color);
  color: rgba(255,255,255,.88);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 10px 0;
}
.top-bar a { color: rgba(255,255,255,.88); }
.top-bar a:hover { color: #fff; }
.top-bar i { margin-right: 8px; color: rgba(255,255,255,.72); }

/* ---------------------------------------------------------
   5. NAVBAR
   --------------------------------------------------------- */
.main-navbar {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.main-navbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,.06); }

.main-navbar .navbar-brand { padding: 16px 0; }
.main-navbar .navbar-brand img { height: 44px; width: auto; display: block; }

.main-navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 28px 16px !important;
  position: relative;
}
.main-navbar .nav-link:hover { color: var(--accent-color); }
.main-navbar .nav-link.active { color: var(--accent-color); }
.main-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 20px;
  height: 2px;
  background: var(--accent-color);
}

/* G1 — solid dark block with a notch/swoosh cut corner */
.main-navbar .btn-brand {
  background: var(--secondary-color);
  color: #fff;
  padding: 14px 26px 14px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 58%, calc(100% - 15px) 100%, 0 100%);
}
.main-navbar .btn-brand:hover { background: var(--accent-color); }
.main-navbar .btn-brand::after { content: none; }

.navbar-toggler { border: 1px solid var(--line); border-radius: 0; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }

/* Dropdown (only rendered when the client has product categories) */
.nav-products-row { display: flex; align-items: center; }
.main-navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  padding: 8px 0;
  margin-top: 0;
}
.main-navbar .dropdown-item {
  font-size: 0.82rem;
  padding: 9px 20px;
  color: var(--ink);
}
.main-navbar .dropdown-item:hover { background: var(--band); color: var(--accent-color); }
.mobile-cat-toggle {
  background: none; border: 0; color: var(--ink); padding: 4px 10px;
  transition: transform .25s ease;
}
.mobile-cat-toggle.open { transform: rotate(180deg); }

/* ---------------------------------------------------------
   6. HERO SLIDER — 78vh, left block, A1 indicators, B1 (no arrows)
   --------------------------------------------------------- */
.hero-slider { position: relative; }

.hero-slide {
  height: 78vh;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 13, .55);
}
.hero-slide .container { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.hero-tag::before { content: ""; width: 26px; height: 2px; background: var(--accent-color); }

.hero-slide h1 {
  max-width: 56%;
  font-size: var(--h1-size);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 20px;
}
.hero-slide p {
  max-width: 46%;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  margin-bottom: 30px;
}

/* A1 — vertical dot stack on the right edge, active dot ringed */
.hero-slider .carousel-indicators {
  right: 42px;
  left: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  margin: 0;
  gap: 16px;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 0;
  opacity: 1;
  margin: 0;
  position: relative;
  text-indent: 0;
}
.hero-slider .carousel-indicators .active { background: #fff; }
.hero-slider .carousel-indicators .active::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
}

/* B1 — no arrows */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { display: none; }

/* ---------------------------------------------------------
   7. PAGE HERO — 340px, 60% overlay, left aligned
   --------------------------------------------------------- */
.page-hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18,12,13,.6); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.breadcrumb-custom {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.breadcrumb-custom a { color: #fff; }
.breadcrumb-custom a:hover { color: var(--accent-color); }

/* ---------------------------------------------------------
   8. ABOUT ROW — F1 plain square image, no radius, no shadow
   --------------------------------------------------------- */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.badge-float {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--accent-color);
  color: #fff;
  padding: 20px 26px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 210px;
}
.badge-float .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.92rem;
}
.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent-color);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   9. FEATURE CARDS — J3 (no container) + E7 (bare icon)
   --------------------------------------------------------- */
.feature-card {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: var(--card-pad);
  text-align: center;
}
.feature-card .icon-wrap {
  width: auto; height: auto;
  background: none;
  margin-bottom: 18px;
  line-height: 1;
}
.feature-card .icon-wrap i {
  font-size: 2rem;
  color: var(--accent-color);
  line-height: 1;
}
.feature-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.feature-card p { font-size: 0.88rem; margin: 0; }

/* Containerless feature grid needs its own rhythm — no card box to separate rows */
.feature-grid { --bs-gutter-x: 2rem; --bs-gutter-y: 3.5rem; }

/* ---------------------------------------------------------
   10. MISSION / VISION + CORE VALUES
   --------------------------------------------------------- */
.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 44px 40px;
  height: 100%;
}
.mv-card > i {
  font-size: 2rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}
.mv-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.mv-card p { font-size: 0.92rem; margin-bottom: 0; }
.mv-card .check-list { margin-top: 20px; }
.mv-card .check-list li { font-size: 0.88rem; }

.value-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 36px 30px;
  height: 100%;
  text-align: center;
}
.value-pill i {
  font-size: 1.8rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.value-pill h6 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.value-pill p { font-size: 0.86rem; margin: 0; }

/* ---------------------------------------------------------
   11. PRODUCT / ITEM CARDS — true 1:1 squares, hard edge, no motion
   --------------------------------------------------------- */
.category-card-link { display: block; color: inherit; }

.product-card,
.item-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  transition: border-color .25s ease;
}
.product-card:hover,
.item-card:hover { border-color: var(--accent-color); }

.product-img,
.item-img { overflow: hidden; }
.product-img img,
.item-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.product-body,
.item-body { padding: 22px 20px; text-align: center; }
.product-body h5,
.item-body h5 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

/* ---------------------------------------------------------
   12. CTA — H1: full-bleed image, centred
   --------------------------------------------------------- */
.cta-section {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.cta-section::before { content: ""; position: absolute; inset: 0; background: rgba(18,12,13,.68); }
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-brand { justify-content: center; }

/* ---------------------------------------------------------
   13. CONTACT
   --------------------------------------------------------- */
.contact-info-card {
  background: var(--secondary-color);
  color: rgba(255,255,255,.78);
  border-radius: 0;
  padding: 44px 36px;
  height: 100%;
}
.contact-info-card h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.ci-icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.95rem;
}
.ci-text small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.ci-text span, .ci-text a { color: #fff; font-size: 0.9rem; line-height: 1.6; }
.ci-text a:hover { color: var(--accent-color); }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 44px 40px;
  height: 100%;
}
.contact-form-wrap h4 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.contact-form-wrap .form-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form-wrap .form-control {
  border-radius: 0;
  border: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 0.9rem;
  background: #fafafa;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: none;
  background: #fff;
}
.contact-form-wrap form > [class*="col-"] { padding: 0 12px; margin-bottom: 20px; }
.contact-form-wrap form { margin: 0 -12px; }
.contact-form-wrap .alert { border-radius: 0; }

/* ---------------------------------------------------------
   14. FOOTER — dark, 5/3/4, I1 accent copyright bar
   --------------------------------------------------------- */
.site-footer { background: var(--secondary-color); color: rgba(255,255,255,.62); }
.footer-top { padding: 78px 0 62px; }

.footer-brand-text { margin-bottom: 20px; }
.footer-brand-text img { height: 52px; width: auto; display: block; }

.site-footer p { font-size: 0.88rem; margin: 0; max-width: 420px; }

.site-footer h5 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 13px; font-size: 0.88rem; line-height: 1.65; }
.site-footer ul li:last-child { margin-bottom: 0; }
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: #fff; }
.site-footer ul li i { color: var(--accent-color); }

.footer-bottom {
  background: var(--accent-color);
  color: rgba(255,255,255,.92);
  font-size: 0.8rem;
  padding: 16px 0;
  letter-spacing: 0.02em;
}

.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-color);
  color: #fff;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); color: #fff; }

/* ---------------------------------------------------------
   15. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .main-navbar .nav-link { padding: 26px 12px !important; }
  .main-navbar .navbar-brand img { height: 38px; }
  .main-navbar .btn-brand { font-size: 0.68rem; padding: 12px 20px 12px 16px; }
}

@media (max-width: 991.98px) {
  :root { --section-pad: 72px; }

  .top-bar { display: none; }

  .main-navbar .navbar-collapse {
    flex-basis: 100%;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding: 10px 0 18px;
  }
  .main-navbar .nav-link { padding: 12px 0 !important; }
  .main-navbar .nav-link.active::after { left: 0; right: auto; width: 26px; bottom: 8px; }
  .main-navbar .navbar-brand { padding: 12px 0; }
  .main-navbar .btn-brand { clip-path: none; width: 100%; justify-content: center; }
  .nav-products-row { justify-content: space-between; width: 100%; }
  .main-navbar .dropdown-menu { border: 0; box-shadow: none; padding-left: 10px; }

  .hero-slide { height: auto; min-height: 480px; padding: 96px 0; }
  .hero-slide h1, .hero-slide p { max-width: 100%; }
  .hero-slider .carousel-indicators {
    right: 0; left: 0; top: auto; bottom: 22px;
    transform: none;
    flex-direction: row;
    justify-content: center;
  }

  .page-hero { height: 250px; }

  .badge-float { padding: 16px 20px; max-width: 180px; }
  .badge-float .num { font-size: 1.5rem; }

  .mv-card, .contact-info-card, .contact-form-wrap { padding: 34px 28px; }
}

@media (max-width: 575.98px) {
  .feature-card { text-align: center; }
  .badge-float { position: static; max-width: 100%; }
  .contact-form-wrap form > [class*="col-"] { margin-bottom: 16px; }
}
