/* ============================================================
   STYLE.CSS — SolarGente Component Styles
   All components, layout, responsive design
   ============================================================ */

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section-pad {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.bg-white   { background-color: var(--color-bg); }
.bg-cream   { background-color: var(--color-bg-alt); }
.bg-accent  { background-color: var(--color-accent); color: var(--color-text-inverse); }

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

/* Scroll-triggered fade-in with safety fallback */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: make elements visible after 3s if JS observer hasn't triggered */
@keyframes fade-in-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in:not(.visible) {
  animation: fade-in-fallback 0.6s var(--ease-out) 3s forwards;
}

/* Staggered children animation */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.header--scrolled {
  background: rgba(245, 247, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header--scrolled {
  background: rgba(21, 26, 30, 0.92);
}

.header--hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding-inline: var(--space-5);
  max-width: var(--content-wide);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .nav { height: 4.5rem; padding-inline: var(--space-8); }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-logo); /* Syne — logo wordmark only */
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Hero is dark green at top, so nav text/mark start bone; flip on scroll */
.hero ~ * .nav__logo,
.header:not(.header--scrolled) .nav__logo {
  color: var(--brand-bone);
}
.header:not(.header--scrolled) .nav__mark {
  color: var(--brand-yellow);
}
.header--scrolled .nav__logo {
  color: var(--color-text);
}
.header--scrolled .nav__mark {
  color: var(--color-text);
}

.nav__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--brand-yellow);
  fill: currentColor;
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-interactive);
  position: relative;
}

.nav__links a:hover {
  color: #FFFFFF;
}

/* When header has scrolled background, revert to normal colors */
.header--scrolled .nav__links a {
  color: var(--color-text-muted);
}

.header--scrolled .nav__links a:hover {
  color: var(--color-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.nav__actions button:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* When header has scrolled background, revert to normal */
.header--scrolled .nav__actions button {
  color: var(--color-text-muted);
}

.header--scrolled .nav__actions button:hover {
  color: var(--color-text);
  background: var(--color-divider);
}

/* Language toggle button */
.lang-toggle {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  min-width: 2.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.header--scrolled .lang-toggle {
  color: var(--color-text-muted);
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

#mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  transition: color var(--transition-interactive);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-deep);
  color: var(--brand-bone);
}

/* Hero background photo with V3 “bottom-up” treatment + visible cool shift.
   The photo retains warmth + place; a slight hue-rotate pushes the image toward
   the SolarGente deep green so text stays legible without flattening the scene.
   The overlay is light at top + middle and heavy at the bottom — the text sits
   on the dark base where contrast is highest. */
.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('./assets/hero-bg.webp');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  /* Visible cool shift: push the warm photo toward the brand’s cool green. */
  filter: hue-rotate(-15deg) saturate(0.85);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Bottom-up gradient (V3): light top so the sky breathes, heavy bottom so
     the H1, subtitle, CTAs, and stats sit on a dark legible base. */
  background:
    linear-gradient(180deg,
      rgba(9, 66, 50, 0.30) 0%,
      rgba(9, 66, 50, 0.20) 35%,
      rgba(9, 66, 50, 0.55) 70%,
      rgba(9, 66, 50, 0.92) 100%);
}
/* Navigation scrim — a narrow black gradient at the very top so the nav links
   stay legible against the lighter top of the hero photo. */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.00) 100%);
}
@media (max-width: 767px) {
  .hero__bg-image {
    background-image: url('./assets/hero-bg-mobile.webp');
    background-position: center 55%;
  }
  /* Slightly stronger overlay on mobile because text takes more vertical space */
  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(9, 66, 50, 0.40) 0%,
        rgba(9, 66, 50, 0.30) 30%,
        rgba(9, 66, 50, 0.70) 65%,
        rgba(9, 66, 50, 0.95) 100%);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: var(--space-16);
  color: var(--brand-bone);
}

/* Lockup at top of hero — sun mark scaled to full wordmark stack-height,
   per partner feedback round (June 2026). */
.hero__lockup {
  display: inline-flex;
  align-items: stretch;
  gap: 0.32em;
  font-size: clamp(2.6rem, 0.6rem + 6.4vw, 6.5rem);
  line-height: 0.92;
  color: var(--brand-bone);
  margin-bottom: var(--space-12);
}

.hero__mark {
  width: 1.7em;
  height: 1.7em;
  flex-shrink: 0;
  color: var(--brand-yellow);
  fill: currentColor;
  align-self: center;
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  display: flex;
  flex-direction: column;
  align-self: center;
  line-height: 0.92;
  color: var(--brand-mint);
}
.hero__wordmark > span { display: block; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  /* Between the original 8% white and the dark green — a soft frosted look */
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--brand-bone);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(241, 236, 229, 0.28);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display); /* Satoshi */
  /* Slightly smaller than the old --text-hero cap so the line feels solid */
  font-size: clamp(2.5rem, 1rem + 5.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em; /* tight, modern */
  color: var(--brand-bone);
  margin-bottom: var(--space-6);
  max-width: 16ch;
  /* Subtle ambient shadow anchors light text against busy photo */
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.30);
}

.hero__title span {
  color: var(--brand-yellow);
  font-weight: 900;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(241, 236, 229, 0.82);
  max-width: 54ch;
  line-height: 1.55;
  margin-bottom: var(--space-10);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

/* Stats bar in hero */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(241, 236, 229, 0.22);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-value {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--brand-yellow);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(241, 236, 229, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Scroll indicator at bottom of hero */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(241, 236, 229, 0.55);
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: color var(--transition-interactive);
}

.hero__scroll-indicator:hover {
  color: var(--brand-bone);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary-light);
}

/* Hero primary CTA — brand yellow “Sun” fill with deep-green text.
   Overrides .btn--primary only inside the hero so contact section CTA can
   keep the default deep-green look if ever switched back. */
.hero .btn--primary,
.btn--email-cta {
  background: var(--brand-yellow);
  color: var(--brand-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.hero .btn--primary:hover,
.btn--email-cta:hover {
  background: #E8D33A; /* ~4% darker than #F7E445 */
  color: var(--brand-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

/* Light secondary button for hero on dark background.
   Frosted white fill matches the hero pill so the button stays legible
   against bright/busy photo areas. */
.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}
.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #FFFFFF;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}
.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

.btn--whatsapp svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ============================================================
   CREDIBILITY BAR
   ============================================================ */
.credibility-bar {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.9);
  padding-block: var(--space-4);
  overflow: hidden;
}

[data-theme="dark"] .credibility-bar {
  background: var(--color-accent-light);
  color: var(--color-text);
}

.credibility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.credibility-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.credibility-bar__item svg {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display); /* Satoshi */
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-top: var(--space-4);
  line-height: 1.6;
}

/* ============================================================
   WHY COSTA RICA SECTION
   ============================================================ */
.why-cr {
  background: var(--color-bg-alt);
}

.why-cr__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .why-cr__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.why-cr__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Aspect ratio only used on mobile; on desktop the image stretches to match
     the height of the text column for a balanced two-column layout. */
  aspect-ratio: 4/3;
  min-height: 100%;
}

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

@media (min-width: 768px) {
  /* Stretch the image cell to the full grid row height so its bottom edge
     aligns with the bottom of the stats grid in the text column. */
  .why-cr__grid {
    align-items: stretch;
  }
  .why-cr__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 28rem;
  }
}

.why-cr__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.why-cr__stat-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5.5rem;
}

.why-cr__stat-value {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 800;
  /* Deep green in day mode (readable on bone). Auto-flips to yellow in dark mode
     via the dark-theme override of --color-deep-green below. */
  color: var(--brand-deep);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  white-space: nowrap;
}

/* Dark mode: switch the stat numbers back to bright yellow for contrast on dark cards */
[data-theme="dark"] .why-cr__stat-value {
  color: var(--color-yellow-pure);
}

.why-cr__stat-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.why-cr__text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* ============================================================
   HOW WE WORK — AUDIENCE CARDS
   ============================================================ */
.how-cards {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .how-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.how-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.how-card__icon svg {
  width: 24px;
  height: 24px;
}

.how-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.how-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.how-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-interactive), gap var(--transition-interactive);
}

.how-card__cta:hover {
  color: var(--color-primary-hover);
  gap: var(--space-3);
}

.how-card__cta svg {
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}

.how-card__cta:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   PROJECTS CAROUSEL
   ============================================================ */
.projects {
  background: var(--color-bg-alt);
  overflow: hidden;
}

.projects__carousel-wrapper {
  position: relative;
}

.projects__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--space-5);
  padding-block: var(--space-2);
}

.projects__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .projects__track {
    padding-inline: max(var(--space-8), calc((100vw - var(--content-wide)) / 2 + var(--space-8)));
  }
}

.project-card {
  flex: 0 0 85%;
  max-width: 480px;
  min-height: 380px;
  scroll-snap-align: start;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, #1a3a2a 0%, #0d2418 100%);
  color: #FFFFFF;
  transition: transform 0.3s var(--ease-out);
}

@media (min-width: 768px) {
  .project-card {
    flex: 0 0 42%;
    max-width: 520px;
    min-height: 420px;
  }
}

@media (min-width: 1200px) {
  .project-card {
    flex: 0 0 36%;
  }
}

.project-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  z-index: 1;
}

.project-card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(47, 125, 75, 0.85);
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.project-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  line-height: 1.15;
}

.project-card__location {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: var(--space-5);
}

.project-card__specs {
  display: flex;
  gap: var(--space-6);
}

.project-card__spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card__spec-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  /* Pure brand yellow #F7E445 — sits on dark photo overlay */
  color: var(--color-yellow-pure);
  font-feature-settings: 'tnum' 1;
}

.project-card__spec-label {
  font-size: var(--text-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pipeline card — visually distinct */
.project-card--pipeline {
  background: var(--color-accent);
  justify-content: center;
  text-align: center;
}

.project-card--pipeline .project-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.project-card--pipeline .project-card__name {
  font-size: var(--text-xl);
}

.project-card--pipeline .project-card__desc {
  font-size: var(--text-sm);
  opacity: 0.85;
  max-width: 32ch;
  line-height: 1.6;
  margin-top: var(--space-3);
}

.project-card--pipeline .project-card__spec-value {
  font-size: var(--text-2xl);
}

/* Carousel navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
}

.carousel-arrows {
  display: flex;
  gap: var(--space-3);
}

.carousel-arrow {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive);
}

.carousel-arrow:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.carousel-arrow:disabled:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

/* Thin progress bar */
.carousel-progress {
  flex: 1;
  max-width: 200px;
  height: 3px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  margin-inline: var(--space-4);
  overflow: hidden;
}

.carousel-progress__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out);
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

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

.team-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-5);
  border: 3px solid var(--color-divider);
  transition: border-color var(--transition-interactive);
}

.team-card:hover .team-card__photo {
  border-color: var(--color-primary);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 36ch;
  margin-inline: auto;
}

.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition-interactive);
}

.team-card__linkedin:hover {
  color: var(--color-primary);
}

.team-card__linkedin svg {
  width: 16px;
  height: 16px;
}

/* Team credentials strip */
.team-creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.team-cred {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.team-cred__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-yellow);
}

.team-cred__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--color-bg-alt);
}

.contact__grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.contact__primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__response {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
}

.contact__response svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* On desktop, push the channel list down so its first row aligns with the H2,
   not the small eyebrow label above it. The offset equals roughly the eyebrow
   label height + its margin-bottom (var(--space-3)). Adjust this value if you
   change the eyebrow size or spacing. */
@media (min-width: 768px) {
  .contact__channels {
    padding-top: calc(var(--text-xs) + var(--space-3) + 0.25rem);
  }
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

a.contact__channel:hover {
  color: var(--color-primary);
}

.contact__channel svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact__social a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive);
}

.contact__social a:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.contact__social svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-5);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-12);
}

[data-theme="dark"] .footer {
  background: #0D1114;
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-10);
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-logo); /* Syne — matches header wordmark */
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  color: var(--brand-bone);
}

/* Footer mark matches header mark exactly: same size, yellow on deep green */
.footer__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--brand-yellow);
  fill: currentColor;
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 36ch;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
}

.footer__privacy {
  max-width: 60ch;
  opacity: 0.6;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 767px) {
  .hero__stats {
    gap: var(--space-5);
  }
  
  .hero__stat-value {
    font-size: var(--text-lg);
  }
  
  .why-cr__stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .team-card__photo {
    width: 140px;
    height: 140px;
  }
  
  .carousel-progress {
    max-width: 120px;
  }
}

/* Ensure images don't break on small screens */
@media (max-width: 480px) {
  .project-card {
    flex: 0 0 90%;
    min-height: 340px;
  }
  
  .project-card__specs {
    gap: var(--space-4);
  }
}
