/* ============================================
   AutoTink.com — Base Stylesheet
   Theme: dark, modern AI-agency look
   Swap the variables below to re-brand quickly
   ============================================ */

/* TASA Orbiter Display — free typeface (tasatype.taipei), same as clairvo.io */
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("../fonts/TASAOrbiterDisplay-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("../fonts/TASAOrbiterDisplay-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("../fonts/TASAOrbiterDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("../fonts/TASAOrbiterDisplay-Bold.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap;
}

:root {
  /* Brand colors — light theme is the default (warm cream + orange-red) */
  --bg: #f5f1ea;            /* page background */
  --bg-soft: #ede8de;       /* section alt background */
  --card: #fffdf8;          /* card background */
  --card-border: #e2dccd;   /* card border */
  --text: #191817;          /* main text */
  --text-muted: #6f6a5f;    /* secondary text */
  --accent: #e8503a;        /* primary accent (orange-red) */
  --accent-soft: #f2694f;   /* lighter accent for gradients/hover */
  --accent-glow: rgba(232, 80, 58, 0.18);
  --check: #27b657;         /* green checkmarks */

  --radius: 16px;
  --radius-pill: 999px;
  --maxw: 1140px;

  --font: "TASA Orbiter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-editorial: "Fraunces", Georgia, serif; /* italic serif for accent words, like clairvo.io */
}

/* ---------- Dark theme (toggle) ---------- */
html[data-theme="dark"] {
  --bg: #0a0d14;
  --bg-soft: #10141f;
  --card: #151a28;
  --card-border: #232a3d;
  --text: #eef1f7;
  --text-muted: #9aa3b5;
  --accent: #4f7cff;
  --accent-soft: #7ea0ff;
  --accent-glow: rgba(79, 124, 255, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
  /* subtle dotted texture across the whole site (both themes) */
  background-color: var(--bg);
  background-image: radial-gradient(var(--card-border) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

section { padding: 96px 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

.accent {
  color: var(--accent);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 12px 32px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- Navbar ---------- */
.navbar {
  position: relative;      /* flows with the page instead of sticking to the top */
  z-index: 100;
  padding: 18px 16px 0;    /* floats the pill below the top edge, with side gaps */
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Theme toggle widget ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.navbar .container {
  display: flex;
  align-items: center;
  gap: 40px;               /* even spacing, no big empty gaps */
  width: fit-content;      /* pill hugs its content instead of spreading edge to edge */
  max-width: 100%;
  margin: 0 auto;          /* centered floating pill */
  height: 68px;
  padding: 0 12px 0 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
}
.navbar .btn {            /* bigger Book a Call button */
  padding: 15px 32px;
  font-size: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-tile { fill: #e8503a; }                          /* red tile in light mode */
html[data-theme="dark"] .logo-tile { fill: #14120f; }  /* black tile in dark mode */
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);      /* black in light mode, white in dark mode */
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 3; }

/* ---------- Hero background logo watermark (hero only) ---------- */
.hero-logo {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 74vw);
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
}
.hero-logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* sharp, see-through logo body */
.hero-logo-body { fill: var(--accent); stroke: none; opacity: 0.13; }
/* soft static glow hugging the whole outline (rendered once, cheap) */
.hero-logo-glow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linejoin: round;
  opacity: 0.32;
  filter: blur(5px);
}
/* thin bright highlight that travels around the outline only */
.hero-logo-outline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  stroke-dasharray: 9 41 9 41;
  animation: heroTrace 11s linear infinite;
}
@keyframes heroTrace {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-outline { animation: none; stroke-dasharray: none; opacity: 0.45; }
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}

.hero p.sub {
  max-width: 560px;
  margin: 24px auto 36px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

/* ---------- Logo marquee ---------- */
.marquee-section { padding: 48px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.marquee-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cards grid (services, case studies, team) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { margin: 20px 0 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  font-size: 1.4rem;
}

/* ---------- Stats ---------- */
.stats-section { background: transparent; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  flex: none;
}
.step-icon svg { width: 22px; height: 22px; display: block; }
.step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.step-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Case studies ---------- */
.case-card .case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: var(--accent-glow);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 18px;
}
.case-metric {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.case-card .case-name { color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.testimonial blockquote {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  flex-shrink: 0;
}
.who-name { font-weight: 600; font-size: 0.92rem; }
.who-role { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-question .chevron { transition: transform 0.2s ease; color: var(--text-muted); }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
html[data-theme="dark"] .cta-band { background: linear-gradient(135deg, var(--accent), #2b4fd8); }
.cta-band {
  background: linear-gradient(135deg, var(--accent), #c93a24);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 16px auto 32px; }
.cta-band .btn {
  background: #fff;
  color: var(--accent);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 88px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}
.page-hero p {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 130px; }

/* ---------- Team ---------- */
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--card-border), var(--bg-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 64px 0 32px;
  background: transparent;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Alt section background (transparent so the page pattern shows) ---------- */
.section-alt { background: transparent; }

/* ---------- Service rows (numbered, text + illustration, no card boxes) ---------- */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}
/* thin divider between rows */
.service-card + .service-card { border-top: 1px solid var(--card-border); }
.service-card:first-of-type { padding-top: 24px; }
/* middle row flips: image left, text right */
.service-card.reverse { grid-template-columns: 1.25fr 1fr; }
.service-card.reverse .service-text { order: 2; }
.service-number {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.service-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.service-text > p { color: var(--text-muted); margin-bottom: 22px; }

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(39, 182, 87, 0.15);
  color: var(--check);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Illustrative mockups (dashboard windows) ---------- */
.service-visual .frame { width: 100%; }
.service-visual .window {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(28, 26, 23, 0.06);
  text-align: left;
}
.service-visual .titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-soft);
}
.service-visual .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--card-border); }
.service-visual .tb-title { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.service-visual .live { margin-left: auto; font-size: 10px; color: var(--check); display: flex; align-items: center; gap: 5px; }
.service-visual .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--check); }
.service-visual .badge { display: inline-block; font-size: 9px; padding: 3px 7px; border-radius: 20px; background: rgba(47, 158, 91, 0.14); color: var(--check); font-weight: 600; }
.service-visual .badge.grey { background: var(--bg-soft); color: var(--text-muted); }
.service-visual .small { font-size: 10px; color: var(--text-muted); }
.service-visual .totals { display: flex; gap: 22px; padding: 12px 16px; border-top: 1px solid var(--card-border); background: var(--bg-soft); }
.service-visual .m .k { font-size: 13px; font-weight: 700; }
.service-visual .m .l { font-size: 8px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.service-visual .av { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.service-visual .av svg { width: 14px; height: 14px; }
.service-visual .ig { background: #C65A85; }
.service-visual .wf { background: #7A8A5E; }
.service-visual .ad { background: #C99441; }
.service-visual .wa { background: #4FA86B; }

/* Mockup 1: automations feed */
.service-visual .statrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; padding: 14px 14px 4px; }
.service-visual .stat { background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 10px; padding: 9px 11px; }
.service-visual .stat .num { font-size: 18px; font-weight: 700; }
.service-visual .stat .lbl { font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.service-visual .delta { font-size: 9px; color: var(--check); font-weight: 600; }
.service-visual .feed { padding: 8px 14px 14px; }
.service-visual .ev { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--card-border); align-items: flex-start; }
.service-visual .ev:last-child { border: none; }
.service-visual .ic { width: 24px; height: 24px; border-radius: 8px; background: rgba(47, 158, 91, 0.14); color: var(--check); display: flex; align-items: center; justify-content: center; flex: none; }
.service-visual .ic svg { width: 12px; height: 12px; }
.service-visual .ic.red { background: rgba(232, 80, 58, 0.14); color: var(--accent); }
.service-visual .ic.grey { background: var(--bg-soft); color: var(--text-muted); }
.service-visual .ev b { font-size: 11px; display: block; }

/* Mockup 2: lead capture funnel */
.service-visual .funnel { display: grid; grid-template-columns: 1fr 44px 1.15fr; padding: 16px; gap: 0; align-items: center; }
.service-visual .chan { background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 10px; padding: 9px 11px; margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.service-visual .chan:last-child { margin: 0; }
.service-visual .chan b { font-size: 11px; display: block; }
.service-visual .chan .n { margin-left: auto; font-size: 10px; font-weight: 700; }
.service-visual .pipes { position: relative; height: 150px; }
.service-visual .pipes svg { position: absolute; inset: 0; }
.service-visual .pipes path { stroke: var(--card-border); }
.service-visual .pipebox { background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px; }
.service-visual .pipebox-title { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.service-visual .pl { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--card-border); font-size: 11px; }
.service-visual .pl:last-child { border: none; }
.service-visual .pl b { display: block; font-size: 11px; }

/* Mockup 3: calendar */
.service-visual .cal { padding: 14px; }
.service-visual .grid { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 5px; }
.service-visual .dh { font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); text-align: center; padding-bottom: 4px; }
.service-visual .th { font-size: 8px; color: var(--text-muted); text-align: right; padding-right: 4px; padding-top: 3px; }
.service-visual .cell { border: 1px dashed var(--card-border); border-radius: 7px; height: 34px; }
.service-visual .appt { border: 1px solid rgba(47, 158, 91, 0.4); background: rgba(47, 158, 91, 0.14); border-radius: 7px; height: 34px; padding: 4px 6px; }
.service-visual .appt b { font-size: 9.5px; display: block; color: var(--text); }
.service-visual .appt span { font-size: 8px; color: var(--check); font-weight: 600; }
.service-visual .appt.new { border-color: var(--accent); background: rgba(232, 80, 58, 0.14); position: relative; }
.service-visual .appt.new span { color: var(--accent); }
.service-visual .pop { position: absolute; top: -46px; left: -8px; background: #1c1a17; color: #fff; font-size: 9px; border-radius: 8px; padding: 7px 9px; width: 170px; box-shadow: 0 6px 16px rgba(28, 26, 23, 0.2); z-index: 2; }
.service-visual .pop::after { content: ''; position: absolute; bottom: -5px; left: 22px; border: 5px solid transparent; border-top-color: #1c1a17; }

/* ---------- Cal.com embed ---------- */
.cal-embed {
  min-height: 480px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.reverse { grid-template-columns: 1fr; padding: 48px 0; gap: 32px; }
  .service-card.reverse .service-text { order: 0; }
}

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

  /* full-width pill on mobile: logo left, actions right */
  .navbar .container { width: auto; justify-content: space-between; gap: 12px; padding: 0 10px 0 20px; }
  .navbar .btn { padding: 12px 22px; font-size: 0.92rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 90px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: block; }

  .cta-band { padding: 48px 24px; }
}
