/* ============================================================
   RENOVAR LANDING PAGE SYSTEM — base.css
   Design system foundation: tokens, reset, shared components.
   Light theme: white bg, dark text, green (#2d9a6f) accent.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --accent: #2d9a6f;
  --accent-light: #3dbf8a;
  --accent-dark: #1f7a54;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #111318;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, 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 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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;
}

/* ------------------------------------------------------------
   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: 1100px;
}

.top-bar-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.logo-suffix {
  color: var(--accent);
}

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

.top-bar-cta {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: background 0.3s;
  white-space: nowrap;
  border: none;
}

.top-bar-cta:hover {
  background: var(--accent-light);
}

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

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

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero-viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.hero {
  padding: 90px 20px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.hero-inner {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-label::before,
.hero-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.85rem, 2.8vw, 1rem);
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 0;
  text-wrap: balance;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
}

.hero-trust {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.18))
         drop-shadow(0 8px 24px rgba(45, 154, 111, 0.08));
}

/* Hero entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label,
.hero h1,
.hero-sub,
.hero-cta-row {
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
}

.hero h1       { animation-delay: 0.1s; }
.hero-sub      { animation-delay: 0.2s; }
.hero-cta-row  { animation-delay: 0.3s; }
.hero-image    { animation: fadeUp 0.9s ease 0.4s forwards; opacity: 0; }

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

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

.trust-stacked-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

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

/* ------------------------------------------------------------
   6b. TRUST STRIP (desktop ticker)
   ------------------------------------------------------------ */
.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-ticker-inner {
  display: flex;
  align-items: center;
  height: 68px;
  overflow: hidden;
}

/* Fade edges */
.trust-strip::before,
.trust-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}

.trust-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}

.trust-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: trustScroll 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.trust-track:hover {
  animation-play-state: paused;
}

@keyframes trustScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.trust-divider {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(45, 154, 111, 0.35);
  flex-shrink: 0;
}

.trust-icon {
  width: 34px;
  height: 34px;
  background: rgba(45, 154, 111, 0.08);
  border: 1px solid rgba(45, 154, 111, 0.15);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

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

.trust-value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

/* Static trust strip for desktop */
.trust-static {
  display: none;
}

/* ------------------------------------------------------------
   7. 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-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

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

.card:hover {
  border-color: rgba(45, 154, 111, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(45, 154, 111, 0.08);
  border: 1px solid rgba(45, 154, 111, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

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

/* ------------------------------------------------------------
   8. 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 circle */
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(45, 154, 111, 0.08);
  border: 1px solid rgba(45, 154, 111, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  line-height: 42px;
  text-align: center;
}

/* Connecting line */
.step::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: rgba(45, 154, 111, 0.15);
}

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

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  padding-top: 2px;
}

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

/* ------------------------------------------------------------
   9. PROJECTS GALLERY
   ------------------------------------------------------------ */
.gallery-section {
  overflow: hidden;
}

.gallery-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.gallery-track-wrap::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 14px;
  padding-right: 20px;
}

.gallery-slide {
  flex: 0 0 calc(100vw - 60px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  max-width: 480px;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-slide:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.82rem;
  color: #ffffff;
}

.gallery-overlay span {
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  font-size: 0.65rem;
  margin-bottom: 3px;
}

/* Gallery arrows — hidden on mobile, shown inline on desktop */
.gallery-arrow {
  display: none;
}

/* Gallery nav row: arrows flanking dots */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
  }

  .gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  /* Hide mobile dots when arrows are visible */
  .gallery-dots { display: none; }
}

/* Pagination dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   10. ROI SECTION
   ------------------------------------------------------------ */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.roi-stat {
  padding: 28px 16px;
  text-align: center;
}

.roi-stat-number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  margin-bottom: 12px;
  white-space: nowrap;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  background-size: 150px 150px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* Vertical dividers between stats on desktop */
.roi-stat + .roi-stat {
  border-left: 1px solid var(--border);
}

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

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

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

.testimonial-quote {
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  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);
}

/* ------------------------------------------------------------
   12. 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.15rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  gap: 16px;
}

.faq-question svg {
  width: 28px;
  height: 28px;
  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: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
}

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

.section-divider-line {
  height: 0.25rem;
  width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--accent-dark));
  background-size: 150px 150px, 200% auto;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ------------------------------------------------------------
   13. CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  padding: 56px 20px;
  text-align: center;
  position: relative;
  background: #ffffff;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  background-size: 150px 150px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-banner p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 400;
}

.cta-note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ------------------------------------------------------------
   14. BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--accent-dark));
  background-size: 200% auto;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: background-position 0.4s, filter 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-position: right center;
  filter: brightness(1.08);
}

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

/* Hero CTA — bigger with subtext */
.btn-hero {
  flex-direction: column;
  padding: 20px 48px;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  text-align: center;
  gap: 2px;
  max-width: 100%;
}

.btn-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.01em;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 15px 36px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

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

.btn-outline svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------
   15. 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: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: #ffffff;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.sticky-cta a:hover,
.sticky-cta button:hover {
  background: var(--accent-light);
}

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

.sticky-spacer {
  height: 68px;
}

/* ------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------ */
.footer {
  padding: 24px 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;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

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

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

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

.footer-address {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-links {
  font-size: 0.7rem;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-light);
  transition: color 0.3s;
}

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

.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);
}

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

/* ------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

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

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

  /* Hero */
  .hero-viewport { min-height: unset; height: 100vh; }
  .hero {
    flex: 1;
    min-height: 0;
    padding: 100px 40px 0;
    align-items: stretch;
  }
  .hero-inner { max-width: 1100px; flex: 1; min-height: 0; }
  .hero h1 { font-size: 3rem; margin-bottom: 10px; }
  .hero-sub { font-size: 1rem; }
  .hero-cta-row { margin: 20px 0 16px; }
  .hero-image {
    flex: 1;
    min-height: 0;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-image img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Trust — hide stacked on desktop, show static strip */
  .trust-stacked { display: none; }
  .trust-ticker-inner { display: none; }
  .trust-strip::before,
  .trust-strip::after { 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 32px;
    border-right: 1px solid rgba(45, 154, 111, 0.12);
    max-width: 340px;
  }
  .trust-static .trust-item:last-child { border-right: none; }

  /* Sections */
  .section { padding: 80px 40px; }
  .section-title { font-size: 2.2rem; }

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

  /* Gallery */
  .gallery-slide { flex: 0 0 360px; }

  /* Testimonial */
  .testimonial-quote { font-size: 2.4rem; }

  /* CTA banner */
  .cta-banner { padding: 72px 40px; }
  .cta-banner h2 { font-size: 2.6rem; }

  /* Footer */
  .footer { padding: 28px 40px; }

  /* Hide sticky CTA + spacer on desktop */
  .sticky-cta { display: none; }
  .sticky-spacer { display: none; }
}

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

  /* Hero */
  .hero { padding: 100px 60px 0; }
  .hero h1 { font-size: 3.6rem; }

  /* Sections */
  .section { padding: 96px 60px; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-title { font-size: 2.5rem; }

  /* Cards — up to 4 columns when content warrants */
  .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); }

  /* Gallery */
  .gallery-slide { flex: 0 0 440px; }
  .gallery-dots { display: none; }

  /* Trust strip */
  .trust-static { padding: 0 60px; }

  /* CTA banner */
  .cta-banner { padding: 88px 60px; }
  .cta-banner h2 { font-size: 3rem; }

  /* 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.75;
  }
  .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) {
  .hero h1 { font-size: 4rem; }
  .testimonial-quote { font-size: 3rem; }
}

/* -- Mobile overrides (< 768px) -- */
@media (max-width: 767px) {
  .top-bar-inner { justify-content: center; }
  .trust-strip { display: none; }
  .m-br { display: block; }
  .stack-card-text .btn-primary { display: none; }
  .stack-cards {
    padding: 0;
    gap: 44px;
  }
  .stack-card-text {
    padding: 24px 24px 16px;
  }

  .hero-image {
    order: 1;
    margin: 16px auto 0;
    max-width: 340px;
    flex: 1;
    min-height: 0;
  }
  .hero-image img {
    filter: none;
    border-radius: 0;
  }
  .hero-cta-row {
    order: 2;
    margin-top: 24px;
    margin-bottom: 0;
  }

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

  .roi-grid {
    grid-template-columns: 1fr;
  }
  .roi-stat + .roi-stat {
    border-left: none;
    border-top: 1px solid var(--border);
  }

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

/* ------------------------------------------------------------
   18. 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;
  }

  .trust-track {
    animation: none;
  }

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

/* ------------------------------------------------------------
   19. 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 {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  background-size: 150px 150px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* ------------------------------------------------------------
   20. 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; }

/* ============================================================
   21. Shared Page-Level Components
   (Used by conv, edu, and rt pages — centralized to avoid drift)
   ============================================================ */

/* ── Card images (use-case cards) ────────────────────────────── */
.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
  transition: gap 0.3s;
}

.card:hover .card-link {
  gap: 8px;
}

/* ── Sticky Stacking Cards ──────────────────────────────────── */
.stack-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  padding: 0;
}

.stack-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

.stack-card > * {
  position: relative;
  z-index: 1;
}

.stack-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.stack-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.stack-card-text .section-label {
  display: none;
  width: auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  background-size: 150px 150px, 100% 100%;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.stack-card-text {
  padding: 24px;
  text-align: left;
}

.stack-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 12px;
}

.stack-card-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0;
}

.stack-card-text .btn-primary {
  align-self: flex-start;
  width: auto;
}

@media (min-width: 768px) {
  .stack-cards {
    gap: 0;
    padding: 0;
  }

  .stack-card-tag {
    display: none;
  }

  .stack-card-text .section-label {
    display: inline-block;
  }

  .stack-card {
    position: sticky;
    top: 10%;
    margin-bottom: 10vh;
    height: 75vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  }

  .stack-card:nth-child(1) { z-index: 1; }
  .stack-card:nth-child(2) { z-index: 2; }
  .stack-card:nth-child(3) { z-index: 3; }
  .stack-card:nth-child(4) { z-index: 4; }
  .stack-card:nth-child(5) { z-index: 5; }
  .stack-card:nth-child(6) { z-index: 6; }

  .stack-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px;
  }

  .stack-card-title {
    font-size: 2rem;
  }

  .stack-card-desc {
    font-size: 1.05rem;
    max-width: 420px;
  }

  .stack-card-img {
    aspect-ratio: auto;
    height: 100%;
    order: 2;
  }

  .stack-card-text {
    order: 1;
  }

  /* Alternate: image left, text right */
  .stack-card--reverse .stack-card-img {
    order: 1;
  }
  .stack-card--reverse .stack-card-text {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .stack-card-title {
    font-size: 2.4rem;
  }

  .stack-card-text {
    padding: 64px;
    gap: 1rem;
  }
}

/* ── Project Spotlight ──────────────────────────────────────── */
.spotlight-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.spotlight-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.spotlight-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-caption {
  display: block;
  padding: 8px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 768px) {
  .spotlight-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    z-index: 1;
  }
}

@media (min-width: 768px) {
  .spotlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .spotlight-img {
    aspect-ratio: 4 / 3;
  }
}

/* ── ROI lead-in text ───────────────────────────────────────── */
.roi-lead {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 36px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.roi-disclaimer {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Gallery section padding override ───────────────────────── */
.gallery-section .section-inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.gallery-section .section-label,
.gallery-section .section-title,
.gallery-section .section-sub {
  padding-left: 20px;
  padding-right: 20px;
}

.gallery-track {
  padding-left: 20px;
}

/* ── Footer service-area cities ─────────────────────────────── */
.footer-cities {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .gallery-section .section-label,
  .gallery-section .section-title,
  .gallery-section .section-sub {
    padding-left: 40px;
    padding-right: 40px;
  }

  .gallery-track {
    padding-left: 40px;
  }

  .roi-lead {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-section .section-label,
  .gallery-section .section-title,
  .gallery-section .section-sub {
    padding-left: 60px;
    padding-right: 60px;
  }

  .gallery-track {
    padding-left: 60px;
  }
}
