/* =========================================================
   ABC Distribution USA — Core Stylesheet
   Aesthetic: minimalist premium (white / black / red accent)
   Reference direction: Royal Homes
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-ink: #111111;
  --color-ink-soft: #444444;
  --color-muted: #777777;
  --color-line: #e6e6e6;
  --color-accent: #c8102e;      /* red accent */
  --color-accent-dark: #9c0c23;
  --color-surface: #f7f7f7;
  --color-dark: #141414;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 2px;
  --shadow-soft: 0 6px 28px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.15;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top announcement bar ---------- */
.topbar {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 12px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__brand .mark { color: var(--color-accent); }
.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-accent); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav__links a:hover::after { width: 100%; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  min-width: 210px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--color-surface); }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              var(--color-dark);
  color: #fff;
  text-align: center;
}
.hero__inner { width: 100%; }
.hero__eyebrow {
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 18px;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  padding: 14px 34px;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--color-ink); border-color: #fff; }
.btn--dark { background: var(--color-ink); border-color: var(--color-ink); }
.btn--dark:hover { background: #000; border-color: #000; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--color-surface); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section__head .rule {
  width: 56px; height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
}
.section__head p { color: var(--color-muted); margin-top: 14px; }

/* ---------- Category / product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.card__media {
  height: 200px;
  background: var(--color-dark) center/cover no-repeat;
  position: relative;
}
.card__body { padding: 22px; }
.card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card__body p { font-size: 0.9rem; color: var(--color-muted); }

/* ---------- Brand logos ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.brands img { height: 42px; filter: grayscale(1); opacity: 0.6; transition: var(--transition); }
.brands img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Info / trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.trust__item h3 { color: var(--color-accent); font-size: 1.1rem; margin-bottom: 8px; }
.trust__item p { font-size: 0.9rem; color: var(--color-ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info p { margin-bottom: 12px; color: var(--color-ink-soft); }
.contact-info strong { font-family: var(--font-display); letter-spacing: 0.5px; }
.form-field { margin-bottom: 18px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Placeholder marker ---------- */
.ph {
  background: #fff3cd;
  border-bottom: 1px dashed #c8a200;
  color: #7a5b00;
  padding: 0 4px;
  font-style: normal;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 28px;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; transition: var(--transition); }
.footer a:hover { color: var(--color-accent); }
.footer__brand { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 2px; color:#fff; text-transform: uppercase; margin-bottom: 14px; }
.footer__brand .mark { color: var(--color-accent); }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.footer__legal a { display: inline; }
.badge-line { color: var(--color-accent); font-family: var(--font-display); letter-spacing: 1px; font-size: 0.8rem; }

/* ---------- Legal page layout ---------- */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal .updated { color: var(--color-muted); font-size: 0.85rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--color-ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.open { max-height: 600px; }
  .nav__links li { width: 100%; border-top: 1px solid var(--color-line); }
  .nav__links a { display: block; padding: 16px 24px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; max-height: 0; overflow:hidden;}
  .has-dropdown:hover .dropdown { transform: none; }
}
