/* ============================================================================
   SNZOU brand stylesheet — standalone, NOT Tailwind-dependent.
   Used by PHP pages (e.g. /check-serial/index.php) that live outside the
   Next.js bundle. Stable filename so it survives every rebuild.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&display=swap");

:root {
  --bg: #f5f1e8;
  --bg-soft: #efe7da;
  --bg-deep: #1f1d18;
  --ink: #1e1e1c;
  --ink-soft: #4a4a45;
  --ink-mute: #6b675f;
  --forest: #1f4d3a;
  --forest-hover: #28634a;
  --bronze-soft: #e7d8b8;
  --line: #d9d1bf;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--forest);
  color: var(--bg);
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover {
  color: var(--forest-hover);
}

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

h1,
h2,
h3,
h4 {
  font-family: "Cabinet Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

/* ─── Container ─────────────────────────────────────────────────────────── */

.container-x {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container-x {
    padding: 0 40px;
  }
}
@media (min-width: 1024px) {
  .container-x {
    padding: 0 56px;
  }
}

/* ─── Eyebrow ───────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--forest-hover);
  color: var(--bg);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--forest);
  border-color: var(--forest);
}

/* ─── Nav (top header) ──────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 209, 191, 0.6);
  height: 64px;
  transition: transform 0.5s var(--ease);
}
@media (min-width: 768px) {
  .site-nav {
    height: 80px;
  }
}
.site-nav--hidden {
  transform: translateY(-100%);
}

.site-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) {
  .site-nav__inner {
    padding: 0 40px;
  }
}
@media (min-width: 1024px) {
  .site-nav__inner {
    padding: 0 56px;
    gap: 40px;
  }
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
}
.site-nav__brand img {
  height: 32px;
  width: auto;
  user-select: none;
}
@media (min-width: 768px) {
  .site-nav__brand img {
    height: 39px;
  }
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 40px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }
}
.site-nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav__links a:hover {
  color: var(--ink);
}
.site-nav__links a[aria-current="page"] {
  color: var(--forest);
}

.site-nav__cta {
  display: none;
}
@media (min-width: 768px) {
  .site-nav__cta {
    display: inline-flex;
  }
}

.site-nav__burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) {
  .site-nav__burger {
    display: none;
  }
}
.site-nav__burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.site-nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.site-nav__burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav__mobile {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--bg);
  border-top: 1px solid rgba(217, 209, 191, 0.6);
  border-bottom: 1px solid rgba(217, 209, 191, 0.6);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease);
}
.site-nav__mobile[data-open="true"] {
  max-height: 24rem;
  opacity: 1;
}
.site-nav__mobile-inner {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
}
.site-nav__mobile a {
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 16px;
  text-decoration: none;
}
.site-nav__mobile a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.site-nav__mobile .btn {
  margin-top: 12px;
  width: 100%;
}

/* ─── Main content slot ─────────────────────────────────────────────────── */

.site-main {
  flex: 1 0 auto;
  padding-top: 64px;
}
@media (min-width: 768px) {
  .site-main {
    padding-top: 80px;
  }
}

/* ─── Page hero (eyebrow + h1 + lede) ───────────────────────────────────── */

.page-hero {
  padding: 64px 0 32px;
}
@media (min-width: 768px) {
  .page-hero {
    padding: 96px 0 48px;
  }
}
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.page-hero__eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 800px;
}
.page-hero h1 .accent {
  color: var(--forest);
  font-weight: 800;
}
.page-hero__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 560px;
  margin: 0;
}

/* ─── Card surface ──────────────────────────────────────────────────────── */

.card-soft {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
}
@media (min-width: 768px) {
  .card-soft {
    padding: 48px;
  }
}

/* ─── Form input (brand-styled) ─────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.15);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(217, 209, 191, 0.7);
  background: var(--bg-soft);
  padding: 64px 0 40px;
  margin-top: 80px;
}
.site-footer__top {
  border-bottom: 1px solid rgba(217, 209, 191, 0.7);
  padding-bottom: 56px;
  margin-bottom: 56px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}
.site-footer__brand img {
  height: 60px;
  width: auto;
}
.site-footer__brand p {
  margin: 20px 0 0;
  max-width: 26rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mute);
}
.site-footer__news h3 {
  font-family: "Cabinet Grotesk", Inter, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
}
.site-footer__news p {
  margin: 8px 0 0;
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.site-footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 4fr 3fr 2fr 3fr;
    gap: 40px;
  }
}
.site-footer h4 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 16px;
}
.site-footer .col--brand h4 {
  color: var(--forest);
}
.site-footer .col--muted h4 {
  color: var(--ink-mute);
}
.site-footer address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer ul a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}
.site-footer ul a:hover {
  color: var(--forest);
}
.site-footer__bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(217, 209, 191, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-mute);
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer__social {
  display: flex;
  gap: 10px;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--ink-mute);
  transition: all 0.3s var(--ease);
}
.site-footer__social a:hover {
  transform: translateY(-2px);
  border-color: var(--forest);
  background: var(--forest);
  color: var(--bg);
}
.site-footer__social svg {
  width: 16px;
  height: 16px;
}

/* ─── Dark-mode logo fallback (Samsung Internet / forced-dark UAs) ──────── */

@media (prefers-color-scheme: dark) {
  img[src*="/logo/cropped/wordmark-green"],
  img[src*="/logo/cropped/bolt-green"] {
    filter: brightness(0) invert(1);
  }
}
