/* ═══════════════════════════════════════════════════════════════════════════
   Samrtisan — website styles
   Palette: warm paper, warm ink, wood brown, forest green
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1c1714;
  --ink-soft:   #5c4f44;
  --ink-muted:  #9b8f84;
  --paper:      #f8f4ee;
  --paper-warm: #f0ebe2;
  --paper-mid:  #e8e1d6;
  --wood:       #7c5c3a;
  --wood-light: #b08a60;
  --forest:     #4a6741;
  --white:      #ffffff;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-width: 1100px;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

em { font-style: italic; }

p { color: var(--ink-soft); }

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

/* ── Layout utilities ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.8; }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-mid);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-tld {
  color: var(--wood-light);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--paper-mid);
  transition: color 0.15s, border-color 0.15s;
}
.nav-cta:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 8vw, 6rem) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 1.5rem;
}

.hero-headline {
  margin-bottom: 1.75rem;
  color: var(--ink);
}

.hero-sub {
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-image-slot {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--paper-mid);
  min-height: 100%;
}

.hero-image-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(12px);
  transform: scale(1.05); /* avoids blurred edges showing white gaps */
}

/* ── Manifesto ───────────────────────────────────────────────────────────── */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.manifesto-statement h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  position: sticky;
  top: 6rem;
}

.manifesto-body p {
  color: rgba(240, 235, 226, 0.75);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.manifesto-body p:last-child { margin-bottom: 0; }

/* ── What a scan reveals ─────────────────────────────────────────────────── */
.reveal {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--paper);
}

.reveal-header {
  max-width: 60ch;
  margin-bottom: 3.5rem;
}

.reveal-header h2 {
  margin-bottom: 1rem;
}

.reveal-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--paper-mid);
  border: 1px solid var(--paper-mid);
  margin-bottom: 3rem;
}

.reveal-card {
  background: var(--white);
  padding: 2rem 1.75rem;
}

.reveal-card-icon {
  font-size: 1.4rem;
  color: var(--wood);
  margin-bottom: 1rem;
  line-height: 1;
}

.reveal-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.reveal-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.reveal-footnote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  max-width: 55ch;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.how {
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-mid);
  border-bottom: 1px solid var(--paper-mid);
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.how-text h2 {
  margin-bottom: 1.5rem;
}

.how-text p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.how-text p:last-child { margin-bottom: 0; }

/* Phone mock */
.how-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: min(280px, 80%);
  background: var(--ink);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 32px 80px rgba(28, 23, 20, 0.22);
}

.phone-mock-screen {
  background: #f0ebe2;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px;
}

.mock-row { display: flex; gap: 3px; }
.mock-row-full { flex-direction: column; }
.mock-row-split { flex-direction: row; }

.mock-block {
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0.7rem;
  display: flex;
  align-items: center;
}

.mock-row-split .mock-block { flex: 1; }

.mock-hero    { background: #7c54d4; min-height: 70px; }
.mock-cert    { background: #d4a017; }
.mock-mat     { background: #3aaa68; }
.mock-gallery { background: #2aa89a; min-height: 50px; }
.mock-care    { background: #d4702a; }

/* ── Collective ───────────────────────────────────────────────────────────── */
.collective {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--paper);
}

.collective-inner {
  max-width: 760px;
}

.collective-inner h2 {
  margin-bottom: 1.75rem;
}

.collective-inner > p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.collective-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--paper-mid);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.value-item strong {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.value-item span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Join ────────────────────────────────────────────────────────────────── */
.join {
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-mid);
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.join-headline {
  margin-bottom: 3rem;
}

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

.join-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-card-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-light);
}

.join-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--ink);
  margin-top: 0.25rem;
}

.join-card p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.join-card-note {
  font-size: 0.85rem !important;
  color: var(--ink-muted) !important;
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px solid var(--paper-mid);
}

.join-card .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(248, 244, 238, 0.12);
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(248, 244, 238, 0.5);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(248, 244, 238, 0.5);
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(248, 244, 238, 0.8);
  border-bottom: 1px solid rgba(248, 244, 238, 0.2);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--paper); }

.footer-divider { opacity: 0.3; }

.footer-legal {
  font-size: 0.78rem;
  color: rgba(248, 244, 238, 0.3);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 780px) {

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-inner {
    padding: 7rem var(--gutter) 3rem;
  }

  .hero-image-slot {
    display: none;
  }

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

  .manifesto-statement h2 {
    position: static;
  }

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

  .how-visual {
    order: -1;
  }

  .collective-values {
    grid-template-columns: 1fr;
  }

  /* join-grid handled by auto-fit */

  .footer-inner {
    flex-direction: column;
  }
}

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