/* Balanico Interior Studio — shared styles */

:root {
  --color-bg: #eef2fb;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-accent: #0e7490;
  --color-accent-soft: #155e75;
  --color-accent-2: #6366f1;
  --color-tint: rgba(14, 116, 144, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Georgia", serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(14, 116, 144, 0.06), 0 20px 50px rgba(67, 56, 202, 0.07);
  --radius: 14px;
  --max-width: 1140px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(1100px 500px at 8% -10%, rgba(14, 116, 144, 0.14), rgba(14, 116, 144, 0) 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0) 58%),
    radial-gradient(700px 360px at 50% 100%, rgba(14, 116, 144, 0.06), rgba(14, 116, 144, 0) 50%),
    var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Light “white page” surfaces */
.site-header,
.hero,
.page-hero,
.site-footer {
  background: rgba(255, 255, 255, 0.96);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-tint);
  color: var(--color-accent-soft);
  border: 1px solid rgba(14, 116, 144, 0.22);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.header-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-accent);
}

.logo__mark {
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.2);
}

.logo__text span {
  font-weight: 400;
  color: var(--color-text-muted);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-brand-row .logo__mark {
  width: 32px;
  height: 32px;
}

.footer-brand-row .footer-brand {
  margin: 0;
}

.info-strip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-strip__item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.info-strip__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.faq {
  max-width: 42rem;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
}

.faq details:hover {
  border-color: rgba(14, 116, 144, 0.22);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style-position: outside;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.faq p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.data-table th {
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  max-width: 42rem;
}

.toc h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.toc a {
  color: var(--color-text);
}

.split-banner {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.split-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  max-height: 320px;
}

@media (max-width: 700px) {
  .info-strip {
    grid-template-columns: 1fr;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
}

.nav-toggle:hover {
  border-color: rgba(14, 116, 144, 0.35);
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--color-accent);
}

/* Desktop nav (inline) */
.nav-main {
  position: static;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  padding: 0;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: none;
}

.nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-main li {
  border-bottom: 0;
}

.nav-main li:last-child {
  border-bottom: 0;
}

.nav-main a {
  display: inline-block;
  padding: 0;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section--tight {
  padding: 2rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero {
  background:
    radial-gradient(880px 320px at 12% 0%, rgba(14, 116, 144, 0.14), rgba(14, 116, 144, 0) 58%),
    radial-gradient(720px 280px at 88% 12%, rgba(99, 102, 241, 0.11), rgba(99, 102, 241, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero-img {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-img--float {
    animation: hero-float 9s ease-in-out infinite;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #0e7490 0%, #0f766e 42%, #4338ca 165%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(14, 116, 144, 0.32);
  transition: background-position 0.4s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.btn--primary:hover {
  background-position: 100% 50%;
  color: #fff;
  box-shadow: 0 8px 26px rgba(67, 56, 202, 0.22);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--accent2 {
  background: var(--color-accent-2);
  color: #fff;
}

.btn--accent2:hover {
  filter: brightness(0.95);
  color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card,
.btn {
  will-change: transform;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

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

.card--tint {
  background: linear-gradient(165deg, rgba(14, 116, 144, 0.07), rgba(99, 102, 241, 0.04));
  border-color: rgba(14, 116, 144, 0.14);
}

/* Reveal: visible by default; animate only when JS enabled */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children when parent section reveals */
.js .reveal.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.reveal-stagger.is-visible > * {
  animation: rise-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js .reveal.reveal-stagger.is-visible > *:nth-child(1) {
  animation-delay: 0.04s;
}

.js .reveal.reveal-stagger.is-visible > *:nth-child(2) {
  animation-delay: 0.1s;
}

.js .reveal.reveal-stagger.is-visible > *:nth-child(3) {
  animation-delay: 0.16s;
}

.js .reveal.reveal-stagger.is-visible > *:nth-child(4) {
  animation-delay: 0.22s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .reveal.reveal-stagger > *,
  .js .reveal.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: 1.25rem 1.35rem;
}

.card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.card__body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.page-hero {
  background:
    radial-gradient(640px 240px at 18% 0%, rgba(14, 116, 144, 0.12), rgba(14, 116, 144, 0) 58%),
    radial-gradient(520px 200px at 92% 20%, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 0;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.prose h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose ul {
  color: var(--color-text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.contact-block h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.contact-block address {
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.9rem;
  align-items: end;
}

.notice {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.07), rgba(99, 102, 241, 0.03));
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.notice strong {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.footer-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-col h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* —— Balanico homepage accents —— */
.stats-bar {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.06), rgba(99, 102, 241, 0.05));
}

.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  animation: stats-shine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes stats-shine {
  0%,
  100% {
    transform: translateX(-30%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    transform: translateX(30%);
    opacity: 0.6;
  }

  80% {
    opacity: 1;
  }
}

.stats-bar-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat__lab {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.gradient-ribbon {
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  color: #f8fafc;
  background: linear-gradient(125deg, #0e7490 0%, #0f766e 35%, #4338ca 100%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.gradient-ribbon::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 45%);
  animation: ribbon-pulse 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ribbon-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(0, 0);
  }

  50% {
    opacity: 1;
    transform: translate(4%, 3%);
  }
}

.gradient-ribbon h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

.gradient-ribbon p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.94;
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 0.65rem;
  left: 1rem;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(14, 116, 144, 0.2);
  pointer-events: none;
}

.quote-card blockquote {
  margin: 0;
  padding-left: 0.5rem;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.quote-card footer {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  padding: 1rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.marquee span {
  opacity: 0.85;
}

.marquee span:not(:last-child)::after {
  content: " · ";
  margin-left: 1rem;
  opacity: 0.45;
}

.pillar-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  flex-shrink: 0;
}

.pillar-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .stats-bar-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-bar::before,
  .gradient-ribbon::after {
    animation: none;
  }

  html.js .hero-img--float {
    animation: none;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.25rem;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Mobile popover menu */
  .nav-main {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: var(--header-h);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0.9rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-main.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-main ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav-main li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-main li:last-child {
    border-bottom: 0;
  }

  .nav-main a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-main {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-main {
    transition: none;
  }
}
