/* ============================================
   CLASSIC SMART — DESIGN SYSTEM
   Palette: the actual Classic Smart brand —
   brand red (#CF402C) as the one accent color,
   dark slate ink, light paper background.
   --gold is kept as a variable name for the
   quiet mono/label role but is now a neutral
   slate, not a second accent — this is a one-
   accent brand, not a multi-color one.
   ============================================ */

:root {
  --paper: #F9FAFB;
  --paper-alt: #F1F2F4;
  --ink: #111827;
  --ink-soft: #4B5563;
  --deep: #CF402C;
  --deep-2: #111827;
  --gold: #6B7280;
  --brick: #9C4A38;
  --line: #E5E7EB;
  --white: #FFFFFF;

  /* Status colors — separate from the brand accent so "good/on track"
     doesn't render in the same red used for CTAs and "needs attention". */
  --status-good: #15803D;
  --status-warn: #B45309;
  --status-bad: #CF402C;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--deep-2);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.55rem); line-height: 1.18; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 14px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--deep);
  display: inline-block;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--deep-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--deep-2); flex-shrink: 0; }
.logo img { height: 30px; width: auto; display: block; }
.logo-text .accent { color: var(--deep); }

/* ---------- Client logo marquee ---------- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logo-scroll 24s linear infinite;
}
.logo-track img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  flex-shrink: 0;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 560px) { .logo-track { gap: 32px; } .logo-track img { height: 32px; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--deep-2); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 500;
  flex-wrap: nowrap;
}
.nav-links a:hover { color: var(--deep); }
.nav-links a.current { color: var(--deep); border-bottom: 2px solid var(--deep); padding-bottom: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a, .nav-links .btn { width: 100%; padding: 14px 24px; box-sizing: border-box; }
  .nav-links .btn { margin: 8px 24px 16px; width: calc(100% - 48px); justify-content: center; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.alt-bg { background: var(--paper-alt); }
.deep-bg {
  background: var(--deep-2);
  color: var(--paper);
}
.deep-bg h1, .deep-bg h2, .deep-bg h3 { color: var(--white); }
.deep-bg .lede { color: #D1D5DB; }
.deep-bg .eyebrow { color: var(--gold); }

/* Lighter CTA treatment — used instead of deep-bg for most sections,
   so the site reads as a consultancy, not a dark-mode SaaS product. */
.accent-band {
  background: #FBF0EE;
  border-top: 1px solid #F0D5D0;
  border-bottom: 1px solid #F0D5D0;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-support {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.95rem; }
.card .num {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--deep);
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Photo placeholder (belief-section images, pending real photos) ---------- */
.img-placeholder {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 260px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.pillar-card .kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pillar-card a.more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--deep);
  font-size: 0.9rem;
}
.pillar-card a.more:hover { text-decoration: underline; }
.testimonial-featured {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-featured .quote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
}
.testimonial-featured .name { font-weight: 700; margin-top: 16px; }
.testimonial-featured .role { color: var(--ink-soft); font-size: 0.9rem; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card .quote {
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-grow: 1;
}
.testimonial-card .name { font-weight: 700; font-size: 0.92rem; }
.testimonial-card .role { color: var(--ink-soft); font-size: 0.85rem; }

.testimonial-slider { max-width: 740px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-slide { flex: 0 0 100%; box-sizing: border-box; text-align: center; padding: 4px 8px; }
.testimonial-slide .quote { font-size: 1.05rem; font-style: italic; color: var(--ink); line-height: 1.65; }
.testimonial-slide .name { font-weight: 700; margin-top: 16px; }
.testimonial-slide .role { color: var(--ink-soft); font-size: 0.9rem; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.dot.active { background: var(--deep); }

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.portfolio-item img { width: 100%; height: 210px; object-fit: cover; display: block; }
.portfolio-item .cap { padding: 12px 14px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.modal-box input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* ---------- Before / After (the "show, don't tell" component) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-panel {
  border-radius: var(--radius);
  padding: 26px;
}
.compare-panel.before {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  color: var(--ink-soft);
}
.compare-panel.after {
  background: var(--white);
  border: 1px solid var(--deep);
}
.compare-panel h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.compare-panel.before h4 { color: var(--ink-soft); }
.compare-panel.after h4 { color: var(--deep); }
.compare-panel ul { margin: 0; padding-left: 18px; }
.compare-panel li { margin-bottom: 8px; font-size: 0.95rem; }
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--deep);
}
@media (max-width: 760px) { .compare-arrow { transform: rotate(90deg); padding: 4px 0; } }

ul.tight { margin: 0; padding-left: 18px; }
ul.tight li { margin-bottom: 8px; font-size: 0.95rem; }
ul.nobullet { list-style: none; margin: 0; padding: 0; }
ul.nobullet li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
ul.nobullet li::before {
  content: "";
  min-width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--deep);
  margin-top: 8px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.trust-strip.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .trust-strip, .trust-strip.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-strip, .trust-strip.cols-4 { grid-template-columns: 1fr; } }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Price card ---------- */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep-2);
  margin: 6px 0 16px;
}
.price-card.featured { border: 2px solid var(--deep); position: relative; }
.price-card.featured::before {
  content: "MOST COMMON";
  position: absolute;
  top: -12px; left: 24px;
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band .lede { margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--deep-2);
  color: #D1D5DB;
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
footer.site-footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid a { display: block; margin-bottom: 8px; color: #D1D5DB; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9CA3AF;
}
footer .logo { color: var(--white); }
footer .logo span { color: var(--deep); }

/* ---------- Form ---------- */
form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--deep-2); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--deep); outline-offset: 1px; }
.checkbox-group { display: grid; gap: 10px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-group input { width: auto; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .logo-track { animation: none !important; }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 560px) { .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; } .whatsapp-float svg { width: 26px; height: 26px; } }
