/* HBT Global Enterprise Ltd — design direction: "light luxury / editorial trust"
   Deep forest green + warm cream + antique gold. Fraunces display serif + Inter.
   Themed via CSS custom properties: light (default) + [data-theme="dark"]. */

:root {
  --ink: #1b3a2f;          /* deep forest green (headings, accents) */
  --ink-deep: #12271f;
  --cream: #faf6ee;        /* warm paper */
  --cream-alt: #f1ead9;
  --gold: #e9b44c;
  --gold-deep: #8a6414;    /* AA-contrast gold for text on cream */
  --text: #26302b;
  --text-soft: #4e5a53;
  --line: rgba(27, 58, 47, 0.16);

  --bg: var(--cream);
  --bg-alt: var(--cream-alt);
  --surface: #ffffff;
  --header-bg: rgba(250, 246, 238, 0.92);
  --btn-bg: #1b3a2f;       /* primary button / cta */
  --btn-fg: #faf6ee;
  --panel: #1b3a2f;        /* always-dark editorial panel (both themes) */
  --panel-deep: #12271f;   /* contact/footer band (both themes) */
  --shadow: rgba(18, 39, 31, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme — intentional "dark luxury" take on the same palette */
[data-theme="dark"] {
  --ink: #e7e0cd;          /* headings become warm parchment */
  --gold-deep: #e3b357;    /* AA gold for text on dark surfaces */
  --text: #d9d5c8;
  --text-soft: #a8b0a6;
  --line: rgba(231, 224, 205, 0.18);

  --bg: #0f1b15;
  --bg-alt: #14231b;
  --surface: #1a2b22;
  --header-bg: rgba(15, 27, 21, 0.92);
  --btn-bg: #e9b44c;       /* gold primary buttons in dark mode */
  --btn-fg: #12271f;
  --shadow: rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }

img { max-width: 100%; height: auto; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo { display: block; width: 2.4rem; height: 2.4rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.nav-cta {
  background: var(--btn-bg);
  color: var(--btn-fg) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.theme-toggle:hover { transform: translateY(-2px); background: var(--bg-alt); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 3rem + 6vw, 9rem) 1.25rem 0;
  text-align: left;
}
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 5.5vw, 5.5rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero-lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-strip {
  max-width: 1120px;
  margin: clamp(3rem, 2rem + 4vw, 5.5rem) auto 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}
.hero-strip .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* ---------- Stats band ---------- */
.stats-band {
  max-width: 1120px;
  margin: clamp(2.5rem, 2rem + 3vw, 4rem) auto 0;
  padding: 0 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.stat { border-left: 3px solid var(--gold); padding-left: 1rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0.25rem 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 6px 18px var(--shadow);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { box-shadow: 0 6px 16px var(--shadow); }
.btn-gold {
  background: var(--gold);
  color: var(--ink-deep);
  border: 0;
  font-family: var(--font-body);
}
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 1.25rem; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 1120px;
  margin: 0 auto 2.75rem;
}
.section-lede { max-width: 52ch; color: var(--text-soft); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--gold); }

/* ---------- Shop ---------- */
.store-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.store-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.store-card:hover, .store-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px var(--shadow);
}
.store-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.store-badge-ebay { background: #e8f0fe; color: #1a3f8f; }
.store-badge-amazon { background: #fdf1dc; color: #7a4b00; }
[data-theme="dark"] .store-badge-ebay { background: #17335c; color: #b9d0f7; }
[data-theme="dark"] .store-badge-amazon { background: #4a3210; color: #f2d49a; }
.store-card h3 { margin-bottom: 0.4em; }
.store-link { font-weight: 600; color: var(--gold-deep); }
.store-note { font-size: 0.85rem; color: var(--text-soft); margin: 0.75rem 0 0; }
.trust-row {
  max-width: 1120px;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.trust-row li::before {
  content: "\2713";
  color: var(--gold-deep);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---------- Services ---------- */
.services-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px var(--shadow);
}
.service-card p:last-of-type { flex: 1; }
.service-primary {
  background: var(--panel);
  border-color: var(--panel);
  grid-column: 1 / -1;
}
.service-primary h3, .service-primary p { color: var(--cream); }
.service-primary .service-tag {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-primary .service-num { color: var(--gold); }
.service-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.service-card .btn { align-self: flex-start; margin-top: 1.25rem; }
.service-primary .btn-primary {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: none;
}

/* ---------- Quote form ---------- */
.quote-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
.quote-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.quote-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}
.about-facts {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.about-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.about-facts > div:last-child { border-bottom: 0; }
.about-facts dt { color: var(--text-soft); font-size: 0.9rem; }
.about-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .faq-icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.4s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.faq-a.is-open {
  max-height: 22rem;
  opacity: 1;
  transform: translateY(0);
}
.faq-a p { color: var(--text-soft); padding: 0 2.5rem 1.25rem 0.25rem; margin: 0; }

/* ---------- Contact ---------- */
.section-dark {
  background: var(--panel-deep);
  color: var(--cream);
}
.section-dark h2 { color: var(--cream); }
.section-dark p { color: rgba(250, 246, 238, 0.82); }
.contact-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
.contact-channels {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.contact-channels a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-channels a:hover, .contact-channels a:focus-visible { border-bottom-color: var(--gold); }

.contact-form {
  background: rgba(250, 246, 238, 0.06);
  border: 1px solid rgba(250, 246, 238, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.form-row { margin-bottom: 1.2rem; }
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--cream);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 246, 238, 0.3);
  background: rgba(250, 246, 238, 0.95);
  color: #26302b;
  font: inherit;
  font-size: 0.95rem;
}
.form-note {
  font-size: 0.85rem;
  margin: 1rem 0 0;
}
.form-note a { color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 1.25rem var(--space-section);
}
.legal-body h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); }
.legal-body h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-top: 2.2em; }
.legal-body ul { color: var(--text); padding-left: 1.3rem; }
.legal-body li { margin-bottom: 0.4em; }
.legal-updated { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--panel-deep);
  border-top: 1px solid rgba(250, 246, 238, 0.14);
  padding: 2.5rem 1.25rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  color: rgba(250, 246, 238, 0.72);
  font-size: 0.88rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 1rem 0 0;
}
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 90;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px var(--shadow);
  padding: 1.1rem 1.25rem;
  display: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1 1 260px; }
.cookie-banner a { color: var(--gold-deep); }

/* ---------- Scroll reveal (transform/opacity only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .store-card, .service-card, .nav-cta, .faq-a, .faq-icon, .theme-toggle { transition: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
    box-shadow: 0 18px 30px var(--shadow);
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li a { display: block; padding: 0.85rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .about-grid, .contact-grid, .quote-grid { grid-template-columns: 1fr; gap: 2rem; }
}
