/* ============================================================
   Caratel marketing site — caratel.co.uk
   Palette: charcoal base, warm ivory text, champagne-gold accent.
   Type: Fraunces (display serif) + Inter (UI sans).
   ============================================================ */

:root {
  --bg: #121215;
  --bg-raised: #1a1a1f;
  --bg-card: #1e1e24;
  --line: rgba(201, 169, 106, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f2ede4;
  --ink-dim: #b5afa3;
  --gold: #c9a96a;
  --gold-bright: #e3c88f;
  --gold-deep: #a98944;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.section-title em,
h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.section-sub {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #17130a;
  box-shadow: 0 6px 24px rgba(201, 169, 106, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201, 169, 106, 0.4);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { display: block; text-align: center; margin-top: auto; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(18, 18, 21, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
}

.brand-mark { width: 26px; height: 26px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

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

.nav-links a:not(.btn) {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 170px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero-facets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(201, 169, 106, 0.10), transparent 70%),
    linear-gradient(115deg, transparent 46%, rgba(201, 169, 106, 0.05) 46.5%, transparent 47%),
    linear-gradient(65deg, transparent 60%, rgba(201, 169, 106, 0.05) 60.5%, transparent 61%),
    linear-gradient(150deg, transparent 30%, rgba(201, 169, 106, 0.04) 30.5%, transparent 31%);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}

.hero .lede {
  color: var(--ink-dim);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-reassure {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}

/* framed screenshot */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(201, 169, 106, 0.07);
}

.shot img { cursor: zoom-in; }

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #232329;
  border-bottom: 1px solid var(--line-soft);
}

.shot-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.shot-chrome i:first-child { background: rgba(201, 169, 106, 0.55); }

.shot-chrome span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.hero-shot {
  max-width: 980px;
  margin: 64px auto 0;
}

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-raised);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 54px 24px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.45;
}

/* ---------- problem ---------- */

.problem { text-align: center; }
.problem .section-sub { margin-left: auto; margin-right: auto; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.p-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.p-card:hover { border-color: var(--line); transform: translateY(-3px); }

.p-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin-bottom: 12px;
  color: var(--gold-bright);
}

.p-card p { color: var(--ink-dim); font-size: 15px; }

/* ---------- bento features ---------- */

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tile {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tile:hover { border-color: var(--line); transform: translateY(-3px); }

.tile h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 12px;
}

.tile p { color: var(--ink-dim); font-size: 15px; }

.tile-wide {
  grid-column: span 2;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  padding-right: 0;
}

.tile-wide .tile-text { flex: 1 1 55%; }

.tile-wide .tile-shot {
  flex: 1 1 45%;
  align-self: stretch;
  position: relative;
  min-height: 220px;
  border-top-left-radius: 10px;
  border: 1px solid var(--line-soft);
  border-right: none;
  border-bottom: none;
  overflow: hidden;
  transform: translateY(26px);
}

.tile-wide .tile-shot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  max-width: none;
}

/* ---------- product tour ---------- */

.tour-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 90px;
}

.tour-row-flip .tour-text { order: 2; }
.tour-row-flip .shot { order: 1; }

.tour-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 14px;
}

.tour-text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.tour-text p { color: var(--ink-dim); font-size: 16px; }

/* ---------- managed ---------- */

.managed {
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.managed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.m-card {
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}

.m-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-bright);
}

.m-card p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- pricing ---------- */

.pricing { text-align: center; }
.pricing .section-sub { margin-left: auto; margin-right: auto; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  text-align: left;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.price-card:hover { transform: translateY(-3px); }

.price-featured {
  border-color: var(--gold);
  box-shadow: 0 0 50px rgba(201, 169, 106, 0.12);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #17130a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 6px;
}

.price-who {
  color: var(--ink-dim);
  font-size: 14px;
  min-height: 42px;
  margin-bottom: 18px;
}

.price-figure {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 22px;
}

.price-figure strong {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 2px;
}

.price-figure span { font-size: 15px; }

.price-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.price-card li {
  padding: 9px 0 9px 28px;
  font-size: 14.5px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
}

.price-note {
  margin-top: 36px;
  color: var(--ink-dim);
  font-size: 14.5px;
}

.price-note strong { color: var(--gold-bright); }

/* ---------- faq ---------- */

.faq-container { max-width: 780px; }

.faq-list details {
  border-bottom: 1px solid var(--line-soft);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-weight: 600;
  font-size: 16.5px;
  position: relative;
  transition: color 0.15s ease;
}

.faq-list summary:hover { color: var(--gold-bright); }
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  color: var(--ink-dim);
  font-size: 15px;
  padding: 0 40px 24px 0;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}

.cta-inner { position: relative; }
.cta .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0;
  background: var(--bg-raised);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { color: var(--gold-bright); }

.footer-note { color: var(--ink-dim); font-size: 13px; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

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

/* ---------- case study ---------- */

.cs-hero {
  position: relative;
  padding: 150px 0 70px;
  overflow: hidden;
}

.cs-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin-bottom: 24px;
}

.cs-hero .lede {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 660px;
}

.cs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.cs-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.18;
  margin: 64px 0 18px;
}

.cs-body h2:first-child { margin-top: 0; }
.cs-body h2 em { font-style: italic; color: var(--gold-bright); }

.cs-body p {
  color: var(--ink-dim);
  font-size: 16.5px;
  margin-bottom: 18px;
  max-width: 640px;
}

.cs-body ul {
  list-style: none;
  margin: 8px 0 18px;
}

.cs-body li {
  padding: 8px 0 8px 26px;
  color: var(--ink-dim);
  font-size: 15.5px;
  position: relative;
}

.cs-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
}

.cs-body li strong { color: var(--ink); }

.cs-body .shot { margin: 34px 0 44px; }

.facts-card {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.facts-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--gold-bright);
}

.facts-card dl { margin: 0; }

.facts-card dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

.facts-card dt:first-child { margin-top: 0; }

.facts-card dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink-dim);
}

.cs-quote {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 44px 0;
}

.cs-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 560px;
}

.cs-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-dim);
}

/* homepage case-study teaser */

.cs-teaser {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}

.cs-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 24px;
}

.cs-teaser h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.cs-teaser h2 em { font-style: italic; color: var(--gold-bright); }

.cs-teaser p { color: var(--ink-dim); font-size: 15.5px; max-width: 560px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .section { padding: 80px 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; flex-direction: column; padding-right: 30px; }
  .tile-wide .tile-shot {
    width: 100%;
    min-height: 200px;
    transform: translateY(32px);
    margin-top: 8px;
    border-right: 1px solid var(--line-soft);
  }
  .tile-wide .tile-shot img { width: 140%; }

  .tour-row,
  .tour-row-flip { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; }
  .tour-row-flip .tour-text { order: 1; }
  .tour-row-flip .shot { order: 2; }

  .managed-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-layout { grid-template-columns: 1fr; gap: 40px; }
  .facts-card { position: static; }
  .cs-teaser-inner { flex-direction: column; align-items: flex-start; padding: 56px 24px; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-featured { order: -1; }
  .price-who { min-height: 0; }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(18, 18, 21, 0.98);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 24px 24px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a:not(.btn) {
    padding: 14px 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links .btn { margin-top: 18px; }
  .nav-toggle { display: block; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 130px 0 70px; }
  .managed-grid { grid-template-columns: 1fr; }
  .stats-grid { padding: 40px 12px; }
}
