/* ============================================================
   INNOKIDO — Main Stylesheet
   Cascade layer order: reset → tokens → base → components → pages
   Imported partials: reset.css · tokens.css · base.css · nav.css · footer.css
   ============================================================
   INDEX (this file only — partials are separate)
   L17   Hero
   L131  Services cards (.ikd-card__*)
   L172  ZOE bullets (.ikd-zoe-bullets)
   L204  CTA Strip (.ikd-cta-strip)
   L246  Contact layout (.ikd-contact-layout)
   L260  Contact form (.ikd-form)
   L401  Contact info panel (.ikd-contact-info)
   L462  ZOE page — dark section card override
   ============================================================ */

@import url('./reset.css');
@import url('./tokens.css');
@import url('./base.css');
@import url('./nav.css');
@import url('./footer.css');

/* ============================================================
   HERO v2
   4-layer background: gradient + blueprint grid + constellation + technical marks
   ============================================================ */

.ikd-hero {
  min-height: max(900px, calc(100svh - var(--nav-height)));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(38, 81, 163, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(58, 111, 216, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0a1427 0%, #111d36 60%, #0a1427 100%);
  position: relative;
  overflow: hidden;
}

/* Layer 2 — blueprint grid SVG */
.ikd-hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

/* Layer 3 — constellation SVG */
.ikd-hero__constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Layer 4 — technical corner marks */
.ikd-hero__techmark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(122, 163, 255, 0.5);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
  z-index: 1;
}

.ikd-hero__techmark--tr {
  top: calc(var(--nav-height) + 16px);
  right: 32px;
  align-items: flex-end;
  letter-spacing: 0.12em;
}

.ikd-hero__techmark--bl {
  bottom: 32px;
  left: 32px;
  letter-spacing: 0.18em;
  color: rgba(122, 163, 255, 0.4);
}

.ikd-hero__techmark-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ikd-hero__status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

/* Content layer */
.ikd-hero .ikd-container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-6);
  padding-bottom: var(--space-16);
}

.ikd-hero__content {
  max-width: 820px;
}

.ikd-hero__headline {
  color: var(--color-white);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.ikd-hero__accent {
  font-style: normal;
  color: var(--color-blue-pale);
}

.ikd-hero__subline {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: none;
}

.ikd-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}

/* Geo strip — base flex layout (shared by all hero sections) */
.ikd-hero__geo {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.ikd-hero__geo-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.ikd-hero__geo-items {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ikd-hero__geo-item {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.ikd-hero__geo-item::before {
  content: '·';
  color: var(--color-blue-light);
  font-size: var(--text-lg);
  line-height: 1;
}

.ikd-hero__geo-item:first-child::before {
  display: none;
}

/* Homepage hero geo — v2 3-column grid override */
body[data-page="home"] .ikd-hero__geo {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
}

body[data-page="home"] .ikd-hero__geo-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

body[data-page="home"] .ikd-hero__geo-items {
  gap: var(--space-6);
}

body[data-page="home"] .ikd-hero__geo-item {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: rgba(255, 255, 255, 0.9);
  gap: 10px;
}

body[data-page="home"] .ikd-hero__geo-item::before {
  display: inline;
  content: '|';
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: var(--weight-regular);
}

body[data-page="home"] .ikd-hero__geo-item:first-child::before {
  display: none;
}

.ikd-hero__geo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-blue-light);
  box-shadow: 0 0 0 4px rgba(58, 111, 216, 0.2);
  flex-shrink: 0;
}

.ikd-hero__geo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.ikd-hero__geo-status .ikd-hero__status-dot {
  width: 8px;
  height: 8px;
}

/* Responsive */
@media (max-width: 1023px) {
  .ikd-hero__techmark--tr {
    display: none;
  }
}

@media (max-width: 767px) {
  .ikd-hero__geo {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .ikd-hero__geo-items {
    gap: var(--space-3);
  }

  .ikd-hero__techmark--bl {
    display: none;
  }
}

@media (max-width: 640px) {
  .ikd-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ikd-hero__actions .ikd-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Services Section ── */
.ikd-card__numeral {
  display: block;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  margin-bottom: var(--space-3);
  color: rgba(38, 81, 163, 0.12);
}

.ikd-card__heading {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.ikd-card__body {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-3);
}

.ikd-card__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-blue);
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ikd-card__link:hover {
  color: var(--color-blue-light);
}

.ikd-card__link::after {
  content: ' →';
}

/* ── ZOE Section ── */
.ikd-zoe-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-6) auto 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}

.ikd-zoe-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.88);
  line-height: var(--leading-snug);
}

.ikd-zoe-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-blue-light);
  margin-top: 0.5em;
}

/* ── CTA Strip ── */
.ikd-cta-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.ikd-cta-strip__copy {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  color: var(--color-white);
  line-height: var(--leading-snug);
  max-width: 40ch;
  margin: 0;
}

.ikd-cta-strip__email {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.60);
}

.ikd-cta-strip__email a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: var(--weight-semi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ikd-cta-strip__email a:hover {
  color: var(--color-white);
}

@media (max-width: 480px) {
  .ikd-cta-strip .ikd-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Contact Split Layout ── */
.ikd-contact-hero {
  background-color: var(--bg-dark);
  color: var(--color-white);
  padding-block: var(--space-16);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.ikd-contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.ikd-contact-split__headline {
  font-size: clamp(2.441rem, 4.5vw, 4rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.ikd-contact-split__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.52);
  line-height: var(--leading-normal);
  max-width: 38ch;
}

.ikd-contact-split__right {
  padding-top: 0.375rem;
}

.ikd-contact-item {
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ikd-contact-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ikd-contact-item__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-blue-pale);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ikd-contact-item__value {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--color-white);
  line-height: var(--leading-snug);
  text-decoration: none;
}

a.ikd-contact-item__value:hover {
  color: var(--color-blue-pale);
}

/* Lang-block visibility: used by static pages (privacy, legal) */
html[data-lang="en"] [data-lang-es] { display: none; }
html[data-lang="es"] [data-lang-en] { display: none; }

@media (max-width: 768px) {
  .ikd-contact-hero {
    padding-block: var(--space-10);
    min-height: auto;
  }

  .ikd-contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── 404 page — center single button in actions ── */
body[data-page="error_404"] .ikd-hero__actions {
  justify-content: center;
}

/* ── ZOE Page — dark section card override ── */
/* Cards inside .ikd-section--dark use translucent dark surface instead of white */
.ikd-section--dark .ikd-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.ikd-section--dark .ikd-card .ikd-card__heading {
  color: var(--color-white);
}

.ikd-section--dark .ikd-card .ikd-card__body {
  color: rgba(255, 255, 255, 0.72);
}

/* ZOE tile icons — inherit white color from parent */
.ikd-zoe-tile__icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-3);
  color: var(--color-blue-light);
}

/* Suppress hover lift on dark-background cards (ZOE tiles) */
.ikd-section--dark .ikd-card:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================================
   HERO PAGE DIFFERENTIATORS
   One modifier class per interior page — adds visual identity
   without touching layout or the base .ikd-hero structure.
   ============================================================ */

/* ── ABOUT — left-to-right navy gradient + geometric circle accent ── */
.ikd-hero--about {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(38, 81, 163, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(58, 111, 216, 0.18) 0%, transparent 55%),
    linear-gradient(90deg, #0a1427 0%, #0d1f3c 100%);
}

.ikd-hero--about::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(38, 81, 163, 0.15);
  border-radius: 50%;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* ── MARKET DEVELOPMENT — diagonal gradient + repeating diagonal lines ── */
.ikd-hero--market-dev {
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(38, 81, 163, 0.04) 40px,
      rgba(38, 81, 163, 0.04) 41px
    ),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(38, 81, 163, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(58, 111, 216, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0d1f3c 0%, #0a1427 50%, #111d36 100%);
}

/* ── PROJECT INTEGRATION — subtle grid + radial center darken for readability ── */
.ikd-hero--integration {
  background:
    radial-gradient(ellipse 80% 70% at 30% 50%, rgba(10, 20, 39, 0.55) 0%, transparent 65%),
    linear-gradient(rgba(38, 81, 163, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 81, 163, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(38, 81, 163, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(58, 111, 216, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0a1427 0%, #111d36 60%, #0a1427 100%);
  background-size: auto, 40px 40px, 40px 40px, auto, auto, auto;
}

/* ── HOW WE WORK — top-to-bottom gradient + subtle dot matrix ── */
.ikd-hero--how-we-work {
  background:
    radial-gradient(rgba(38, 81, 163, 0.12) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(38, 81, 163, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(58, 111, 216, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0a1427 0%, #0d1e3a 100%);
  background-size: 24px 24px, auto, auto, auto;
}

/* ── ZOE — strong top-right glow, node graph SVG decoration via HTML ── */
.ikd-hero--zoe {
  background:
    radial-gradient(ellipse 60% 60% at 85% 20%, rgba(38, 81, 163, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(38, 81, 163, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(58, 111, 216, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0a1427 0%, #111d36 60%, #0a1427 100%);
}

/* ZOE node graph — absolute SVG decoration in the top-right corner */
.ikd-hero__nodes {
  position: absolute;
  top: var(--nav-height);
  right: 0;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 1;
}
