/* Mikkelai - Unique design system 2026
   Palette: Graphite Night + Ice Mist + Copper Accent
   Radius: 28px soft organic
   Shadows: diffused soft
   Buttons: pill
   Cards: borderless with soft lift
   Spacing: generous 2.5-4rem
   Layout: asymmetric magazine with clip-path accents
*/

:root {
  --bg: #F7F5F2;
  --bg-alt: #EFEBE6;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --muted: #78716C;
  --accent: #C2410C; /* copper terracotta */
  --accent-soft: #FED7AA;
  --ice: #E0F2FE;
  --graphite: #1E293B;
  --line: rgba(28, 25, 23, 0.08);
  --radius: 28px;
  --radius-sm: 14px;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.07);
  --shadow-soft: 0 4px 20px rgba(28, 25, 23, 0.04);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --max: 1180px;
  --gap: 3rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--graphite);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.5rem;
}

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

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: 0.25s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--ice) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: end;
}

.hero-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 2.2rem;
}

.hero-side {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-side::before {
  content: "01";
  position: absolute;
  top: -1.4rem;
  right: 1.8rem;
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  opacity: 0.9;
}

.hero-side p {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 40rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

/* Asymmetric feature blocks */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-text h3 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.feature-text p {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.feature-visual {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.35;
  bottom: -40px;
  right: -30px;
}

.feature-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.6rem;
}

/* Articles grid - unique staggered */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.8rem;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

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

.article-card:nth-child(1) { grid-column: 1 / 8; }
.article-card:nth-child(2) { grid-column: 8 / 13; }
.article-card:nth-child(3) { grid-column: 1 / 6; }
.article-card:nth-child(4) { grid-column: 6 / 13; }
.article-card:nth-child(5) { grid-column: 1 / 13; }

.article-meta {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.article-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.article-card h3 a {
  color: var(--ink);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.4rem;
}

.read-more {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.read-more::after {
  content: "→";
  transition: transform 0.2s;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* CTA band */
.cta-band {
  background: var(--graphite);
  color: #F8FAFC;
  padding: 4.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(194, 65, 12, 0.15) 100%);
  pointer-events: none;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.cta-inner p {
  color: #CBD5E1;
  max-width: 36ch;
  margin-top: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #9A3412;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 4.5rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .breadcrumb {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.page-hero .breadcrumb a {
  color: var(--muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--accent);
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Content area */
.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.content-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.content-wrap h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
}

.content-wrap p {
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
}

.content-wrap ul,
.content-wrap ol {
  margin: 0 0 1.5rem 1.4rem;
  color: var(--ink-soft);
}

.content-wrap li {
  margin-bottom: 0.55rem;
}

.content-wrap blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 0 0.8rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* About special layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  align-items: start;
}

.about-side {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.about-side .label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.about-side h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-side p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-main p {
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.contact-info p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.contact-details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.contact-details dt {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-details dd {
  margin-bottom: 1.3rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.contact-details dd:last-child {
  margin-bottom: 0;
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* Thank you */
.thank-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.thank-wrap h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.thank-wrap p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--graphite);
  color: #E2E8F0;
  padding: 4rem 1.5rem 2.5rem;
}

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

.footer-brand .logo {
  color: #F8FAFC;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #94A3B8;
  max-width: 28ch;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  color: #E2E8F0;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

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

.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #CBD5E1;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-bottom a {
  color: #94A3B8;
  margin-left: 1.2rem;
}

.footer-bottom a:hover {
  color: #F8FAFC;
}

.disclaimer {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.5;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .feature-row:nth-child(even) {
    direction: ltr;
  }

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

  .article-card:nth-child(n) {
    grid-column: auto;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-side {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  html { font-size: 16px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 4rem 1.2rem 3.5rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }

  .content-wrap {
    padding: 2.5rem 1.2rem 4rem;
  }
}
