/* ============================================================
   BRETTSPIELLUXUS – CRITICAL CSS (above the fold)
   Variables, reset, typography, header, hero
   ============================================================ */

/* ── Self-hosted fonts (WOFF2, latin subset, font-display:swap) ── */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-400n.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-400i.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500n.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-500i.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600n.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600i.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-700n.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-700i.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette – premium, warm, editorial */
  --c-bg: #faf6ee;
  --c-bg-alt: #f2ebdc;
  --c-paper: #ffffff;
  --c-ink: #14202e;
  --c-ink-soft: #3a4757;
  --c-ink-muted: #6b7785;
  --c-line: #e4d9c2;
  --c-gold: #b8893b;
  --c-gold-deep: #8e6a28;
  --c-accent: #6e2b1e;
  --c-success: #2f6a3e;
  --c-warn: #b05a1e;
  --c-danger: #b33030;

  /* Typography */
  --ff-display:
    "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Layout */
  --container: 1240px;
  --header-h: 76px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm:
    0 1px 2px rgba(20, 32, 46, 0.06), 0 2px 6px rgba(20, 32, 46, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 32, 46, 0.08);
  --shadow-lg: 0 18px 40px rgba(20, 32, 46, 0.12);

  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  font-family: var(--ff-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--c-gold);
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--c-ink);
}
h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}
h4 {
  font-size: 1.15rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--c-ink);
  color: var(--c-paper);
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* ----------- HEADER ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.topbar {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.825rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.topbar a {
  color: rgba(255, 255, 255, 0.92);
}
.topbar-promo {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-ink) 0%, var(--c-gold-deep) 100%);
  color: var(--c-paper);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--c-gold);
}
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}
.brand-name span {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin-top: 4px;
}

.nav-primary {
  flex: 1;
}
.nav-primary ul {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.nav-primary a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

@media (max-width: 1080px) {
  .header-actions {
    gap: 0px;
  }

  .nav-primary ul {
    gap: 16px;
  }
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-ink);
  position: relative;
  transition: background var(--transition);
}
.icon-btn:hover {
  background: var(--c-bg-alt);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--c-accent);
  color: white;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  line-height: 1;
}
.icon-btn .badge[data-count="0"] {
  display: none;
}

.search-toggle-wrap {
  position: relative;
}

@media (max-width: 475px) {
  .search-toggle-wrap,
  .header-actions .icon-btn:not(.menu-toggle, .cart-icon) {
    display: none !important;
  }
}
.search-form {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--c-paper);
  padding: var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
  min-width: 320px;
}
.search-form.open {
  display: flex;
  gap: var(--s-2);
}
.search-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
}
.search-form input:focus {
  outline: 2px solid var(--c-gold);
  outline-offset: 1px;
}
.btn {
  display: flex;
  padding: 10px;
  align-items: center;
  font-family: var(--ff-body);
  border-radius: 10px;
  transition: all 0.25s;
  font-size: 14px;
  width: max-content;
  text-align: center;
  justify-content: center;
}
.btn--outline {
  border: 2px solid #fff;
}
.btn--outline:hover {
  border: 2px solid var(--c-gold);
}
.btn--primary {
  background: var(--c-gold);

  font-weight: 500;
  color: #fff !important;
}

.btn--primary:hover {
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .nav-primary.mobile-open {
    top: 0 !important;
    padding-top: 180px !important;
  }

  .brand {
    position: relative;
    z-index: 200;
  }
}
.menu-toggle {
  display: none;
}
.tel-link {
  display: none;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

@media (min-width: 1280px) {
  .tel-link {
    display: inline-flex;
  }
}
@media (max-width: 1023px) {
  .nav-primary {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .nav-primary.mobile-open {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + 36px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-bg);
    padding: var(--s-6) var(--s-5);
    overflow-y: auto;
    height: 100vh;
  }
  .nav-primary.mobile-open ul {
    flex-direction: column;
    gap: var(--s-4);
    align-items: stretch;
  }
  .nav-primary.mobile-open a {
    font-size: 1.2rem;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--c-line);
    display: block;
  }
}
@media (max-width: 600px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-name span {
    font-size: 0.6rem;
  }
  .topbar {
    font-size: 0.72rem;
  }
  .topbar .container {
    flex-wrap: wrap;
    gap: var(--s-2);
  }
}

/* ----------- HERO ----------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse at 25% 30%,
      rgba(184, 137, 59, 0.22) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #0e1a2a 0%, #1b2c42 55%, #2a1a12 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 0
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black,
    transparent 75%
  );
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-9) 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid rgba(184, 137, 59, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}
.hero-content h1 {
  color: var(--c-paper);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 600;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--c-gold);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat .num {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1.1;
}
.hero-stat .lbl {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(184, 137, 59, 0.3);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(14, 26, 42, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s-7);
    padding: var(--s-8) 0;
    text-align: center;
  }
  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-card {
    width: min(320px, 80vw);
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 540px) {
  .hero-inner {
    padding: var(--s-7) 0;
  }
  .hero-stats {
    gap: var(--s-5);
  }
  .hero-stat .num {
    font-size: 1.3rem;
  }
}

/* Screen-reader only utility */
.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;
}
