/* ═══════════════════════════════════════════════
   IANNOVATIVE — Shared Design System
   All interior pages import this file.
═══════════════════════════════════════════════ */

/* ── Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap");

/* ── Tokens ── */
:root {
  --ink:              #0A0A0A;
  --ink-mid:          #0D0D0D;
  --cream:            #F5F0E8;
  --cream-dim:        rgba(245,240,232,0.72);
  --cream-muted:      rgba(245,240,232,0.45);
  --terracotta:       #C4714A;
  --terracotta-light: #E8A57E;
  --terracotta-glow:  #F5D5BD;
  --terracotta-deep:  #8B3F20;
  --gold:             #B8965A;
  --border:           rgba(245,240,232,0.10);
  --border-warm:      rgba(196,113,74,0.25);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Typography ── */
.font-display { font-family: 'Cormorant Garamond', ui-serif, Georgia, serif; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--terracotta-light);
}

.display-xl {
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.display-lg {
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.display-md {
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.display-sm {
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.body-lg {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream-dim);
}

.body-md {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--cream-dim);
}

.body-sm {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cream-muted);
}

.accent { color: var(--terracotta); }
.accent-light { color: var(--terracotta-light); }
.italic { font-style: italic; }

/* ── Layout ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 60px; } }

.section {
  padding: 96px 0;
}
@media (min-width: 768px) { .section { padding: 128px 0; } }

.section-sm { padding: 64px 0; }
@media (min-width: 768px) { .section-sm { padding: 96px 0; } }

/* ── Navbar ── */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 40px; height: 76px; } }

.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-decoration: none;
}
.wordmark .ian      { color: var(--terracotta); }
.wordmark .novative { color: var(--cream); }
@media (min-width: 768px) { .wordmark { font-size: 15px; } }

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 36px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 1px; width: 0;
  background: var(--terracotta-light);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(196,113,74,0.6);
  border-radius: 2px;
  padding: 9px 18px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta svg { color: var(--terracotta-light); flex-shrink: 0; transition: transform 0.2s; }
.nav-cta:hover { border-color: var(--terracotta-light); background: rgba(196,113,74,0.08); }
.nav-cta:hover svg { transform: translateX(3px); }
@media (min-width: 768px) { .nav-cta { padding: 10px 22px; font-size: 11px; } }

/* ── Page Hero (interior pages) ── */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 55vh;
  padding-top: 76px;
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 768px) { .page-hero { min-height: 62vh; } }

.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.45) 0%,
    rgba(10,10,10,0.55) 40%,
    rgba(10,10,10,0.88) 75%,
    rgba(10,10,10,1.0)  100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 60px 0 72px;
}
@media (min-width: 768px) { .page-hero-content { padding: 72px 0 88px; } }

/* ── Dividers ── */
.divider-h {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.divider-warm {
  height: 1px;
  background: linear-gradient(to right, var(--terracotta), transparent);
  width: 80px;
}

.spark-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.spark-divider-line {
  height: 1px;
  width: 56px;
  background: linear-gradient(to right, var(--terracotta), transparent);
}
.spark-divider-dot {
  width: 4px; height: 4px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 16px 32px;
  color: #1a0d05;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--gold) 100%);
  animation: glow-pulse 4s ease-in-out infinite;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary .shine {
  pointer-events: none;
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
}
.btn-primary:hover .shine { transform: translateX(100%); }
.btn-primary svg { transition: transform 0.2s; flex-shrink: 0; }
.btn-primary:hover svg { transform: translateX(5px); }

.btn-outline {
  padding: 14px 28px;
  border: 1px solid rgba(196,113,74,0.5);
  color: var(--cream);
  background: transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--terracotta-light);
  background: rgba(196,113,74,0.06);
  box-shadow: 0 0 24px -8px rgba(196,113,74,0.3);
}
.btn-outline svg { flex-shrink: 0; color: var(--terracotta-light); transition: transform 0.2s; }
.btn-outline:hover svg { transform: translateX(5px); }

/* ── Section labels ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-label-line {
  height: 1px;
  width: 40px;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 36px;
  background: rgba(255,255,255,0.025);
  transition: border-color 0.25s, background 0.25s;
}
.card:hover {
  border-color: var(--border-warm);
  background: rgba(196,113,74,0.04);
}

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: rgba(196,113,74,0.18);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Editorial image panel ── */
.editorial-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.editorial-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 18s ease;
}
.editorial-panel:hover img { transform: scale(1.04); }
.editorial-panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  padding: 72px 48px;
  text-align: center;
  background: rgba(196,113,74,0.07);
  border: 1px solid var(--border-warm);
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(196,113,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 768px) { .cta-banner { padding: 96px 64px; } }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    padding: 0 40px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
}
@media (min-width: 768px) { .footer-links { justify-content: flex-end; } }

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--terracotta-light); }

.footer-copy {
  font-size: 12px;
  color: var(--cream-muted);
  line-height: 1.6;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Keyframes ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 24px -8px rgba(196,113,74,0.35); }
  50%       { box-shadow: 0 0 36px -6px rgba(232,165,126,0.5); }
}

/* ── Utilities ── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.max-w-xl  { max-width: 560px; }
.max-w-2xl { max-width: 720px; }
.max-w-3xl { max-width: 900px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Inline SVG icon size ── */
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-md { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }

/* ── Thin separator line ── */
.sep { height: 1px; background: var(--border); }
.sep-warm { height: 1px; background: var(--border-warm); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
