/* ==========================================================================
   Section-Specific Styles
   Anthropic-inspired: clean, warm, spacious, refined
   ========================================================================== */

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) 0;
  background-color: #faf8f3;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background-color: #faf8f3;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(232, 228, 220, 0.6);
}

[data-theme="dark"] .navbar {
  background-color: #111110;
}

[data-theme="dark"] .navbar.scrolled {
  background-color: #111110;
  border-bottom-color: rgba(42, 41, 38, 0.6);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.navbar__logo:hover {
  opacity: 0.7;
}

.navbar__logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

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

.navbar__link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-body);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-heading);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__link:hover {
  color: var(--color-text-heading);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  font-size: var(--text-sm);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile menu button */
.navbar__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.navbar__menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-heading);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.navbar__menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Collapse nav links into hamburger at 1024px */
@media (max-width: 1024px) {
  .navbar__menu-btn {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-xl);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: var(--z-overlay);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__link {
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--color-text-heading);
  }

  .navbar__cta {
    font-size: var(--text-sm);
    padding: 0.875rem 2rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-5xl) + 80px);
  padding-bottom: var(--space-5xl);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.5;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
}

.hero__split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.hero__content {
  flex: 0 0 60%;
  max-width: 60%;
}

.hero__heading {
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xl);
  color: var(--color-text-heading);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__video {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--space-4xl) + 60px);
    padding-bottom: var(--space-3xl);
  }

  .hero__split {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .hero__content {
    flex: none;
    max-width: 100%;
  }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-primary);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__label {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-bar__marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trust-bar__track {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  white-space: nowrap;
  will-change: transform;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-sm);
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: var(--color-bg-primary);
}

.services__header {
  margin-bottom: var(--space-4xl);
  max-width: 640px;
}

.services__heading {
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-text-heading);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-xl);
}

.services__subtext {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  max-width: 540px;
}

/* -- Bento Grid Layout -- */
.services__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.services__bento .svc-card--featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* -- Service Card -- */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.svc-card:hover {
  border-color: var(--color-accent-green-pale);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.svc-card--featured {
  background-color: var(--color-bg-dark);
  border-color: transparent;
}

.svc-card--featured:hover {
  border-color: rgba(92, 184, 138, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .svc-card--featured {
  background-color: #0e0e0d;
  border-color: var(--color-border);
}

/* -- Badge -- */
.svc-card__badge {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-terracotta);
  color: #ffffff;
}

/* -- Number -- */
.svc-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2xl);
  opacity: 0.5;
}

.svc-card--featured .svc-card__number {
  color: rgba(250, 248, 243, 0.25);
}

/* -- Icon -- */
.svc-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-secondary);
  color: var(--color-accent-green);
  margin-bottom: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover .svc-card__icon {
  background-color: var(--color-accent-green-pale);
  border-color: var(--color-accent-green);
}

.svc-card--featured .svc-card__icon {
  border-color: rgba(250, 248, 243, 0.1);
  background-color: rgba(250, 248, 243, 0.05);
  color: #5cb88a;
}

.svc-card--featured:hover .svc-card__icon {
  background-color: rgba(92, 184, 138, 0.12);
  border-color: rgba(92, 184, 138, 0.3);
}

.svc-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* -- Title -- */
.svc-card__title {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.svc-card--featured .svc-card__title {
  color: var(--color-text-inverse);
  font-size: var(--text-2xl);
}

[data-theme="dark"] .svc-card--featured .svc-card__title {
  color: #f2efe8;
}

/* -- Description -- */
.svc-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: auto;
  padding-bottom: var(--space-xl);
}

.svc-card--featured .svc-card__desc {
  color: rgba(250, 248, 243, 0.5);
  font-size: var(--text-base);
}

[data-theme="dark"] .svc-card--featured .svc-card__desc {
  color: rgba(242, 239, 232, 0.45);
}

/* -- CTA Link -- */
.svc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-green);
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
}

.svc-card:hover .svc-card__cta {
  gap: 12px;
}

.svc-card--featured .svc-card__cta {
  color: #5cb88a;
}

.svc-card__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9em;
}

.svc-card:hover .svc-card__arrow {
  transform: translateX(3px);
}

/* -- Responsive -- */
@media (max-width: 1024px) {
  .services__bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__bento .svc-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .services__bento {
    grid-template-columns: 1fr;
  }

  .svc-card {
    padding: var(--space-xl);
  }

  .services__header {
    margin-bottom: var(--space-3xl);
  }
}

/* ===== WHY US SECTION ===== */
.why-us {
  background-color: var(--color-bg-secondary);
}

.why-us__header {
  margin-bottom: var(--space-3xl);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl) var(--space-2xl);
}

.why-us__item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.why-us__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-accent-green);
}

.why-us__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.why-us__item-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.why-us__item-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .why-us__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HOW IT WORKS / TIMELINE ===== */
.timeline {
  background-color: var(--color-bg-primary);
}

.timeline__header {
  margin-bottom: var(--space-3xl);
}

.timeline__split {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
}

.timeline__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.timeline__visual {
  flex: 0 0 420px;
  height: 480px;
  position: sticky;
  top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.timeline__visual canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.timeline__line {
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background-color: var(--color-border);
  z-index: 0;
}

.timeline__line-fill {
  width: 100%;
  height: 0;
  background-color: var(--color-accent-green);
  transition: height 0.3s ease;
}

.timeline__step {
  display: flex;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
  padding: var(--space-lg) 0;
}

.timeline__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-primary);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline__step.active .timeline__number {
  background-color: var(--color-accent-green);
  border-color: var(--color-accent-green);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--color-accent-green-pale);
}

.timeline__step-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.timeline__step-duration {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-green);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.timeline__step-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 480px;
}

@media (max-width: 1024px) {
  .timeline__visual {
    flex: 0 0 320px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .timeline__split {
    flex-direction: column;
  }

  .timeline__visual {
    flex: none;
    width: 100%;
    height: 300px;
    position: static;
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .timeline__step {
    gap: var(--space-lg);
  }

  .timeline__line {
    left: 19px;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__heading {
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-tight);
}

.cta-section__text {
  font-size: var(--text-base);
  color: rgba(250, 248, 243, 0.6);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.cta-section .btn--primary {
  background-color: #ffffff;
  color: var(--color-bg-dark);
}

.cta-section .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.cta-section__note {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: rgba(250, 248, 243, 0.35);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--color-bg-secondary);
}

.faq__header {
  margin-bottom: var(--space-3xl);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-xl) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-heading);
  transition: color 0.2s ease;
  gap: var(--space-xl);
}

.faq__question:hover {
  color: var(--color-accent-green);
}

.faq__question-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
}

.faq__question-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.faq__item.active .faq__question-icon {
  transform: rotate(180deg);
}

.faq__item.active .faq__question {
  color: var(--color-accent-green);
}

.faq__answer {
  height: 0;
  overflow: hidden;
}

.faq__answer-inner {
  padding-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3xl);
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 340px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(250, 248, 243, 0.45);
  line-height: var(--leading-relaxed);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.3);
  margin-bottom: var(--space-lg);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(250, 248, 243, 0.55);
  margin-bottom: var(--space-md);
  transition: color 0.2s ease;
}

.footer__contact-item:hover {
  color: rgba(250, 248, 243, 0.9);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: rgba(250, 248, 243, 0.35);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250, 248, 243, 0.12);
  color: rgba(250, 248, 243, 0.45);
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  border-color: rgba(250, 248, 243, 0.3);
  color: rgba(250, 248, 243, 0.9);
}

.footer__social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer__bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(250, 248, 243, 0.3);
}

.footer__legal {
  display: flex;
  gap: var(--space-xl);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(250, 248, 243, 0.3);
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: rgba(250, 248, 243, 0.7);
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
