/* === Landing Page CSS — adapted from gonka.ai extra.css === */

/* Landing wrapper */
.gonka-landing {
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
  color: var(--text);
  /* No background here — body provides it; keeps ::before z-index:-1 visible */
}

/* Main content area */
.gonka-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 821px) {
  .gonka-main {
    justify-content: center;
    align-items: center;
  }
}

/* === Header === */
.gonka-header {
  width: 100%;
  height: 76px;
  display: flex;
  padding: 14px calc(max((100vw - 1440px)/2, 32px));
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 30;
}

.gonka-logo { display: flex; align-items: center; }
.gonka-logo svg path { fill: var(--text); }

.gonka-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}
.lang-switcher a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--text);
}
.lang-switcher span { opacity: 0.4; }

/* Dark mode toggle button */
.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.dark-toggle:hover { opacity: 1; }
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: block; }
[data-theme="dark"] .dark-toggle .icon-sun { display: block; }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }

/* === Banner === */
.gonka-banner {
  margin: 4rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: auto;
  min-height: 40px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: var(--text);
}
.gonka-banner .nowrap { white-space: nowrap; }
.gonka-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  line-height: 110%;
  letter-spacing: -0.01em;
}

/* === Hero wrapper (header + main) — background image container === */
.hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  /* background-image set via PHP inline style in hero.php (absolute URL) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
/* All direct children of hero-wrapper must sit above the background */
.hero-wrapper > * {
  position: relative;
  z-index: 1;
}

/* === Hero === */
.gonka-hero {
  text-align: center;
}

.gonka-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.gonka-hero h1 {
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-feature-settings: 'ss02' on, 'ss03' on, 'ss04' on, 'cv10' on;
  margin-bottom: .5rem;
  color: var(--text);
}

.tagline {
  font-size: 22px;
  line-height: 100%;
  letter-spacing: -0.04em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* === Service Cards === */
.gonka-cards a,
.gonka-cards a:hover {
  text-decoration: none;
  color: inherit;
}

.gonka-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 320px;
  height: 144px;
  padding: 16px;
  margin-bottom: 50px;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  text-decoration: none;
  transform: translateZ(0);
  transition: all 0.3s ease-in-out;
  will-change: transform, box-shadow;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card span {
  display: block;
  font-weight: 600;
  font-size: 18px;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.card small {
  font-size: 15px;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  padding-right: 20px;
  text-align: left;
}

/* === Quick Links section === */
.quick-links-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 2rem;
  padding: 0 32px;
}
.quick-links-section h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 200px;
  min-height: 80px;
  padding: 14px 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}
.quick-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.quick-link-card .ql-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.quick-link-card .ql-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* === CTA section === */
.cta-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 3rem;
  padding: 2rem 32px;
  text-align: center;
}
.cta-section h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: .5rem;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-cta:hover { opacity: 0.85; }

/* === Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-box h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* === CF7 Form === */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wpcf7-form label {
  font-size: 13px;
  color: var(--text-secondary);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--footer-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  border-color: var(--accent);
}
.wpcf7-form textarea { min-height: 100px; }
.wpcf7-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.wpcf7-submit:hover { opacity: 0.85; }
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e53e3e;
}
.wpcf7-response-output {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: none !important;
}
.wpcf7-form.sent .wpcf7-response-output {
  background: #f0fff4;
  color: #276749;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  background: #fff5f5;
  color: #c53030;
}

/* === Carousel === */
.gonka-carousel {
  overflow: hidden;
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
  flex-shrink: 0;
  margin-bottom: 5rem;
}
.gonka-carousel .carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.partner-card {
  flex: 0 0 auto;
  height: 180px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-partner);
  scroll-snap-align: start;
}
.partner-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  text-align: left;
}
.partner-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.partner-logos img {
  height: 33px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.8;
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s ease;
}
.partner-logos a:hover img {
  filter: grayscale(1) brightness(0);
  opacity: 1;
}
[data-theme="dark"] .partner-logos img {
  filter: grayscale(1) invert(1);
}
[data-theme="dark"] .partner-logos a:hover img {
  filter: grayscale(1) invert(1) brightness(1.5);
}

/* === Footer === */
.gonka-footer {
  font-size: .8rem;
  padding: 0;
  width: 100%;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0 3rem;
  padding: 32px 20px;
  border-top: 1px solid var(--footer-border);
}
.brand {
  flex: 0 0 216px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-logo span {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.brand-logo svg path { fill: var(--text); }
.social { display: flex; align-items: flex-start; gap: 16px; }
.social img { height: 24px; width: 24px; }
.social svg path { fill: var(--text-secondary); transition: fill 0.2s; }
.social a:hover svg path { fill: var(--text); }
.footer-cols {
  display: flex;
  flex: 1;
  gap: 0 3rem;
}
.footer-col {
  flex: 1 1 140px;
  max-width: 340px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  gap: 24px;
}
.footer-col h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: var(--text);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col li { margin: 0; }
.footer-col a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}
.footer-col a:hover { text-decoration: underline; }

/* === Header scrolled state (mobile) === */
.gonka-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === Responsive === */
@media (max-width: 820px) {
  .footer-inner { flex-wrap: wrap; gap: 2rem 3rem; }
  .brand { flex-basis: 100%; padding-right: 0; }
  .footer-col { flex: 1 1 45%; }
  .quick-links-grid { justify-content: center; }
}

@media (max-width: 500px) {
  .gonka-header {
    padding: 14px;
    background-color: var(--bg);
  }
  .gonka-banner { width: 320px; margin-top: 0; }
  .gonka-inner { padding: 0 14px; }
  .gonka-hero::before { top: -160px; }
  .gonka-carousel {
    padding-left: 14px;
    padding-right: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }
  .gonka-carousel .carousel-track {
    width: max-content;
    min-width: 100%;
  }
  .partner-logos img { height: 28px; }
  .footer-inner {
    flex-direction: column;
    overflow-x: visible;
    gap: 2rem;
    padding: 40px 14px;
  }
  .brand {
    flex: 0 0 auto;
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .footer-cols {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
  }
  .footer-cols .footer-col {
    flex: 1 1 45%;
    min-width: 120px;
    max-width: none;
    margin-bottom: 0;
  }
  .footer-col { gap: 8px; }
  .quick-links-section { padding: 0 14px; }
  .cta-section { padding: 2rem 14px; }
  .quick-link-card { width: 160px; }
}
