/* =========================================================
   Yaodaro Support — Styles
   Light theme. Gold accent. No gradients.
   Mobile-first. Breakpoints: 600 / 900 / 1100
   ========================================================= */

:root {
  /* Surfaces (warm neutrals pair well with gold) */
  --bg: #ffffff;
  --bg-2: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;

  /* Borders */
  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  /* Text */
  --text: #1c1917;
  --text-dim: #44403c;
  --muted: #78716c;

  /* Accent — gold */
  --accent: #a16207;              /* readable gold for text & links (6:1 on white) */
  --accent-hover: #854d0e;
  --accent-bright: #eab308;       /* bright gold for filled elements */
  --accent-bright-hover: #ca8a04;
  --accent-soft: #fefce8;         /* pale gold surface tint */
  --accent-soft-border: #fef08a;
  --accent-on-bright: #422006;    /* dark brown text on bright gold */

  /* Danger */
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;

  /* Radii & shadow */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow: 0 8px 24px rgba(28, 25, 23, 0.08);

  /* Layout */
  --header-h: 72px;
  --container: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------------- Layout ---------------- */
.container {
  width: min(100% - 2.25rem, var(--container));
  margin-inline: auto;
}

.container-narrow { max-width: 820px; }

.muted { color: var(--muted); }
.mt-1  { margin-top: 1rem; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-bright);
  color: var(--accent-on-bright);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

/* Hamburger */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav (mobile panel) */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.chev {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.has-dropdown.is-open > .dropdown-toggle .chev {
  transform: rotate(180deg);
}

/* Dropdown (mobile: inline) */
.dropdown {
  list-style: none;
  margin: 0.25rem 0 0.25rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--border-strong);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.has-dropdown.is-open .dropdown { display: flex; }

.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.dropdown a:hover,
.dropdown a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-glow { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.75rem;
}

.grad {
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-bright);
  color: var(--accent-on-bright);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
  background: var(--accent-bright-hover);
  color: var(--accent-on-bright);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------------- Sections & Cards ---------------- */
.section { padding: 2rem 0 4rem; }

.section-sm {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--accent-soft-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.97rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  border: 1px solid var(--accent-soft-border);
}

.card-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

.card-link-card {
  display: block;
  color: inherit;
}

.card-link-card:hover { color: inherit; }

/* ---------------- Page (inner pages) ---------------- */
.page { padding: 3rem 0 4rem; }

.page-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.page-head .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.page-head .lead {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ---------------- Legal content ---------------- */
.legal h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-dim);
}

.legal li { margin: 0.25rem 0; }

.legal a { color: var(--accent); }

.legal > h2:first-of-type { margin-top: 1.5rem; }

/* ---------------- Callouts / Lists ---------------- */
.callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-bright);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout-warn {
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  border-left: 3px solid var(--danger);
}

.callout-warn h3 {
  color: var(--danger);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.callout-warn p { color: var(--text-dim); }

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-dim);
  margin: 0.4rem 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--accent-bright);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin: 0.6rem 0;
  color: var(--text-dim);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-on-bright);
  background: var(--accent-bright);
}

.code-line {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.inline-email {
  font-weight: 600;
  word-break: break-all;
}

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-col p {
  color: var(--text-dim);
  max-width: 42ch;
}

.footer-email {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a { color: var(--text-dim); }

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   Breakpoints
   ========================================================= */

@media (min-width: 600px) {
  .container { width: min(100% - 3rem, var(--container)); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }

  .nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-link {
    width: auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
    color: var(--text-dim);
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-soft);
  }

  .has-dropdown { position: relative; }

  .dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.4rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
    display: none;
    flex-direction: column;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: flex;
  }

  .hero { padding: 5rem 0 4rem; }
  .page { padding: 4rem 0 5rem; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.6rem; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}