/* =========================================================
   EL NIŇO s.r.o. — Business Landing + Canvas Video Background
   Aesthetic: Light Editorial with Semi-Transparent Sections
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-light: #F5F2EF;
  --bg-dark: #1a1a1a;
  --brand-blue: #1B4F7C;
  --brand-orange: #D4652E;
  --text-on-light: #1a1a1a;
  --text-on-dark: #F5F2EF;
  --text-muted: #5a5a5a;
  --text-subtle: #888;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Outfit', sans-serif;

  --bg-section: rgba(245, 242, 239, 0.88);
  --bg-section-light: rgba(245, 242, 239, 0.75);
  --section-blur: 10px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-on-light);
  overflow-x: hidden;
}

/* ── Loader ─────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.loader-track {
  width: 200px;
  height: 2px;
  background: rgba(27, 79, 124, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--brand-blue);
  border-radius: 1px;
  transition: width 0.15s linear;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-subtle);
  margin-top: 0.8rem;
  letter-spacing: 0.08em;
}

/* ── Canvas Background ──────────────────────────── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

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

/* ── Site Header ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.header-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 0.6; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 242, 239, 0.82) 0%,
    rgba(245, 242, 239, 0.6) 60%,
    rgba(245, 242, 239, 0.2) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-left: 6vw;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-orange);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(212, 101, 46, 0.3);
  border-radius: 100px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.92;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}

.hero-heading .word {
  display: inline-block;
  margin-right: 0.3em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--brand-orange);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.hero-scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
}

.scroll-arrow {
  width: 1px;
  height: 32px;
  background: var(--text-subtle);
  position: relative;
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--text-subtle);
  border-bottom: 1px solid var(--text-subtle);
  transform: rotate(45deg);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ── Main Content ───────────────────────────────── */
.main-content {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ── Section Base ───────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-section);
  backdrop-filter: blur(var(--section-blur));
  -webkit-backdrop-filter: blur(var(--section-blur));
}

@supports not (backdrop-filter: blur(1px)) {
  .section { background: var(--bg-light); }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--brand-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Services Bento Grid ────────────────────────── */
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-card.span-2 {
  grid-column: span 2;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--brand-blue);
}

.service-card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-light);
  margin-bottom: 0.5rem;
}

.service-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Showcase Card Grid ─────────────────────────── */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(27, 79, 124, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-placeholder {
  color: var(--brand-blue);
  opacity: 0.4;
}

.badge-number {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-light);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Stats Section ──────────────────────────────── */
.stats-section {
  background: var(--bg-section-light);
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--brand-blue);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 300;
  color: var(--brand-orange);
  margin-left: 0.1em;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── Process Timeline ───────────────────────────── */
.process-timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.process-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

/* Connecting line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 1.5px;
  background: rgba(27, 79, 124, 0.2);
  z-index: 0;
}

.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.step-number {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-light);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Coverage Map ───────────────────────────────── */
.coverage-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 2rem auto 0;
}

.map-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(27, 79, 124, 0.12);
}

.ring-outer {
  inset: 0;
}

.ring-middle {
  inset: 15%;
}

.ring-inner {
  inset: 35%;
}

.map-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.map-center-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  margin-top: 0.3rem;
}

.city-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.city-dot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
}

.city-name {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── CTA Banner ─────────────────────────────────── */
.cta-banner {
  background: var(--brand-orange);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.btn-dark {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  background: var(--bg-dark);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-dark:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
}

/* ── Contact Section ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
}

.info-card--address {
  padding: 0.8rem 1.2rem;
  background: transparent;
  border: none;
}

.info-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27, 79, 124, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.info-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-light);
}

.info-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-on-light);
  transition: border-color 0.3s;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: #c0392b;
}

.contact-form textarea {
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--brand-blue);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
  background: #143d60;
  transform: translateY(-2px);
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--bg-section);
  backdrop-filter: blur(var(--section-blur));
  -webkit-backdrop-filter: blur(var(--section-blur));
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

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

  .service-card.span-2 {
    grid-column: span 2;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(245, 242, 239, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    /* Override mix-blend-mode for mobile menu */
    mix-blend-mode: normal;
  }

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

  .nav-links a {
    font-size: 1.2rem;
    color: var(--text-on-light);
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-heading {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .hero-scroll-indicator {
    left: 5vw;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-card.span-2 {
    grid-column: span 1;
  }

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

  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .process-step {
    max-width: 100%;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

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

  .coverage-map {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .cta-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}
