/* ============================================
   cyprusdroneX — Shared styles
   ============================================ */

:root {
  --bone: #efeae0;
  --bone-2: #e6e0d3;
  --ink: #0e0e0d;
  --ink-2: #1a1a18;
  --muted: #6b6660;
  --line: rgba(14, 14, 13, 0.14);
  --line-soft: rgba(14, 14, 13, 0.08);
  --signal: #ff5a1f;
  --signal-deep: #d94512;
  --sky: #2b6fb3;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Layout helpers
   ============================================ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================
   Typography
   ============================================ */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-size: clamp(48px, 8.4vw, 140px);
  margin: 0;
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(38px, 5.8vw, 88px);
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(28px, 3.4vw, 52px);
  margin: 0;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.1;
  font-size: clamp(22px, 1.9vw, 30px);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.eyebrow.muted { color: var(--muted); }

.lede {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  max-width: 56ch;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.brand .x {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bone);
  font-weight: 700;
  font-size: 14px;
}

.brand .mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand .mark svg { width: 100%; height: 100%; display: block; }

.brand-word {
  display: inline-flex;
  align-items: baseline;
}
.brand-word .last-x {
  color: var(--signal);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  letter-spacing: -0.005em;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity .15s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 1;
  transition: background .2s ease, color .2s ease;
}
.nav-links a.nav-cta:hover { background: var(--signal); color: var(--bone); opacity: 1; }
.nav-links a.nav-cta::after { display: none; }

.nav-cta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255,90,31,0.18);
}
.nav-cta:hover .dot { background: var(--bone); box-shadow: 0 0 0 4px rgba(239,234,224,0.25); }

/* Language Selector */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lang-btn:hover {
  border-color: var(--ink);
  background: var(--bone-2);
}
.lang-btn svg {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}
.lang-switcher.open .lang-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(14,14,13,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
  overflow: hidden;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.85;
  transition: background .15s ease, opacity .15s ease;
}
.lang-dropdown a:hover {
  background: var(--bone-2);
  opacity: 1;
}
.lang-dropdown a.active {
  background: var(--bone-2);
  opacity: 1;
  font-weight: 500;
}
.lang-dropdown a.active::after {
  content: "✓";
  margin-left: auto;
  color: var(--signal);
  font-size: 12px;
}

/* mobile nav stays simple */
@media (max-width: 640px) {
  .nav-inner { height: 60px; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand .mark { width: 28px; height: 28px; }
  .nav-links { gap: 10px; font-size: 13px; }
  .nav-links a:not(.nav-cta):not(.lang-switcher) { display: none; }
  .nav-links a.nav-cta { padding: 8px 14px; font-size: 12px; }
  .nav-cta .dot { width: 5px; height: 5px; }
  .lang-switcher { margin-left: 0; }
  .lang-btn { padding: 6px 10px; font-size: 12px; }
  .lang-dropdown { right: 0; min-width: 130px; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bone);
}
.btn-primary:hover { background: var(--signal); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 32px;
  margin-top: 120px;
}

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

.footer h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 500;
  color: rgba(239,234,224,0.55);
  margin: 0 0 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: 10px; }
.footer a {
  font-size: 15px;
  opacity: 0.85;
  transition: opacity .15s ease, color .15s ease;
}
.footer a:hover { opacity: 1; color: var(--signal); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.025em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .mark { width: 36px; height: 36px; flex-shrink: 0; }
.footer-brand .mark svg { width: 100%; height: 100%; display: block; }
.footer-brand .last-x { color: var(--signal); }

.footer-tag {
  margin-top: 14px;
  opacity: 0.7;
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(239,234,224,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(239,234,224,0.55);
  gap: 16px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(239,234,224,0.18);
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 1;
  transition: background .15s ease, border-color .15s ease;
}
.socials a:hover { background: var(--signal); border-color: var(--signal); }
.socials svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WhatsApp floating
   ============================================ */

/* TEMPORARILY DISABLED - WhatsApp numbers not active */
.wa-float,
a.channel[href*="wa.me"],
a.btn[href*="wa.me"],
a.link[href*="wa.me"] {
  display: none !important;
}

.wa-float {
  /* TEMPORARILY DISABLED - WhatsApp numbers not active */
  display: none !important;
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  /* display: grid; */
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.32), 0 2px 6px rgba(0,0,0,0.18);
  z-index: 60;
  transition: transform .2s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Sections
   ============================================ */

section { position: relative; }

.section-pad {
  padding-top: clamp(64px, 9vw, 140px);
  padding-bottom: clamp(64px, 9vw, 140px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head .meta { display: flex; align-items: center; gap: 12px; }
.section-head .index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ============================================
   Decorative coordinate strip
   ============================================ */

.coord-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.coord-strip .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.coord-strip .live .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255,90,31,0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,31,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,90,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); }
}

/* ============================================
   Hero (used by inner pages)
   ============================================ */
.page-hero {
  padding: clamp(40px, 8vw, 80px) 0 0;
}
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(44px, 6.5vw, 96px);
  margin: 0;
  max-width: 18ch;
}
.page-hero .lede { margin-top: 28px; }

/* ============================================
   Cards
   ============================================ */
.card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .25s ease;
}
.card:hover { border-color: var(--ink); }
.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #d8d2c4;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 26px 26px 28px; }
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card-title { margin: 0 0 10px; }
.card-text { color: var(--ink-2); font-size: 15px; line-height: 1.55; opacity: 0.85; }
.card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
}
.card-link .arrow { transition: transform .25s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ============================================
   Misc
   ============================================ */

::selection { background: var(--ink); color: var(--bone); }
