/* ===================================================
   Okultis — Dark & Bold Theme
   =================================================== */

/* --- Custom Properties --- */
:root {
  --bg:        #0a0a0f;
  --bg-card:   #12121a;
  --bg-input:  #1a1a26;
  --accent:    #00d4ff;
  --accent-hover: #00b8e0;
  --text:      #ffffff;
  --text-muted:#a0a0b0;
  --border:    #2a2a3a;
  --radius:    12px;
  --max-width: 1120px;
  --header-h:  72px;
  --font:      'Space Grotesk', system-ui, sans-serif;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 44px;
  width: auto;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: var(--dot-x, 50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: left 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.2s ease;
}

.nav__link:hover::after {
  transform: translateX(-50%) scale(1);
}

.nav__link.active::after {
  transform: translateX(-50%) scale(1);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link--cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 24px;
  padding: 8px 20px;
  transition: background var(--transition), color var(--transition);
}

.nav__link--cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav__link--cta::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero --- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0, 212, 255, 0.08), transparent);
}

.hero__inner {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* --- Sections (shared) --- */
.section {
  padding: 100px 0;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* --- About --- */
.about__content {
  max-width: 680px;
}

.about__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about__content p:last-child {
  margin-bottom: 0;
}

/* --- Services --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card__icon {
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Clients --- */

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  flex: none;
  display: flex;
  align-items: center;
  height: 60px;
}

.marquee__item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition), filter var(--transition);
}

.marquee__item img:hover {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* --- Contact --- */
.contact {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.contact__intro {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.form__input::placeholder {
  color: #555566;
}

.form__input:focus {
  border-color: var(--accent);
}

.form__input.is-invalid {
  border-color: #ff4d6a;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  display: block;
  font-size: 0.8rem;
  color: #ff4d6a;
  margin-top: 6px;
  min-height: 1.2em;
}

.form__status {
  margin-top: 20px;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}

.form__status--success { color: #00e676; }
.form__status--error   { color: #ff4d6a; }

.form__recaptcha-notice {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.form__recaptcha-notice a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color var(--transition);
}

.form__recaptcha-notice a:hover {
  color: var(--text);
}

/* --- reCAPTCHA badge --- */
.grecaptcha-badge { visibility: hidden; }

/* --- Contact Page --- */
.contact-page {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px;
}

.contact-page .section__title {
  margin-bottom: 8px;
}

.contact-page .contact__intro {
  margin-bottom: 48px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-page__map iframe {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-page__info {
  margin-top: 32px;
}

.contact-page__info-item {
  margin-bottom: 24px;
}

.contact-page__info-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-page__info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.contact-page__info-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.contact-page__info-item a:hover {
  color: var(--accent-hover);
}

/* --- Legal Pages --- */
.legal {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px;
}

.legal .container {
  max-width: 760px;
}

.legal__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal__updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal section {
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal a:hover {
  color: var(--accent-hover);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.cookie-banner__text a:hover {
  color: var(--accent-hover);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--text);
  color: var(--text);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===================================================
   Responsive
   =================================================== */

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

}

/* Mobile */
@media (max-width: 768px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav__list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

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

  .nav.is-open .nav__list li:nth-child(1) { transition-delay: 0.05s; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 0.1s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 0.15s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 0.2s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: 0.25s; }

  .nav__link {
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 600;
    padding: 16px 0;
    color: var(--text);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    border: none;
    border-radius: 0;
    padding: 16px 0;
    background: none;
  }

  .nav__link--cta:hover {
    background: none;
    color: var(--accent);
  }

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

  .nav__link.active {
    color: var(--accent);
  }

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

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section {
    padding: 72px 0;
  }

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

  .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}

