/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Built Titling';
  src: url('../assets/fonts/built titling rg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Built Titling';
  src: url('../assets/fonts/built titling bd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: url('../assets/fonts/CircularStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: url('../assets/fonts/CircularStd-BookItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: url('../assets/fonts/CircularStd-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Std';
  src: url('../assets/fonts/CircularStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --clr-heading:  #606556;
  --clr-accent:   #af1c23;
  --clr-text:     #2c2c30;
  --clr-bg:       #fdfdfd;
  --clr-panel:    #f3f3f3;
  --clr-sale:     #ab552b;

  --ff-heading:   'Built Titling', Georgia, serif;
  --ff-body:      'Circular Std', system-ui, sans-serif;

  --max-w:        1200px;
  --pad-x:        clamp(1.25rem, 5vw, 2.5rem);
  --nav-h:        72px;

  --ease:         0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ul       { list-style: none; }
button   { cursor: pointer; border: none; background: none; font-family: var(--ff-body); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  color: var(--clr-heading);
  line-height: 1.12;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.25rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem);   font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem);  font-weight: 400; }
h4 { font-size: 1.05rem;                      font-weight: 400; font-family: var(--ff-heading); }
h5 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--ff-body); font-weight: 700; }

.accent { color: var(--clr-accent); }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.875rem;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.65); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

.section-header p {
  margin-top: 1rem;
  opacity: 0.7;
  font-size: 1.05rem;
}

/* ============================================================
   BUTTONS  — straight corners per brand guide
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--clr-heading);
  color: var(--clr-bg);
}

.btn-primary:hover {
  background-color: var(--clr-text);
}

.btn-ghost {
  background-color: transparent;
  color: var(--clr-heading);
  border: 2px solid var(--clr-heading);
  padding: calc(0.9rem - 2px) calc(2rem - 2px);
}

.btn-ghost:hover {
  background-color: var(--clr-heading);
  color: var(--clr-bg);
}

.btn-sale {
  background-color: var(--clr-bg);
  color: var(--clr-sale);
  font-weight: 700;
  padding: 1rem 2.5rem;
  flex-shrink: 0;
}

.btn-sale:hover {
  background-color: var(--clr-text);
  color: var(--clr-bg);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background-color: var(--clr-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--clr-panel);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 1.5rem;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-text);
  position: relative;
  transition: color var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background-color: var(--clr-accent);
  transition: width var(--ease);
}

.nav-links a:hover { color: var(--clr-accent); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { margin-left: 1.5rem; }

/* hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background-color: var(--clr-text);
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-content-wrap {
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(3rem, 5vw, 5rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  padding-right: clamp(2rem, 4vw, 4rem);
  /* align text with the rest of the page content */
  padding-left: max(var(--pad-x), calc((100vw - var(--max-w)) / 2 + var(--pad-x)));
}

.hero-content h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: 1.1rem;
  max-width: 440px;
  margin-bottom: 2.75rem;
  opacity: 0.75;
  line-height: 1.72;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tag {
  position: absolute;
  bottom: 0; right: 0;
  background-color: var(--clr-bg);
  padding: 1.1rem 1.5rem;
  border-left: 3px solid var(--clr-accent);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-tag-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.hero-tag-value {
  font-family: var(--ff-heading);
  font-size: 1rem;
  color: var(--clr-heading);
  letter-spacing: 0.04em;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  background-color: var(--clr-heading);
  overflow: hidden;
  padding-block: 0.8rem;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  /* half the track = 1 loop, so translateX(-50%) loops seamlessly */
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-bg);
  flex-shrink: 0;
}

.marquee-track .sep {
  opacity: 0.4;
  font-size: 1rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { background-color: var(--clr-bg); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  background-color: var(--clr-panel);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.category-img {
  width: 100%;
  aspect-ratio: 1;
  padding: 2rem;
  background-color: var(--clr-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img img { transform: scale(1.06); }

.category-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  border-top: 2px solid var(--clr-bg);
}

.category-body h3 { color: var(--clr-heading); }

.category-body p {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.6;
  flex: 1;
}

.card-cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--clr-accent);
  margin-top: 0.875rem;
  transition: letter-spacing var(--ease);
}

.category-card:hover .card-cta { letter-spacing: 0.1em; }

/* ============================================================
   SALE BANNER
   ============================================================ */
.sale-banner {
  background-color: var(--clr-sale);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.sale-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.sale-content h2 {
  color: var(--clr-bg);
  margin-top: 0.25rem;
}

.sale-content p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.75rem;
}

/* ============================================================
   USP
   ============================================================ */
.usp { background-color: var(--clr-panel); }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.usp-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.usp-icon {
  width: 60px; height: 60px;
  background-color: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-heading);
  flex-shrink: 0;
}

.usp-item h4 {
  font-size: 0.95rem;
  color: var(--clr-text);
}

.usp-item p {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background-color: var(--clr-bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* left visual block */
.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  overflow: hidden;
}

.about-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-stat {
  position: absolute;
  background-color: var(--clr-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--clr-accent);
  display: flex;
  flex-direction: column;
}

.about-stat:not(.about-stat--offset) { bottom: -1.5rem; right: -1.5rem; }
.about-stat--offset                  { top:    -1.5rem; left:  -1.5rem; }

.stat-num {
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--clr-heading);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text);
  opacity: 0.6;
  margin-top: 0.3rem;
}

/* right text block */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-content h2 { margin-bottom: 0.25rem; }

.about-content p {
  opacity: 0.75;
  line-height: 1.78;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background-color: var(--clr-panel); }

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.newsletter-content h2  { margin-bottom: 0.25rem; margin-top: 0.25rem; }
.newsletter-content > p { opacity: 0.7; margin-top: 0.75rem; }

.form-row {
  display: flex;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  border: 2px solid var(--clr-heading);
  border-right: none;
  outline: none;
  transition: border-color var(--ease);
  min-width: 0;
}

.form-row input[type="email"]:focus { border-color: var(--clr-accent); }

/* match btn border to input border */
.form-row .btn { border: 2px solid var(--clr-heading); }
.form-row .btn:hover { border-color: var(--clr-text); }

.form-note {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.form-note.success {
  opacity: 1;
  color: var(--clr-heading);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background-color: var(--clr-text); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.footer-logo {
  height: 46px;
  width: auto;
  /* make the dark SVG visible on dark background */
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px; height: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background-color var(--ease), color var(--ease);
}

.footer-social a:hover {
  background-color: var(--clr-accent);
  color: #fff;
}

.footer-col h5 {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ease);
}

.footer-col ul li a:hover { color: #fff; }

.sale-link { color: var(--clr-sale) !important; font-weight: 700; }
.sale-link:hover { color: #fff !important; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom-inner p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--ease);
}

.footer-legal a:hover { color: rgba(255, 255, 255, 0.75); }

/* ============================================================
   SCROLL-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger siblings inside grids */
.categories-grid .category-card:nth-child(2) { transition-delay: 0.1s; }
.categories-grid .category-card:nth-child(3) { transition-delay: 0.2s; }
.categories-grid .category-card:nth-child(4) { transition-delay: 0.3s; }

.usp-grid .usp-item:nth-child(2) { transition-delay: 0.1s; }
.usp-grid .usp-item:nth-child(3) { transition-delay: 0.2s; }
.usp-grid .usp-item:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner     { gap: 3rem; }
  .about-stat      { position: static; box-shadow: none; }
  .about-visual    { gap: 1rem; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* nav */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background-color: var(--clr-bg);
    padding: 1.75rem var(--pad-x) 2rem;
    gap: 1.35rem;
    border-bottom: 1px solid var(--clr-panel);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  /* hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    height: 55vw;
    min-height: 240px;
    max-height: 420px;
  }

  .hero-content-wrap {
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    text-align: center;
  }

  .hero-sub  { margin-inline: auto; }
  .hero-cta  { justify-content: center; }

  /* about */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-content { text-align: center; }
  .about-actions { justify-content: center; }

  /* sale */
  .sale-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  /* usp */
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 520px)
   ============================================================ */
@media (max-width: 520px) {
  .categories-grid { grid-template-columns: 1fr; }
  .usp-grid        { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }

  .form-row { flex-direction: column; }

  .form-row input[type="email"] {
    border-right: 2px solid var(--clr-heading);
    border-bottom: none;
  }

  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal        { flex-wrap: wrap; justify-content: center; }
}
