/* Norqio — Nordic mist design system */
:root {
  --bg: #e4e9ee;
  --bg-soft: #d8dfe6;
  --text: #1a2229;
  --text-muted: #4a5560;
  --accent: #4f7a66;
  --accent-light: #6b9478;
  --accent-dark: #3d5f4f;
  --frost: rgba(255, 255, 255, 0.55);
  --frost-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 4px 24px rgba(26, 34, 41, 0.06);
  --radius: 6px;
  --font-display: "Literata", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
  --transition: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 255, 255, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(79, 122, 102, 0.08) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--frost);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--frost-border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--text-muted);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
}

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

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

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

/* Hero & sections */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  font-style: italic;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text-muted);
}

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

main { padding-bottom: 3rem; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-alt {
  background: var(--frost);
  border-top: 1px solid var(--frost-border);
  border-bottom: 1px solid var(--frost-border);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card h3 { color: var(--accent-dark); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding: 1.25rem 1.5rem;
  background: var(--frost);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

/* Content prose */
.prose {
  max-width: 42rem;
}

.prose-wide { max-width: 52rem; }

.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.prose-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* FAQ accordion */
.faq-list { list-style: none; padding: 0; max-width: 48rem; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--bg-soft);
  background: var(--frost);
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after { content: "−"; }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.is-open .faq-answer { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 48rem;
}

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

.contact-block h3 { color: var(--accent-dark); margin-bottom: 0.75rem; }

.contact-block a { font-weight: 600; word-break: break-word; }

/* Notice boxes */
.notice {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.notice-info {
  background: rgba(79, 122, 102, 0.12);
  border-left: 4px solid var(--accent);
}

.notice-warning {
  background: rgba(26, 34, 41, 0.06);
  border-left: 4px solid var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(228, 233, 238, 0.85);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand .logo {
  color: var(--bg);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.9rem; opacity: 0.8; }

.footer-nav h4,
.footer-legal h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-nav a,
.footer-legal a {
  color: rgba(228, 233, 238, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.footer-nav a:hover,
.footer-legal a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(228, 233, 238, 0.15);
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
}

.footer-age {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Age gate overlay */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 34, 41, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate[hidden] { display: none; }

.age-gate-panel {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.age-gate-panel h2 { margin-bottom: 1rem; }

.age-gate-panel p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.age-gate-actions .btn { width: 100%; }

.age-gate-decline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--accent);
  line-height: 1;
  opacity: 0.4;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--frost);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--frost-border);
    padding: 1rem 1.5rem;
    display: none;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-soft);
  }

  .hero { padding-top: 2.5rem; }
}

/* Contact form */
.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--frost-border, #c5ced6);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--frost-border, #c5ced6);
  background: #fff;
  padding: 0.85rem;
  color: var(--text, #1a2229);
  font: inherit;
  border-radius: 2px;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form .form-help {
  margin: 0;
  color: var(--text-muted, #5a6874);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .full,
  .contact-form button,
  .contact-form .form-help { grid-column: 1 / -1; }
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .card:hover { transform: none; }
}
