/* ============================================================
   Dragon Wholesaling — landing page
   ============================================================ */

:root {
  --ink:        #100e0c;   /* near-black warm */
  --deep:       #18120d;   /* deep ember-brown */
  --cream:      #f5efe6;
  --muted:      #b8ac9c;
  --ember:      #c9591e;
  --ember-lift: #e2702f;
  --line:       rgba(245, 239, 230, 0.12);

  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow--ember { color: var(--ember-lift); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}

.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
  margin-top: 1.1rem;
}

.section-head { margin-bottom: 3.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.92rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  color: var(--cream);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-lift); }
.btn--ghost { border-color: rgba(245, 239, 230, 0.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245, 239, 230, 0.06); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: linear-gradient(to bottom, rgba(16, 14, 12, 0.55), transparent);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; }

.brandmark { display: flex; flex-direction: column; line-height: 1; }
.brandmark__name {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brandmark__est {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.topnav { display: flex; align-items: center; gap: 2rem; }
.topnav a { font-size: 0.9rem; color: var(--cream); opacity: 0.82; transition: opacity 0.25s; }
.topnav a:hover { opacity: 1; }
.topnav__cta {
  border: 1px solid rgba(245, 239, 230, 0.3);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.topnav__cta:hover { border-color: var(--ember-lift); color: var(--ember-lift); }

/* Mobile menu toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
/* Carousel */
.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0e0c0b;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  will-change: transform;
}
.slide.is-active .slide__img { animation: kenburns 6.8s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.11) translate(-1.2%, -1%); }
}

/* Per-slide brand watermark, bottom-right */
.hero__watermark {
  position: absolute;
  right: 30px;
  bottom: 26px;
  z-index: 2;
  pointer-events: none;
  width: 240px;
  height: 44px;
}
.wm {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 38px;
  width: auto;
  max-width: 240px;
  opacity: 0;
  filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.55));
  transition: opacity 1.2s var(--ease);
}
.wm.is-active { opacity: 0.82; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(12, 10, 9, 0.9) 0%, rgba(12, 10, 9, 0.55) 38%, rgba(12, 10, 9, 0.2) 70%),
    linear-gradient(to top, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0) 45%);
}
.hero__content {
  position: relative;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.3rem, 2.6vw, 2.1rem);
  padding-top: clamp(7.5rem, 17vh, 12rem);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(245, 239, 230, 0.86);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }

/* Brand logos in the hero, revealed last */
.hero__brands { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.3rem; }
.hero__brands-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__brands-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem 2.4rem; }
.hero__brands-row a { display: inline-flex; opacity: 0; animation: logoPop 0.6s var(--ease) forwards; }
.hero__brands-row img {
  height: clamp(32px, 3.8vw, 50px);
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: opacity 0.25s var(--ease);
}
.hero__brands-row a:hover img { opacity: 1; }

/* Staggered hero entrance */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes logoPop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.hero__content > * { opacity: 0; animation: heroRise 0.85s var(--ease) forwards; }
.hero__content > *:nth-child(1) { animation-delay: 0.15s; }
.hero__content > *:nth-child(2) { animation-delay: 0.30s; }
.hero__content > *:nth-child(3) { animation-delay: 0.45s; }
.hero__content > *:nth-child(4) { animation-delay: 0.60s; }
.hero__content > *:nth-child(5) { animation-delay: 0.72s; }
.hero__brands-row a:nth-child(1) { animation-delay: 0.95s; }
.hero__brands-row a:nth-child(2) { animation-delay: 1.08s; }
.hero__brands-row a:nth-child(3) { animation-delay: 1.21s; }
.hero__brands-row a:nth-child(4) { animation-delay: 1.34s; }

.scrollcue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(245, 239, 230, 0.4);
  border-radius: 999px;
}
.scrollcue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--cream);
  border-radius: 2px;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Bands ---------- */
.band { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.band--ink { background: var(--ink); }
.band--deep {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(201, 89, 30, 0.14), transparent 55%),
    var(--deep);
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.7rem;
  background: rgba(245, 239, 230, 0.02);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover {
  border-color: rgba(201, 89, 30, 0.5);
  transform: translateY(-4px);
  background: rgba(201, 89, 30, 0.05);
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ember-lift);
  letter-spacing: 0.1em;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0.9rem 0 0.6rem;
}
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Brands ---------- */
.grid--brands { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.brand {
  text-align: center;
  padding: 2.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.brand:hover { border-color: rgba(201, 89, 30, 0.45); transform: translateY(-4px); }
.brand__logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.brand__logo img {
  height: 50px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.4s var(--ease);
}
.brand:hover .brand__logo img { opacity: 1; }
.brand__logo a { display: inline-flex; align-items: center; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__phone { margin-top: 1.1rem; color: var(--muted); font-size: 1rem; }
.contact__phone a { color: var(--ember-lift); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact__phone a:hover { border-color: var(--ember-lift); }

.contact-form { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field > span { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.field > span em { font-style: normal; opacity: 0.55; }
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(245, 239, 230, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(201, 89, 30, 0.06);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { justify-self: start; margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; color: var(--ember-lift); margin-top: 0.3rem; }

.contact__note {
  border-left: 2px solid rgba(201, 89, 30, 0.5);
  padding-left: 1.8rem;
}
.contact__note h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.contact__note p { color: var(--muted); font-size: 0.96rem; }
.contact__links { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.contact__links a {
  color: var(--cream);
  font-size: 0.94rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.contact__links a:hover { color: var(--ember-lift); border-color: var(--ember-lift); }

/* ---------- Footer ---------- */
.footer { padding: 3.4rem 0; border-top: 1px solid var(--line); background: var(--ink); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer__tag { font-size: 0.82rem; color: var(--muted); }
.footer__legal { font-size: 0.78rem; color: var(--muted); max-width: 60ch; line-height: 1.6; }
.footer__legal a { color: var(--cream); border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.footer__legal a:hover { color: var(--ember-lift); border-color: var(--ember-lift); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--brands { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .field-row { grid-template-columns: 1fr; }

  /* Mobile / tablet dropdown menu */
  .nav-toggle { display: flex; }
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(16, 14, 12, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0 0.8rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }
  body.nav-open .topnav { max-height: 80vh; opacity: 1; visibility: visible; }
  .topnav a { font-size: 1.05rem; opacity: 1; padding: 0.95rem 28px; }
  .topnav a:not(.topnav__cta):hover { background: rgba(245, 239, 230, 0.05); }
  .topnav__cta { border: 0; border-radius: 0; color: var(--ember-lift); }
  .topnav__cta:hover { color: var(--ember-lift); background: rgba(201, 89, 30, 0.08); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .grid--brands { grid-template-columns: 1fr; }
  .hero__content { padding-top: 7rem; }
}

@media (max-width: 560px) {
  .hero__watermark { right: 18px; bottom: 18px; height: 30px; }
  .wm { height: 26px; max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scrollcue span { animation: none; }
  .slide.is-active .slide__img { animation: none; transform: scale(1.03); }
  .hero__content > *,
  .hero__brands-row a,
  .hero__brands-row img { opacity: 1; animation: none; transform: none; }
}

/* ============================================================
   Accessibility & interaction polish
   ============================================================ */

/* Pointer + no 300ms tap delay on actionable elements */
.btn, button, select, summary, [role="button"] { cursor: pointer; }
.btn, button, a { touch-action: manipulation; }

/* Visible keyboard focus — only shows for keyboard users, not mouse */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ember-lift);
  outline-offset: 3px;
  border-radius: 6px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ember-lift);
  outline-offset: 2px;
}

/* Skip to content — hidden until focused */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ember);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }
