/* ============================================================
   NAME, Inc. — shared stylesheet (v3: on-brand)
   Built from the brand guide: Montserrat (headings) + Open Sans
   (body), black / white / off-white / grey / red palette,
   bright + minimal, clear & confident & approachable tone.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink:       #171717;   /* near-black, brand black */
  --ink-soft:  #5b5655;   /* brand grey */
  --paper:     #f7f0e8;   /* brand off-white */
  --card:      #ffffff;   /* brand white */

  --red:       #ec1d25;   /* brand red */
  --red-dark:  #c8151c;

  --line:      #e7dfd2;

  --display: 'Montserrat', -apple-system, sans-serif;
  --sans:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --r: 10px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:800;
  line-height:1.18;
  letter-spacing:-.01em;
  margin:0 0 .5em;
  color:var(--ink);
}
h1{ font-size:clamp(2.2rem, 4.3vw, 3.3rem); }
h2{ font-size:clamp(1.6rem, 2.6vw, 2.1rem); }
h3{ font-size:1.25rem; font-weight:700; }
p{ margin:0 0 1em; max-width:66ch; }
p.lede{ font-size:1.15rem; color:var(--ink-soft); max-width:58ch; }

.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--sans); font-weight:700; font-size:.96rem;
  padding:.85em 1.7em;
  border-radius:999px;
  border:2px solid var(--red);
  background:var(--red);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s ease, transform .1s ease;
}
.btn:hover{ background:var(--red-dark); border-color:var(--red-dark); }
.btn:active{ transform:translateY(1px); }
.btn.outline{
  background:transparent; color:var(--ink); border-color:var(--ink);
}
.btn.outline:hover{ background:var(--ink); color:#fff; }

/* ---------- Header / nav ---------- */
header.site{
  background:var(--card);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:8px;
  font-family:var(--display); font-weight:800; font-size:.8rem;
  text-decoration:none; color:var(--ink);
  text-transform:uppercase; letter-spacing:0;
  line-height:1.12;
  flex:0 0 auto;
}
.brand span{ max-width:180px; }
.brand img{ height:34px; width:auto; flex:0 0 auto; }
@media (max-width:1180px){
  .brand{ font-size:.9rem; }
  .brand span{ max-width:230px; }
  .brand img{ height:40px; }
}
@media (max-width:620px){
  .brand{ font-size:.78rem; }
  .brand span{ max-width:150px; }
  .brand img{ height:32px; }
}
nav.tabs{ display:flex; gap:0; align-items:center; flex-wrap:nowrap; flex:0 0 auto; }
nav.tabs a{
  font-size:.76rem; font-weight:700;
  text-decoration:none; color:var(--ink-soft);
  padding:8px 9px;
  border-radius:6px;
  text-transform:uppercase; letter-spacing:0;
  white-space:nowrap; flex:0 0 auto;
}
nav.tabs a:hover{ color:var(--ink); background:var(--paper); }
nav.tabs a.active{ color:var(--red); }
.menu-toggle{
  display:none; background:var(--paper); border:1px solid var(--line); border-radius:8px;
  padding:8px 12px; font-size:1rem; cursor:pointer; color:var(--ink); font-weight:700;
  text-transform:uppercase; letter-spacing:.02em;
}
@media (max-width: 1180px){
  nav.tabs{
    display:none; position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; background:var(--card);
    border-bottom:1px solid var(--line); padding:10px 16px; gap:2px;
  }
  nav.tabs.open{ display:flex; }
  nav.tabs a{ padding:12px 16px; border-radius:8px; white-space:normal; font-size:.86rem; }
  .menu-toggle{ display:inline-block; }
}

/* ---------- Hero ---------- */
.hero{ padding:48px 0 8px; }
.hero-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:44px; align-items:center; }
@media (max-width:860px){ .hero-grid{ grid-template-columns:1fr; } }
.hero .tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.82rem; font-weight:700;
  color:var(--red); background:#fdeaea;
  padding:6px 14px; border-radius:999px;
  margin-bottom:18px;
}
.hero-art{ width:100%; max-width:380px; margin:0 auto; }

/* ---------- Sections ---------- */
section{ padding:40px 0; }
section.panel{ background:var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
section.dark{ background:var(--ink); color:var(--paper); }
section.dark h2, section.dark h3, section.dark h1{ color:#fff; }
section.dark p{ color:rgba(247,240,232,.8); }
section.dark p.lede{ color:rgba(247,240,232,.85); }
section.dark .eyebrow{ color:#ff6b62; }
section.dark .card{ background:rgba(255,255,255,.06); border-color:rgba(247,240,232,.2); }
section.dark .card p{ color:rgba(247,240,232,.75); }
section.dark .card .num{ background:var(--red); }
section.dark .btn.outline{ border-color:#fff; color:#fff; }
section.dark .btn.outline:hover{ background:#fff; color:var(--ink); }
section.dark .quote-block{ background:rgba(255,255,255,.06); border-color:rgba(247,240,232,.2); }
section.dark .quote-block p{ color:#fff; }
.step-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; counter-reset:step; }
@media (max-width:800px){ .step-row{ grid-template-columns:1fr; } }
.step{ position:relative; padding-top:4px; }
.step .step-head{ display:flex; align-items:center; gap:14px; margin-bottom:10px; }
.step .step-n{
  display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 auto;
  width:40px; height:40px; border-radius:50%; background:var(--red); color:#fff;
  font-family:var(--display); font-weight:800;
}
.step .step-head h3{ margin:0; }
section.dark .step p{ color:rgba(247,240,232,.75); }
section.tight{ padding:28px 0; }
.eyebrow{
  font-family:var(--display); font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--red); margin-bottom:.6em; display:block;
}
.section-head{ max-width:640px; margin-bottom:2.2em; }

/* ---------- Cards / grid ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:800px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:28px 26px;
}
.card h3{ margin-bottom:.4em; }
.card p{ color:var(--ink-soft); margin-bottom:0; }
.card .num{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--display); font-weight:800; font-size:.9rem;
  background:var(--red); color:#fff;
  margin-bottom:14px;
}
.card .tag-label{
  display:inline-block;
  padding:5px 14px;
  border-radius:999px;
  font-family:var(--display); font-weight:700; font-size:.78rem; letter-spacing:.03em; text-transform:uppercase;
  background:var(--red); color:#fff;
  margin-bottom:14px;
}
section.dark .card .tag-label{ background:var(--red); }

/* ---------- Stat block ---------- */
.stat-block{
  background:var(--ink); color:var(--paper);
  border-radius:16px;
  padding:44px 40px;
}
.stat-block .stat-head{ color:var(--paper); opacity:.75; margin-bottom:28px; max-width:56ch; }
.stat-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:24px; }
@media (max-width:900px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-grid .stat{ border-left:3px solid var(--red); padding-left:14px; }
.stat .n{ font-family:var(--display); font-size:2.3rem; font-weight:800; line-height:1; color:#fff; }
.stat .l{ font-size:.82rem; color:var(--paper); opacity:.75; margin-top:8px; line-height:1.35; }

/* ---------- Quote ---------- */
.quote-block{
  background:var(--card);
  border:1px solid var(--line);
  border-left:4px solid var(--red);
  border-radius:0 var(--r) var(--r) 0;
  padding:22px 26px;
  margin:0;
}
.quote-block p{ font-family:var(--display); font-weight:600; font-size:1.1rem; color:var(--ink); max-width:64ch; }
.quote-block cite{ display:block; font-family:var(--sans); font-style:normal; font-weight:700; font-size:.88rem; color:var(--red); margin-top:.6em; }

/* ---------- Table ---------- */
table.ledger{ width:100%; border-collapse:collapse; margin-top:8px; background:var(--card); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; }
table.ledger th, table.ledger td{
  text-align:left; padding:12px 16px; border-bottom:1px solid var(--line);
  font-size:.95rem;
}
table.ledger th{
  font-size:.76rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#fff;
  background:var(--ink);
}
table.ledger tr:last-child td{ border-bottom:none; }
table.ledger tr.total td{ font-weight:800; background:var(--paper); }
table.ledger td.amt{ text-align:right; font-variant-numeric:tabular-nums; }

/* ---------- Lists ---------- */
ul.plain{ list-style:none; margin:0; padding:0; }
ul.plain li{
  padding:16px 0; border-bottom:1px solid var(--line);
  display:flex; gap:14px;
}
ul.plain li:last-child{ border-bottom:none; }
ul.checklist li::before{ content:"\2022"; color:var(--red); font-weight:700; flex:0 0 auto; }

/* ---------- Forms ---------- */
form.stack{ display:flex; flex-direction:column; gap:18px; max-width:640px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
label{ font-size:.86rem; font-weight:700; color:var(--ink); display:block; margin-bottom:6px; }
label small{ font-weight:400; color:var(--ink-soft); }
input[type=text], input[type=email], input[type=tel], textarea, select{
  width:100%; font-family:var(--sans); font-size:1rem; color:var(--ink);
  background:var(--card); border:1.5px solid var(--line); border-radius:8px;
  padding:11px 13px;
}
textarea{ resize:vertical; min-height:110px; }
input:focus, textarea:focus, select:focus{ outline:none; border-color:var(--red); }
fieldset{ border:1.5px solid var(--line); border-radius:8px; padding:14px 16px; }
legend{ font-size:.86rem; font-weight:700; padding:0 6px; }
.check-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; margin-top:6px; }
@media (max-width:640px){ .check-grid{ grid-template-columns:1fr; } }
.check-grid label{ display:flex; align-items:center; gap:8px; font-weight:400; margin:0; }
.check-grid input{ width:auto; }
.note{
  font-size:.88rem; color:var(--ink-soft); background:var(--paper);
  border:1.5px dashed var(--red); border-radius:8px; padding:12px 14px;
}

/* ---------- Footer ---------- */
footer.site{
  background:var(--ink); color:var(--paper);
  padding:48px 0 32px;
}
footer.site a{ color:var(--paper); text-decoration:none; }
footer.site .brand-row{ display:flex; align-items:center; gap:10px; margin-bottom:24px; }
footer.site .brand-row img{ height:34px; width:auto; }
footer.site .brand-row span{ font-family:var(--display); font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
footer.site .cols{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; margin-bottom:40px; }
@media (max-width:760px){ footer.site .cols{ grid-template-columns:1fr; gap:28px; } }
footer.site h4{ color:#fff; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; font-family:var(--display); font-weight:700; margin-bottom:14px; }
footer.site p, footer.site li{ color:rgba(247,240,232,.72); font-size:.94rem; }
footer.site ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
footer.site .bottom{
  border-top:1px solid rgba(247,240,232,.18); padding-top:22px;
  font-size:.82rem; color:rgba(247,240,232,.55);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}

/* ---------- Utility ---------- */
.center{ text-align:center; }
.mt{ margin-top:2.4em; }
.small{ font-size:.9rem; color:var(--ink-soft); }
