/* ============================================================
   RENOVAR PAINT LANDING PAGE — base.css
   Design system foundation: tokens, reset, shared components.
   Brand: Renovar main-site "Blueprint Bold" — paper white / ink,
   brand red (#2E72B0), Bebas Neue display + Archivo body,
   squared geometry, drafting-label details.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Colors — main-site red system */
  --accent: #2E72B0;
  --accent-light: #5B96CC;
  --accent-dark: #225586;
  --accent-soft: #DEEAF5;
  --ink: #1E1E1E;
  --ink-2: #141416;
  --bg: #ffffff;
  --bg-alt: #F6F5F2;
  --text: #1E1E1E;
  --text-muted: #5F5C58;
  --text-light: #8B8781;
  --border: rgba(30, 30, 30, 0.14);
  --border-dark: rgba(255, 255, 255, 0.16);
  --card-bg: #ffffff;

  /* Typography — main-site pairing */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius — squared geometry */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-wrap: pretty; /* no orphans / widows, anywhere */
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Display type — Bebas Neue, tight leading, caps by nature */
.d-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.d-display em {
  font-style: normal;
  color: var(--accent);
}

/* ------------------------------------------------------------
   3. TOP BAR
   ------------------------------------------------------------ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
}

.top-bar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-suffix {
  color: var(--accent);
  margin-left: -5px; /* tighten the flex gap to a natural word space */
}

.top-bar-logo svg,
.top-bar-logo img {
  height: 30px;
  width: auto;
}

.top-bar-cta {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
  border: none;
}

.top-bar-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ------------------------------------------------------------
   4. SECTION SYSTEM
   ------------------------------------------------------------ */
.section {
  padding: var(--space-2xl) 20px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

/* Drafting label — chevron + tracked caps, main-site eyebrow */
.section-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 2px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%); /* faceted-logo chevron */
  flex: none;
}

.section-label.on-dark {
  color: rgba(255, 255, 255, 0.8);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-sub {
  font-size: clamp(0.92rem, 3vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.bg-white {
  background: var(--bg);
}

.bg-alt {
  background: var(--bg-alt);
}

/* ------------------------------------------------------------
   5. TRUST — MOBILE STACKED
   ------------------------------------------------------------ */
.trust-stacked {
  padding: 40px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trust-stacked-item {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.trust-stacked-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-stacked-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   5b. TRUST STRIP (desktop static row)
   ------------------------------------------------------------ */
.trust-strip {
  padding: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.trust-icon {
  width: 34px;
  height: 34px;
  background: rgba(46, 114, 176, 0.08);
  border: 1px solid rgba(46, 114, 176, 0.18);
  border-radius: var(--radius-sm); /* squared geometry, like the brand */
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-dark);
  display: block;
}

.trust-static {
  display: none;
}

/* ------------------------------------------------------------
   6. CARDS
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card-body {
  padding: 22px 24px 28px;
  text-align: left;
}

.card:hover {
  border-color: rgba(46, 114, 176, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 30, 30, 0.07);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(46, 114, 176, 0.07);
  border: 1px solid rgba(46, 114, 176, 0.16);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

/* ------------------------------------------------------------
   7. PROCESS STEPPER
   ------------------------------------------------------------ */
.stepper {
  counter-reset: step;
  max-width: 740px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.step {
  position: relative;
  padding-left: 64px;
  padding-bottom: 40px;
  counter-increment: step;
}

.step:last-child {
  padding-bottom: 0;
}

/* Number square — squared geometry, not circles */
.step::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(46, 114, 176, 0.07);
  border: 1px solid rgba(46, 114, 176, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  line-height: 42px;
  text-align: center;
}

/* Connecting line */
.step::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: rgba(46, 114, 176, 0.2);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
  padding-top: 8px;
}

.step p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

/* ------------------------------------------------------------
   8. TESTIMONIAL
   ------------------------------------------------------------ */
.testimonial-section {
  text-align: center;
}

.testimonial-slider {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.7rem;
  letter-spacing: 6px;
  margin-bottom: 28px;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 4.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 36px;
  text-wrap: balance;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ------------------------------------------------------------
   9. FAQ ACCORDION
   ------------------------------------------------------------ */
.faq-list {
  max-width: 680px;
  margin: 32px auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  gap: 16px;
}

.faq-question svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer > * {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 400;
}

/* ------------------------------------------------------------
   10. SECTION DIVIDER
   ------------------------------------------------------------ */
.section-divider {
  display: flex;
  justify-content: center;
}

.section-divider-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--accent-dark));
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-divider-line.revealed {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   11. CTA BANNER — ink band, big Bebas
   ------------------------------------------------------------ */
.cta-banner {
  padding: 72px 20px;
  text-align: center;
  position: relative;
  background: var(--ink-2);
  color: #fff;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}

.cta-banner h2 em {
  font-style: normal;
  color: var(--accent-light);
}

.cta-banner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 28px;
  font-weight: 400;
  max-width: 460px;
}

.cta-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 16px !important;
}

/* ------------------------------------------------------------
   12. BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(30, 30, 30, 0.4);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

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

/* ------------------------------------------------------------
   13. STICKY MOBILE CTA
   ------------------------------------------------------------ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta a,
.sticky-cta button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #ffffff;
  transition: background 0.25s, color 0.25s;
  border: none;
  cursor: pointer;
}

.sticky-cta a:hover,
.sticky-cta button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.sticky-cta svg {
  width: 16px;
  height: 16px;
}

.sticky-spacer {
  height: 68px;
}

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.footer {
  padding: 32px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-logo img {
  height: 34px;
  width: auto;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.footer-gc {
  margin-top: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer-gc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.footer-gc-list {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
}

.footer-gc-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-gc-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

/* -- Tablet (768px+) -- */
@media (min-width: 768px) {
  .m-br { display: none; }

  .top-bar {
    padding: 10px 40px;
    justify-content: center;
  }
  .top-bar-cta { display: inline-flex; }

  /* Trust — hide stacked on desktop, show static strip */
  .trust-stacked { display: none; }
  .trust-static {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    padding: 0 40px;
    flex-shrink: 0;
  }
  .trust-static .trust-item {
    flex: 1;
    justify-content: center;
    padding: 0 28px;
    border-right: 1px solid rgba(46, 114, 176, 0.16);
    max-width: 340px;
  }
  .trust-static .trust-item:last-child { border-right: none; }

  .section { padding: 84px 40px; }
  .section-title { font-size: 3rem; }

  .card-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  .testimonial-quote { font-size: 2rem; }

  .cta-banner { padding: 96px 40px; }
  .cta-banner h2 { font-size: 4rem; }

  .footer { padding: 36px 40px; }

  .sticky-cta { display: none; }
  .sticky-spacer { display: none; }
}

/* -- Desktop (1024px+) -- */
@media (min-width: 1024px) {
  .top-bar { padding: 10px 60px; }

  .section { padding: 104px 60px; }
  .section-inner { max-width: 1180px; margin: 0 auto; }
  .section-title { font-size: 3.4rem; }

  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

  .trust-static { padding: 0 60px; }

  .cta-banner { padding: 110px 60px; }
  .cta-banner h2 { font-size: 4.6rem; }

  /* Stepper — horizontal layout */
  .stepper.stepper-horizontal {
    display: flex;
    gap: 24px;
    max-width: 100%;
  }
  .stepper.stepper-horizontal .step {
    padding-left: 0;
    padding-bottom: 0;
    flex: 1;
    text-align: center;
    padding-top: 64px;
  }
  .stepper.stepper-horizontal .step p {
    line-height: 1.7;
  }
  .stepper.stepper-horizontal .step::before {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }
  .stepper.stepper-horizontal .step::after {
    left: calc(50% + 28px);
    top: 20px;
    bottom: auto;
    width: calc(100% - 56px);
    height: 1px;
  }
  .stepper.stepper-horizontal .step:last-child::after {
    display: none;
  }
}

/* -- Wide (1280px+) -- */
@media (min-width: 1280px) {
  .testimonial-quote { font-size: 2.3rem; }
}

/* -- Mobile overrides (< 768px) -- */
@media (max-width: 767px) {
  .top-bar-inner { justify-content: center; }
  .trust-strip { display: none; }
  .m-br { display: block; }

  .card-grid { grid-template-columns: 1fr !important; }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

/* ------------------------------------------------------------
   16. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   17. UTILITY CLASSES
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   18. SCROLL ANIMATION BASE
   ------------------------------------------------------------ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }
