/* brand.css — TINIA brand system
 * Owns: all visual tokens, typography, layout, responsive rules.
 * Does NOT own: analytics, view logic, routing.
 */

/* Google Fonts loaded in layout.ejs <head> */

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

:root {
  --notte:    #1a1a1a;
  --oro:      #c9a96c;
  --avorio:   #f0ede4;
  --ardesia:  #4a5568;
  --conforme: #2d6a4f;
  --text:     #f0ede4;
  --text-muted: #9a9a8e;
  --border:   rgba(201,169,108,0.15);
  --border-light: rgba(26,26,26,0.1);
  --container: 1100px;
  --radius:   4px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--notte);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: var(--oro); text-decoration: none; }
a:hover { color: #dfc08a; }

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

/* ===== NAV ===== */
nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(16px);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark svg {
  width: 36px;
  height: 36px;
}
.nav-wordmark {
  display: flex;
  flex-direction: column;
}
.nav-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.1;
}
.nav-descriptor {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--oro) !important;
  color: var(--oro) !important;
  padding: 8px 22px;
  border-radius: 2px;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s !important;
}
.nav-cta:hover {
  background: var(--oro) !important;
  color: var(--notte) !important;
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}
.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
  display: block;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-standards {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--oro);
  margin-bottom: 28px;
}
.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--oro);
  color: var(--notte);
}
.btn-primary:hover { background: #dfc08a; color: var(--notte); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--oro); color: var(--oro); }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== WHY SECTION (avorio bg) ===== */
.why-section {
  padding: 100px 0;
  background: var(--avorio);
  color: var(--notte);
}
.why-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--notte);
}
.why-section .section-sub {
  color: var(--ardesia);
}
.story-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.pillar {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.pillar-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.pillar h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--notte);
}
.pillar p {
  font-size: 14px;
  color: var(--ardesia);
  margin: 0;
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features { padding: 100px 0; }
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.15;
  color: var(--text);
}
.section-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s;
}
.feature-card:hover { border-color: var(--oro); }
.feature-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,169,108,0.08);
  border: 1px solid rgba(201,169,108,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 6px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===== HOW IT WORKS (avorio bg) ===== */
.how {
  padding: 100px 0;
  background: var(--avorio);
  color: var(--notte);
}
.how .section-label { color: var(--oro); }
.how .section-title { color: var(--notte); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.step { text-align: center; }
.step-num {
  width: 44px;
  height: 44px;
  border: 2px solid var(--oro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--oro);
  margin: 0 auto 16px;
}
.step h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--notte);
}
.step p {
  font-size: 14px;
  color: var(--ardesia);
  margin: 0;
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
  padding: 120px 0;
  text-align: center;
}
.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 72px 48px;
  background: rgba(255,255,255,0.02);
}
.cta-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}
.cta-box p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-box .btn-primary { font-size: 15px; padding: 16px 36px; }
.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-mark {
  width: 28px;
  height: 28px;
}
.footer-logo-mark svg {
  width: 28px;
  height: 28px;
}
.footer-brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
}
.footer-brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--oro); }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-etrusca {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.6;
}

/* ===== GOLD LINE SEPARATOR ===== */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--oro);
  margin: 0 auto 24px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .story-pillars { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 48px 24px; }
  .hero { padding: 80px 0 60px; }
  .why-section, .features, .how, .cta-section { padding: 72px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
