/* nordicalab — styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --dark: #1c2b4a;
  --dark-2: #13203a;
  --accent: #ff6f59;
  --accent-2: #e5563f;
  --bg: #fafbfd;
  --muted: #5c6478;
  --border: #e2e6ee;
  --panel: #f2f4f9;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --shadow-sm: 0 1px 2px rgba(19, 32, 58, 0.06), 0 1px 1px rgba(19, 32, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(19, 32, 58, 0.08), 0 2px 6px rgba(19, 32, 58, 0.05);
  --shadow-lg: 0 24px 48px rgba(19, 32, 58, 0.14), 0 8px 16px rgba(19, 32, 58, 0.08);
  --shadow-accent: 0 10px 24px rgba(229, 86, 63, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

em, .accent-italic {
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

a.logo:hover { opacity: 0.8; }

.logo span { color: var(--accent-2); font-style: italic; }

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent-2);
  transition: right 0.25s ease;
}

.main-nav a:hover::after { right: 0; }

.main-nav a.active { text-underline-offset: 6px; }
.main-nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary { background: var(--dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--dark); box-shadow: var(--shadow-accent); }
.btn-accent:hover { box-shadow: 0 14px 30px rgba(229, 86, 63, 0.36); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline:hover { box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */

.hero {
  padding: 72px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-2);
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.contact-inline {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-inline-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-inline-item strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-inline-item a, .contact-inline-item span { color: var(--muted); font-size: 15px; }

.hero-art {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section shared */

.section { padding: 96px 0; }
.section-alt { background: var(--panel); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-head h2 { font-size: 38px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Support strip */

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.5s ease, box-shadow 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  transition: transform 0.25s ease;
}

.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }

.stat-figure {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.stat-card h3 { font-size: 18px; margin-bottom: 10px; }
.stat-card p { color: var(--muted); font-size: 15px; }

.support-cta { text-align: center; }

/* Category heading within products section */

.category-heading {
  font-size: 22px;
  margin: 48px 0 24px;
}

.category-heading:first-of-type { margin-top: 0; }

/* VIP pill on contact section */

.vip-pill {
  display: block;
  text-align: center;
  max-width: max-content;
  margin: 0 auto 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--dark-2);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
}

/* Products grid (filler) */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.5s ease, box-shadow 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.product-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover .product-icon { transform: scale(1.1) rotate(-6deg); }

.product-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--panel);
  color: var(--dark-2);
  padding: 5px 10px;
  border-radius: 999px;
}

.product-card h3 { font-size: 20px; }
.product-card p { color: var(--muted); font-size: 15px; }

.product-card .card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.product-card .card-footer a {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-card .card-footer a:hover { transform: translateX(3px); }

.filler-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}

/* Contact showcase */

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
}

.contact-form input,
.contact-form textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(229, 86, 63, 0.12);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  justify-self: start;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.turnstile-wrap {
  min-height: 65px;
}

/* Invisible honeypot — bots fill it, humans never see it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-2);
  min-height: 20px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-col h4 { font-size: 14px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.footer-brand p { max-width: 280px; color: var(--muted); font-size: 14px; margin-top: 12px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.social-row a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--panel);
}
.social-row svg { width: 16px; height: 16px; }

/* Scroll reveal */

.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; }

/* Cards manage their own hover transform — reveal only fades them in.
   Everything else also rises into place. */
.reveal:not(.product-card):not(.stat-card) { transform: translateY(18px); }
.reveal.is-visible:not(.product-card):not(.stat-card) { transform: translateY(0); }

/* Elements without their own hover transition get a shared one for the reveal */
.hero-copy, .hero-art, .section-head, .category-heading, .contact-cards, .contact-form {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-card, .stat-card, .product-icon, .stat-icon { transition: none; }
}

/* Responsive */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-cards { gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

/* Mobile nav open state */
.main-nav.open {
  display: flex;
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 24px 32px;
  gap: 20px;
}
