/* ============================================================
   NLT Marketing — Design System
   Editorial luxury layout (Altina reference) in NLT brand:
   Syne display / DM Sans body · obsidian, gold, off-white
   ============================================================ */

:root {
  /* Brand colours (kept from original site) */
  --obsidian: #0A0A0A;
  --obsidian-soft: #121210;
  --gold: #D4AF72;
  --gold-light: #E8CFA0;
  --gold-tint: rgba(212, 175, 114, 0.10);
  --gold-border: rgba(212, 175, 114, 0.28);
  --offwhite: #F5F4F0;
  --stone: #8C8C82;
  --stone-light: #B0B0A8;
  --line: rgba(245, 244, 240, 0.09);
  --error: #b42318;

  /* Type */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing scale (Altina rhythm) */
  --sp-xs: 10px;
  --sp-sm: 18px;
  --sp-md: 32px;
  --sp-lg: 48px;
  --sp-xl: 100px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 24px;
  --r-pill: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: var(--offwhite);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--obsidian); }

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

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--offwhite);
}

.display {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.headline-lg {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.headline-md {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.headline-sm {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
}

.accent { color: var(--gold); }
.accent-italic { color: var(--gold); font-style: italic; font-weight: 700; }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--stone-light);
  font-weight: 300;
}

.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 1.5; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 780px; }

section { padding: var(--sp-xl) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-lg);
}

.section-head .chip { margin-bottom: var(--sp-sm); }

.section-head p { margin-top: var(--sp-sm); }

.center { text-align: center; }

.hr {
  border: none;
  border-top: 1px solid var(--line);
}

/* ---------- Chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 16px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
}

.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--obsidian);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--offwhite);
  border-color: rgba(245, 244, 240, 0.25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-link {
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { color: var(--gold-light); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--stone-light);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--offwhite); }
.nav-links a.active { color: var(--gold); }

.nav-cta { height: 44px; padding: 12px 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 8px;
  width: 24px; height: 2px;
  background: var(--offwhite);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

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

.hero {
  padding: calc(var(--sp-xl) + 20px) 0 0;
  text-align: center;
}

.hero .chip { margin-bottom: var(--sp-md); }

/* Animated 3D logo intro */
.hero-logo {
  position: relative;
  width: min(400px, 72%);
  margin: 0 auto var(--sp-sm);
  overflow: hidden;
  border-radius: var(--r-md);
  opacity: 0;
  transform: scale(0.9);
  animation: logoIn 1.1s ease 0.15s forwards;
  will-change: transform;
}

.hero-logo img {
  width: 100%;
  mix-blend-mode: screen; /* black backdrop melts into the page */
}

.hero-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 238, 200, 0.45) 50%, transparent 58%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  animation: logoShine 4.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}

@keyframes logoIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes logoShine {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -130% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; opacity: 1; transform: none; }
  .hero-logo::after { animation: none; opacity: 0; }
}

.hero p.lead {
  max-width: 620px;
  margin: var(--sp-md) auto;
}

.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-md);
}

.hero-media {
  margin-top: calc(var(--sp-lg) + 12px);
  position: relative;
}

.hero-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.25), rgba(10,10,10,0) 30%, rgba(10,10,10,0.55));
  pointer-events: none;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--sp-xl) - 20px) 0 var(--sp-lg);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero .chip { margin-bottom: var(--sp-sm); }
.page-hero p.lead { max-width: 640px; margin: var(--sp-sm) auto 0; }

/* ---------- Stats strip ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat span {
  color: var(--stone);
  font-size: 14px;
}

/* ---------- Cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); }

.card {
  background: var(--obsidian-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  transition: border-color 0.25s ease;
}
.card:hover { border-color: var(--gold-border); }

.card h3 { margin-bottom: var(--sp-xs); }
.card p { color: var(--stone-light); font-size: 15px; }

.card .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-sm);
}

/* Numbered service rows (editorial list) */
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--sp-md);
  align-items: start;
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.service-row h3 { margin-bottom: var(--sp-xs); }
.service-row p { color: var(--stone-light); max-width: 560px; }

.service-row .btn-link { padding-top: 6px; white-space: nowrap; }

/* Feature list */
.feature-list {
  list-style: none;
  margin-top: var(--sp-sm);
}
.feature-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--stone-light);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Pricing ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--obsidian-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  position: relative;
}

.price-card.featured { border-color: var(--gold-border); background: rgba(212, 175, 114, 0.05); }

.price-card .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--obsidian);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.price-card h3 { font-size: 20px; }

.price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--sp-xs) 0;
}
.price small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0;
}

.price-card .btn { margin-top: auto; width: 100%; }
.price-card .feature-list { margin-bottom: var(--sp-md); }

.price-note {
  text-align: center;
  color: var(--stone);
  font-size: 14px;
  margin-top: var(--sp-md);
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
  counter-reset: step;
}

.step {
  padding: var(--sp-md) 0 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-sm);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--stone-light); font-size: 15px; }

/* ---------- Testimonial ---------- */

.testimonial {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.testimonial blockquote .accent { font-style: italic; }
.testimonial cite {
  display: block;
  margin-top: var(--sp-md);
  font-style: normal;
  color: var(--stone);
}
.testimonial cite b { color: var(--offwhite); font-weight: 500; }

.testimonial-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-lg);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}
.testimonial-stats div b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
}
.testimonial-stats div span { color: var(--stone); font-size: 13px; }

/* ---------- Split section (image + copy) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}
.split img {
  border-radius: var(--r-md);
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}
.split .chip { margin-bottom: var(--sp-sm); }
.split p { margin-top: var(--sp-sm); color: var(--stone-light); }

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

.cta-band {
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-band .lead { max-width: 560px; margin: var(--sp-sm) auto var(--sp-md); }
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
  color: var(--stone);
  font-size: 14px;
}
.cta-contacts a { color: var(--stone-light); }
.cta-contacts a:hover { color: var(--gold); }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stone-light);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: var(--obsidian-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.2s ease;
}
textarea { border-radius: var(--r-md); min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
select { appearance: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--stone);
  pointer-events: none;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-lg) 0;
  margin-top: var(--sp-xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { color: var(--stone); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }

.footer-legal {
  margin-top: var(--sp-md);
  color: var(--stone);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-md) var(--sp-sm); }
  .service-row { grid-template-columns: 56px 1fr; }
  .service-row .btn-link { grid-column: 2; }
}

/* Nav collapses to the hamburger menu earlier than the general 640px
   breakpoint below — with the Portfolio link added, six nav items no
   longer fit at tablet widths (e.g. 768px) without wrapping/overlapping
   the CTA button. */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-md) 24px;
    gap: var(--sp-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}
