/* ==========================================================================
   Base Styles — Shared across all pages
   Reset, typography, containers, buttons, navigation, footer, sections
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* -- Reset & Base --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background: var(--brand-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  background: #ffffff;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* -- Scroll Reveal Animations --------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Container ------------------------------------------------------------ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 780px;
}

/* -- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition-duration: 0.1s;
}

.btn--primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn--primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(var(--brand-primary-rgb, 37, 99, 235), 0.35);
}

.btn--accent {
  background: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}

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

.btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* -- Navigation ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header:hover,
.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #111827;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo-img {
  height: 38px;
  width: auto;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.nav__logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav__link {
  color: #4b5563;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__link:hover {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb, 37, 99, 235), 0.06);
  text-decoration: none;
}

.nav__link:hover::after {
  width: 60%;
  left: 20%;
}

/* Active nav link */
.nav__link--active {
  color: var(--brand-primary);
  font-weight: 600;
}

.nav__link--active::after {
  width: 60%;
  left: 20%;
  background: var(--brand-primary);
}

.nav__cta {
  font-size: 0.85rem;
  padding: 0.55rem 1.35rem;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: 8px;
}

.nav__cta:hover {
  box-shadow: 0 2px 12px rgba(var(--brand-primary-rgb, 37, 99, 235), 0.25);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 101;
  position: relative;
}

.nav__burger:hover {
  background: #f3f4f6;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              background 0.25s ease;
  transform-origin: center;
}

/* Animated hamburger → X */
.nav__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay — slide + fade animation */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile__links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile__links li {
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-mobile.is-open .nav-mobile__links li {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile.is-open .nav-mobile__links li:nth-child(1) { transition-delay: 0.08s; }
.nav-mobile.is-open .nav-mobile__links li:nth-child(2) { transition-delay: 0.14s; }
.nav-mobile.is-open .nav-mobile__links li:nth-child(3) { transition-delay: 0.20s; }
.nav-mobile.is-open .nav-mobile__links li:nth-child(4) { transition-delay: 0.26s; }
.nav-mobile.is-open .nav-mobile__links li:nth-child(5) { transition-delay: 0.32s; }

.nav-mobile__links a {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile__links a:hover,
.nav-mobile__links a.nav-mobile__link--active {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb, 37, 99, 235), 0.06);
  text-decoration: none;
}

/* Mobile CTA button also fades in */
.nav-mobile > .btn {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-mobile.is-open > .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.38s;
}

/* -- Sections ------------------------------------------------------------- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: #f8fafc;
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-align: left;
  color: #111827;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 2px;
}

.section__desc {
  text-align: left;
  color: #6b7280;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section__subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  color: var(--brand-accent);
  padding-left: 1rem;
  border-left: 3px solid var(--brand-accent);
  border-bottom: none;
  padding-bottom: 0;
}

.section__subtitle:first-child {
  margin-top: 0;
}

.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* -- Page Header (Inner Pages) -------------------------------------------- */
.page-header {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%,
              color-mix(in srgb, var(--brand-primary) 70%, #1a1a2e) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
}

.page-header__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  position: relative;
}

/* -- CTA Section ---------------------------------------------------------- */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%,
              color-mix(in srgb, var(--brand-primary) 70%, #1a1a2e) 100%);
  color: #ffffff;
  padding: 5rem 0;
}

.cta-section h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn--primary {
  background: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
}

.cta-section .btn--primary:hover {
  opacity: 0.9;
}

/* -- Cards (Shared) ------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border-left: 3px solid transparent;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-left-color: var(--brand-primary);
}

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
  transition: transform 0.45s ease;
}

.card:hover .card__img {
  transform: scale(1.05);
}

/* Clip the zoom so it stays inside the card */
.card {
  overflow: hidden;
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card__price {
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* -- Placeholder Section -------------------------------------------------- */
.placeholder-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fafc;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.placeholder-section__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: #94a3b8;
}

.placeholder-section__icon svg {
  width: 100%;
  height: 100%;
}

.placeholder-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.75rem;
}

.placeholder-section p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 450px;
  margin: 0 auto;
}

.placeholder-note {
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 1.5rem;
}

/* -- Card Image Placeholder ----------------------------------------------- */
.card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.card__img-placeholder svg {
  width: 48px;
  height: 48px;
}

.card__img-placeholder--sm {
  height: 160px;
}

.card__price--placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* -- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.site-footer .footer__inner {
  padding-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  height: 32px;
  width: auto;
}

.footer__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
  line-height: 1.5;
}

.footer__contact {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__nav {
  display: flex;
  gap: 4rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col h4 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer__col a:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateX(3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
}

.footer__powered a {
  color: var(--brand-accent);
  font-weight: 600;
}

.footer__powered a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* -- Empty State ---------------------------------------------------------- */
.empty-state {
  text-align: center;
  color: #9ca3af;
  font-size: 1rem;
  padding: 3rem 0;
}

/* -- Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .page-header {
    padding: 3rem 0 2.5rem;
  }

  .page-header h1 {
    font-size: 1.85rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__nav {
    gap: 2.5rem;
  }

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

  .footer__contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

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

@media (max-width: 400px) {
  .btn--lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}
