/* ============================================
   eSTUDIO XL – Landing Page Styles
   ============================================ */

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

:root {
  /* Greens from logo */
  --green-100: #d4f5d4;
  --green-200: #a8e6a8;
  --green-300: #7cd87c;
  --green-400: #4dc96f;
  --green-500: #2eaa4a;
  --green-600: #1e8a3a;
  --green-700: #166b2d;

  /* Accent mint from the "e" in logo */
  --mint: #8efcb1;
  --mint-dim: rgba(142, 252, 177, 0.15);

  /* Neutrals — dark mode (default) */
  --bg-dark: #0a0a0a;
  --bg-section: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --color-bg-card: #1a1a1a;
  --header-bg: rgba(10, 10, 10, 0.85);
  --hero-bg: radial-gradient(circle at center, #1d6f42 0%, #052616 100%);
  --hero-overlay: rgba(0, 0, 0, 0.45);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(46, 170, 74, 0.15);

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 7rem);
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light mode overrides */
[data-theme="light"] {
  --mint: #1e8a3a;
  --mint-dim: rgba(30, 138, 58, 0.12);
  --bg-dark: #f4f6f4;
  --bg-section: #eef1ee;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f5f0;
  --text-primary: #111811;
  --text-secondary: #445544;
  --text-muted: #778877;
  --border-subtle: rgba(0, 0, 0, 0.1);
  --color-bg-card: #ffffff;
  --header-bg: transparent;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 40px rgba(46, 170, 74, 0.18);
  --hero-bg: radial-gradient(circle at center, #a8ddb5 0%, #d4eedd 100%);
  --hero-overlay: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] {
  --hero-bg: radial-gradient(circle at center, #1d6f42 0%, #052616 100%);
  --hero-overlay: rgba(0, 0, 0, 0.45);
}

/* Light mode: dark text over light green background */
[data-theme="light"] .hero__title,
[data-theme="light"] .hero__subtitle,
[data-theme="light"] .hero__scroll-hint,
[data-theme="light"] .hero__scroll-hint svg,
[data-theme="light"] .section-title--light,
[data-theme="light"] .contact__text,
[data-theme="light"] .contact__method,
[data-theme="light"] .contact__method span,
[data-theme="light"] .contact__method strong {
  color: #111;
}

[data-theme="light"] .text-accent {
  color: #1a6e35;
}

[data-theme="light"] .card__desc {
  color: #2a2a2a;
}

[data-theme="light"] .card__price-detail {
  color: #444;
}

[data-theme="light"] .btn--outline {
  color: #111;
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .btn--outline:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: #1a6e35;
  color: #1a6e35;
}

[data-theme="light"] .contact__method {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[data-theme="light"] .contact__method:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: #1a6e35;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- TYPOGRAPHY --- */
.text-accent {
  color: var(--mint);
  font-weight: 600;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title--light {
  color: var(--green-100);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s var(--ease-out);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-img {
  height: 42px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  letter-spacing: 0.02em;
}

.header__link:hover {
  color: var(--mint);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.25s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--green-500);
}

.lang-toggle__option {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

.lang-toggle__option:hover {
  color: var(--text-primary);
}

.lang-toggle__option.active {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-toggle__sep {
  color: var(--border-subtle);
  pointer-events: none;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
}
.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.mobile-menu__link:hover {
  color: var(--mint);
}

.lang-toggle--mobile {
  margin-top: 0.5rem;
}

/* Light mode header — metallic silver gradient */
[data-theme="light"] .header {
  background: linear-gradient(
    180deg,
    #e8eaeb 0%,
    #d0d3d6 25%,
    #bcbfc4 50%,
    #d0d3d6 75%,
    #e2e4e6 100%
  ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.25s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--green-500);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero__cells-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  pointer-events: none;
  z-index: 0;
}

.hero__content,
.hero__scroll-hint {
  position: relative;
  z-index: 1;
}

/* Grid background pattern (hidden, replaced by isometric pattern) */
.hero__bg-grid {
  display: none;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ffffff;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46, 170, 74, 0.3);
}

.btn--primary:hover {
  background: var(--green-400);
  box-shadow: 0 6px 24px rgba(46, 170, 74, 0.45);
  transform: translateY(-2px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: var(--mint-dim);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-pad) 1.5rem;
  background: var(--bg-section);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-700), transparent);
}

.services__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--mint));
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(46, 170, 74, 0.2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-dim);
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.card__icon {
  width: 30px;
  height: 30px;
  color: var(--mint);
}

.card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card__desc {
  color: #c8d0c8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.card__price-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mint);
}

.card__price-detail {
  font-size: 0.85rem;
  color: #a8b8a8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--section-pad) 1.5rem;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--hero-overlay);
  pointer-events: none;
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact__text {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact__methods {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__method {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.2rem 1.8rem;
  transition: all 0.3s var(--ease-out);
  min-width: 260px;
}

.contact__method:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--mint);
  transform: translateY(-2px);
}

.contact__method svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--mint);
}

.contact__method strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-200);
  margin-bottom: 0.15rem;
}

.contact__method span {
  font-size: 0.95rem;
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer__year {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Scroll reveal */
.card,
.contact__method {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.card.visible,
.contact__method.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .card--templates {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
    width: 100%;
  }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero__title {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
  }

  .hero__logo {
    height: clamp(40px, 10vw, 60px);
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card--templates {
    max-width: 100%;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .contact__methods {
    flex-direction: column;
    align-items: center;
  }

  .contact__method {
    width: 100%;
    max-width: 340px;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero {
    padding: 5rem 1rem 2.5rem;
  }

  .hero__title {
    font-size: 1.3rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .card__title {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
