/* ==========================================================================
   Tolentino Services — TOLENTINO CARLOTTA LLC
   Ink-on-paper design system: monochrome, hairlines, editorial rhythm
   ========================================================================== */

:root {
  --paper: #fafafa;
  --paper-warm: #f4f3ef;
  --ink: #0a0a0a;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --line: #e5e5e5;
  --line-dark: #2a2a2a;
  --accent: #033399;
  --accent-soft: #e5ecff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

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

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark .brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wordmark .legal {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a.nav-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

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

.btn-sm { padding: 10px 22px; font-size: 14px; }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline {
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.25s var(--ease);
}

.link-underline:hover { opacity: 0.65; }

/* ---------- Hero ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin: 0 auto 30px;
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-2);
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: 17px;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Facts strip ---------- */

.facts-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}

.fact:first-child { border-left: none; }

.fact .fact-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.fact .fact-value {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 70px;
}

.section-label {
  position: sticky;
  top: 120px;
  align-self: start;
}

.section-label .kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.section-label h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-label p {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 260px;
}

/* ---------- Services ---------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-row:first-child { border-top: none; padding-top: 6px; }

.service-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service-price {
  font-family: var(--serif);
  font-size: 22px;
  white-space: nowrap;
  padding-top: 6px;
}

.service-price span {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
}

.service-desc {
  grid-column: 1 / -1;
  color: var(--ink-2);
  max-width: 640px;
  font-size: 16px;
}

.service-includes {
  grid-column: 1 / -1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 14px;
  color: var(--ink-3);
}

.service-includes li { display: flex; align-items: center; }
.service-includes li::after {
  content: "·";
  margin: 0 14px;
  color: var(--line-dark);
  opacity: 0.4;
}
.service-includes li:last-child::after { content: none; }

.billing-note {
  margin-top: 40px;
  padding: 26px 30px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.billing-note strong { color: var(--ink); }

/* ---------- About ---------- */

.about-body p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 22px;
}

.about-body p strong { color: var(--ink); font-weight: 600; }

.company-facts {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.company-facts .cf-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.company-facts .cf-key {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  padding: 38px 32px 42px;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.step:first-child { border-left: none; }

.step .step-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 20px;
  display: block;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
}

.contact-details .cd-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details .cd-row:first-child { border-top: 1px solid var(--line); }

.cd-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.cd-value { font-size: 16.5px; }
.cd-value a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.cd-value a:hover { border-bottom-color: var(--accent); }

.contact-form .field { margin-bottom: 26px; }

.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-size: 16px;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b6b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.form-note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 18px;
}

.form-status {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--accent);
  display: none;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 110px 0;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 700px;
  margin: 0 auto 22px;
}

.cta-band p {
  color: #b5b5b5;
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 16px;
}

.cta-band .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cta-band .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b5b5b5;
  border-top: 1px solid var(--line-dark);
  padding: 70px 0 40px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
}

.footer-brand .legal {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.footer-brand p { margin-top: 18px; max-width: 340px; color: #8e8e8e; font-size: 13.5px; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: #c9c9c9;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom { padding-top: 34px; }

.footer-bottom .copyright { color: #c9c9c9; margin-bottom: 12px; }
.footer-bottom .disclaimer { color: #7a7a7a; font-size: 13px; max-width: 860px; line-height: 1.7; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 180px 0 70px;
  border-bottom: 1px solid var(--line);
}

.legal-hero .kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.legal-hero .updated {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-3);
}

.legal-body { padding: 70px 0 110px; }

.legal-prose { max-width: 760px; }

.legal-prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.01em;
  margin: 54px 0 18px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.legal-prose p { color: var(--ink-2); margin-bottom: 16px; font-size: 16px; }

.legal-prose ul {
  margin: 0 0 16px 22px;
  color: var(--ink-2);
}

.legal-prose li { margin-bottom: 8px; }

.legal-prose a { color: var(--accent); }

.legal-prose strong { color: var(--ink); }

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .section-split { grid-template-columns: 1fr; gap: 40px; }
  .section-label { position: static; }
  .section-label p { max-width: 520px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .fact { border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 28px 28px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { font-size: 17px; padding: 10px 0; }
  .main-nav .btn { margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: auto; padding: 150px 0 80px; }
  .section { padding: 80px 0; }
  .company-facts .cf-row { grid-template-columns: 1fr; gap: 4px; }
  .service-row { grid-template-columns: 1fr; }
  .service-price { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
