/* ============================================================
   Codara — page-specific styles (hero, home sections, catalog, contact)
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-850) 0%, var(--navy-900) 100%);
  color: var(--text-inverse);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(5rem, 6rem + 4vw, 10rem);
}
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-verbs {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--white);
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}
.hero-verbs .verb { display: inline-block; position: relative; z-index: 0; }
/* accent bar sits BELOW the descenders and BEHIND the glyphs (z-index -1) */
.hero-verbs .verb::after {
  content: "";
  position: absolute;
  inset-inline: 0.04em;
  bottom: -0.16em;
  height: 0.09em;
  border-radius: 2px;
  opacity: 0.9;
  z-index: -1;
}
.verb-build::after { background: var(--green-500); }
.verb-organize::after { background: var(--navy-400); }
.verb-coordinate::after { background: var(--gold-500); }
.hero-verbs .amp { color: var(--navy-400); font-weight: 400; }
.hero-verbs .tail { display: block; color: var(--navy-200); font-weight: 400; font-size: 0.52em; margin-top: 0.55em; }

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--navy-200);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }

.hero-ticks { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; padding: 0; margin: 0; list-style: none; }
.hero-ticks li { display: flex; align-items: center; gap: 0.55em; font-size: var(--fs-sm); color: var(--navy-200); }
.hero-ticks .tick {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: var(--green-300);
  font-size: 11px; font-weight: 700;
}

.hero-visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-visual .orbit-logo { width: min(340px, 70vw); height: auto; filter: drop-shadow(0 24px 60px rgba(3, 10, 26, 0.55)); }

/* Orbit logo — CSS-driven build-in + idle ring drift */
.ol-orbiter { transform-box: view-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .ol-c { stroke-dasharray: 150; stroke-dashoffset: 150; animation: olDraw 1.1s var(--ease) 0.55s forwards; }
  .ol-core { transform-box: view-box; transform-origin: 50% 50%; transform: scale(0); animation: olPop 0.5s var(--ease) 1.45s forwards; }
  .ol-orbiter { animation: olSpin 46s linear infinite; }
}
@keyframes olDraw { to { stroke-dashoffset: 0; } }
@keyframes olPop { to { transform: scale(1); } }
@keyframes olSpin { to { transform: rotate(360deg); } }

/* staggered entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-in { opacity: 0; transform: translateY(26px); animation: heroIn 0.85s var(--ease) forwards; }
  .hero-in.d1 { animation-delay: 90ms; } .hero-in.d2 { animation-delay: 200ms; }
  .hero-in.d3 { animation-delay: 320ms; } .hero-in.d4 { animation-delay: 450ms; }
  .hero-visual .orbit-logo { opacity: 0; transform: scale(0.92); animation: heroLogo 1.1s var(--ease) 250ms forwards; }
}
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroLogo { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 4.5rem 3.5rem; }
  .hero-visual { order: -1; min-height: 0; }
  .hero-visual .orbit-logo { width: min(200px, 48vw); }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background:
    radial-gradient(600px 120px at 50% 0%, rgba(34, 197, 94, 0.06), transparent),
    var(--navy-950);
  color: var(--navy-200);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 2;
}
.stats-strip .row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 2.4rem; gap: 0;
}
.stat { display: grid; gap: 0.45rem; justify-items: center; text-align: center; position: relative; padding-inline: 1rem; }
.stat:not(:first-child)::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: 12%;
  height: 76%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.16), transparent);
}
.stat .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--green-300);
  display: grid; place-items: center;
  margin-bottom: 0.15rem;
}
.stat .ic svg { width: 20px; height: 20px; }
.stat .val { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; color: var(--white); direction: ltr; unicode-bidi: isolate; }
.stat .val .u { color: var(--green-500); }
.stat .lab { font-size: var(--fs-sm); color: var(--navy-200); }
@media (max-width: 700px) {
  .stats-strip .row { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .stat:nth-child(odd)::before { display: none; }
}

/* ---------- Pillars ---------- */
.pillars { padding-block: var(--section) 0; }
.pillars-grid { grid-template-columns: repeat(3, 1fr); }
.pillar {
  padding: 1.9rem 1.7rem 1.7rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.pillar .p-verb { font-size: var(--fs-h3); font-weight: 700; margin: 0.9rem 0 0.2rem; }
.pillar .p-en { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-400); }
.pillar p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0.6rem 0 0; }
.pillar .glyph {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem;
}
.pillar-build .glyph { background: var(--green-100); color: var(--green-700); }
.pillar-organize .glyph { background: var(--navy-100); color: var(--navy-700); }
.pillar-coordinate .glyph { background: var(--gold-100); color: var(--gold-600); }
@media (max-width: 820px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ---------- Divisions ---------- */
.divisions { padding-block: var(--section) 0; }
.div-grid { grid-template-columns: repeat(3, 1fr); }
.div-card { padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; min-height: 100%; }
.div-card .head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.div-card .head img {
  width: 48px; height: 48px; flex: none;
  padding: 9px; border-radius: 12px;
  background: var(--gray-100);
}
.div-card.fam-green .head img { background: var(--green-100); }
.div-card.fam-navy .head img { background: var(--navy-100); }
.div-card.fam-gold .head img { background: var(--gold-100); }
.div-card .head .t { display: grid; gap: 0.1rem; }
.div-card .head .en { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--gray-400); }
.div-card .head h3 { font-size: 1.08rem; margin: 0; }
.div-card p { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; margin-bottom: 1.1rem; }
.div-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.div-card .from { font-size: var(--fs-xs); color: var(--gray-500); }
.div-card .from .num { font-weight: 600; color: var(--navy-800); font-size: 0.95rem; }
.div-card .go {
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy-600);
  display: inline-flex; align-items: center; gap: 0.35em;
  transition: gap var(--dur-fast) var(--ease);
}
.div-card:hover .go { gap: 0.6em; color: var(--navy-500); }
@media (max-width: 980px) { .div-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .div-grid { grid-template-columns: 1fr; } }

/* ---------- Alpaschkatb product band ---------- */
.product-band {
  margin-top: var(--section);
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.product-band .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.product-band h2 { font-size: var(--fs-h2); }
.product-band .prod-tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-200);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.35em 1em;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}
.product-feats { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.7rem; }
.product-feats li { display: flex; gap: 0.6em; align-items: baseline; color: var(--navy-200); font-size: var(--fs-sm); }
.product-feats li::before { content: "◆"; color: var(--green-500); font-size: 0.6em; flex: none; transform: translateY(-2px); }
.product-shot {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-800);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
}
.product-shot .win {
  border-radius: var(--radius-md);
  background: var(--navy-950);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.product-shot .win .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.product-shot .win .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.product-shot .win .bar i:first-child { background: var(--green-500); }
.product-shot .rows { padding: 14px; display: grid; gap: 9px; }
.product-shot .rows .r { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.product-shot .rows .r b { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.product-shot .rows .r b.g { background: rgba(34, 197, 94, 0.45); }
.product-shot .rows .r b.gold { background: rgba(212, 175, 55, 0.4); }
@media (max-width: 900px) { .product-band .container { grid-template-columns: 1fr; } }

/* ---------- Why / trust ---------- */
.why { padding-block: var(--section) 0; }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-item { padding: 1.5rem 1.4rem; }
.why-item .n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--gray-400); letter-spacing: 0.14em; }
.why-item h3 { font-size: 1.05rem; margin: 0.55rem 0 0.35rem; }
.why-item p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--section) 0; }
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--navy-850);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}
.cta-box h2 { font-size: var(--fs-h2); color: var(--white); max-width: 24ch; margin-inline: auto; }
.cta-box p { color: var(--navy-200); max-width: 46ch; margin: 0 auto 2rem; }
.cta-box .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-box .orbit-field svg { opacity: 0.5; }

/* ============================================================
   CATALOG (services.html)
   ============================================================ */
.page-head {
  background: var(--navy-850);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.page-head .container { position: relative; z-index: 2; padding-block: clamp(3rem, 5vw, 5rem); }
.page-head h1 { font-size: var(--fs-h1); color: var(--white); max-width: 20ch; }
.page-head .lead { color: var(--navy-200); font-size: var(--fs-lead); max-width: 52ch; }
.page-head .vat-note {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--green-300);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.4em 1em; border-radius: var(--radius-pill);
}

.catalog-tools {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 0.9rem;
}
.catalog-tools .row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.catalog-tools .chips { display: flex; flex-wrap: wrap; gap: 0.45rem; flex: 1; }
.search-wrap { position: relative; min-width: min(280px, 100%); }
.search-wrap input {
  width: 100%;
  padding: 0.6em 2.6em 0.6em 1em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  font: 400 var(--fs-sm) var(--font-sans);
  color: var(--text-strong);
  transition: border-color var(--dur-fast) var(--ease);
}
.search-wrap input:focus { border-color: var(--navy-500); outline: none; }
.search-wrap .icon { position: absolute; inset-inline-end: 0.9em; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

.catalog { padding-block: 2.5rem 0; }
.cat-count { font-size: var(--fs-xs); color: var(--gray-500); margin-bottom: 1.2rem; }
.svc-section { margin-bottom: 3rem; }
.svc-section > .svc-title {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.svc-section > .svc-title img { width: 40px; height: 40px; }
.svc-section > .svc-title h2 { font-size: var(--fs-h3); margin: 0; }
.svc-section > .svc-title .en { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--gray-400); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.15rem; position: relative; }
.svc-card .sv-head { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.svc-card .sv-ic {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease);
}
.svc-card .sv-ic svg { width: 20px; height: 20px; }
.svc-card:hover .sv-ic { transform: scale(1.08) rotate(-4deg); }
.svc-card.fam-green .sv-ic { background: var(--green-100); color: var(--green-700); }
.svc-card.fam-navy .sv-ic { background: var(--navy-100); color: var(--navy-700); }
.svc-card.fam-gold .sv-ic { background: var(--gold-100); color: var(--gold-600); }
.svc-card h3 { font-size: 1rem; margin: 0; line-height: 1.45; padding-top: 0.35rem; }
.svc-card .desc { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 0.7rem; }
.svc-card .inc { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.svc-card .inc li {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  font-size: var(--fs-xs); color: var(--gray-600);
}
.svc-card .inc li::before { content: "✓"; color: var(--green-600); font-weight: 700; font-size: 0.9em; }
.svc-card .meta { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem; }
.svc-card .price { display: grid; gap: 0.05rem; }
.svc-card .price .from { font-size: var(--fs-xs); color: var(--gray-500); }
.svc-card .price .num { font-weight: 600; font-size: 1.15rem; color: var(--navy-800); }
.svc-card .price .num .cur { font-size: 0.7em; color: var(--gray-500); font-weight: 400; }
.svc-card .price .per { font-size: var(--fs-xs); color: var(--green-600); font-weight: 600; }
.svc-card .delivery { font-size: var(--fs-xs); color: var(--gray-500); text-align: start; }
.svc-card .note { font-size: var(--fs-xs); color: var(--gold-600); margin: 0.5rem 0 0; }
.svc-card .pop {
  position: absolute; top: 0.9rem; inset-inline-end: 0.9rem;
  background: var(--green-100); color: var(--green-700);
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--radius-pill); padding: 0.15em 0.75em;
}
.svc-empty { text-align: center; color: var(--gray-500); padding: 4rem 1rem; }
.svc-empty .mono { font-family: var(--font-mono); color: var(--gray-400); }

/* ============================================================
   CONTACT (contact.html)
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: 3rem var(--section);
  align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.channel-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem;
}
.channel .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700);
}
.channel.wa .ic { background: var(--green-100); color: var(--green-700); }
.channel .t { display: grid; gap: 0.05rem; }
.channel .t .lab { font-size: var(--fs-xs); color: var(--gray-500); }
.channel .t .val { font-weight: 600; color: var(--navy-800); font-size: var(--fs-sm); }

.form-card { padding: clamp(1.5rem, 3vw, 2.4rem); }
.form-card h2 { font-size: var(--fs-h3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.field { display: grid; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800); }
.field input, .field select, .field textarea {
  padding: 0.7em 1em;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  font: 400 var(--fs-body) var(--font-sans);
  color: var(--text-strong);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-500); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: var(--fs-xs); color: var(--gray-500); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-top: 0.4rem; }
.form-foot .privacy { font-size: var(--fs-xs); color: var(--gray-500); max-width: 40ch; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-ok {
  display: none;
  background: var(--green-100); color: var(--green-700);
  border: 1px solid var(--green-300);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem; font-weight: 600; font-size: var(--fs-sm);
  margin-top: 1.2rem;
}
.form-ok.show { display: block; }
