/* ===================================================================
   CYBERSEC CYPRUS — security outsourcing
   Static site · no build step · plain CSS
   Shares the PALANIT design language (Anton + Space Grotesk, pop/lime).
   =================================================================== */

:root {
  --ink:   #0a0a0a;
  --paper: #ffffff;
  --lime:  #cdf546;   /* the green field */
  --pop:   #ff4326;   /* CYBERSEC orange */
  --sea:   #12a4c4;   /* Mediterranean blue */
  --muted: #6b6b6b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* ---------- HOME: DARK BACKGROUND ---------- */
body.home { background: var(--ink); color: var(--paper); }

.home .eyebrow { color: #8c8c8c; }

/* lime pills read fine on black; lift them with a light drop-shadow */
.home .field:hover,
.home .email:hover { box-shadow: 6px 6px 0 rgba(255,255,255,.16); }

/* services list flipped to light-on-dark */
.home .svc { border-top-color: rgba(255,255,255,.14); }
.home .svc__head { color: var(--paper); }
.home .svc__num { color: rgba(255,255,255,.42); }
.home .svc__desc { color: #cfcfcf; }
.home .svc__price { color: var(--paper); }
.home .disclaimer { color: #9a9a9a; border-top-color: rgba(255,255,255,.14); }

/* side links + footer accents that were dark */
.home .side:hover { color: var(--paper); }
.home .foot a strong { color: var(--paper); }
.home .foot a:hover,
.home .foot a:hover strong { color: var(--pop); }

/* ---------- SIDE LINKS (faint, vertical) ---------- */
.side {
  position: fixed; top: 50%; z-index: 20;
  writing-mode: vertical-rl;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--lime);
  opacity: .55; filter: saturate(.7);
  transition: opacity .25s ease, filter .25s ease, color .25s ease;
  padding: 6px;
}
.side:hover { opacity: 1; filter: none; color: var(--ink); }
.side--left  { left: 10px;  transform: translateY(-50%) rotate(180deg); }
.side--right { right: 10px; transform: translateY(-50%); }
@media (max-width: 820px) { .side { display: none; } }

/* ---------- STAGE ---------- */
.stage {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) 22px 56px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* ---------- TITLE ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.title {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  line-height: .84; letter-spacing: .01em;
  display: flex; flex-direction: column;
}
.title__pop { color: var(--pop); font-size: clamp(54px, 14vw, 132px); }
.title__sea { color: var(--sea); font-size: clamp(54px, 14vw, 132px); }
.title__sec { color: inherit; }

/* Elvish mode: "SEC" blinks like a car turn-signal (amber, smooth fade) */
@keyframes turn-signal {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: .1; }
  100%     { opacity: 1; }
}
body.lang-elv .title__sec {
  color: #ffb300;
  text-shadow: 0 0 22px rgba(255,179,0,.85), 0 0 6px rgba(255,179,0,.95);
  animation: turn-signal .95s cubic-bezier(.45,.05,.4,1) infinite;
}

/* ---------- SERVICES FIELD ---------- */
.services { width: 100%; margin-top: clamp(32px, 6vh, 60px); }

.field-wrap { position: relative; width: 100%; }

.field {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--lime); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 16px;
  padding: 20px 56px; cursor: pointer;
  font-family: "Anton", sans-serif; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}
.field:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.field__label {
  font-size: clamp(20px, 4.6vw, 36px); letter-spacing: .02em; line-height: 1.05;
}
.field__chev {
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.field[aria-expanded="true"] .field__chev { transform: rotate(180deg); }

/* ---------- LANGUAGE SWITCHER (globe) ---------- */
.lang { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); z-index: 60; }
.lang__btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: none; border-radius: 10px; cursor: pointer;
  background: rgba(10,10,10,.08); color: var(--ink);
  transition: background .2s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.lang__btn:hover { background: rgba(10,10,10,.18); }
.lang.open .lang__btn { transform: rotate(180deg); background: rgba(10,10,10,.18); }
.lang__btn svg { width: 23px; height: 23px; }

.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 176px; list-style: none; margin: 0; padding: 6px;
  background: #161616; border: 1.5px solid rgba(255,255,255,.14); border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .22s ease, transform .24s cubic-bezier(.22,1,.36,1), visibility .24s;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu li { margin: 0; }
.lang__menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 600;
  color: #e8e8e8; text-align: left; padding: 9px 12px; border-radius: 9px;
  transition: background .15s ease, color .15s ease;
}
.lang__menu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang__menu button[aria-checked="true"] { color: var(--lime); }
.lang__menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; font-weight: 700; }
/* the hidden ancient tongue — small, faint, set apart */
.lang__menu li:last-child { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 2px; }
.lang__menu button.lang--elv {
  font-size: 11px; letter-spacing: .16em; font-style: italic; text-transform: uppercase;
  color: #93b7c9;
}
.lang__menu button.lang--elv::before { content: "✦ "; font-style: normal; color: #cdf546; }
.lang__menu button.lang--elv[aria-checked="true"] { color: var(--lime); }
@media (max-width: 420px) { .field { padding: 18px 50px; } .lang { right: 9px; } }

/* ---------- ELVISH EASTER EGG: lightning + breakable button ---------- */
.lightning {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .45s ease;
}
.lightning.on { opacity: 1; }

.email-cracks {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: hidden;
  border-radius: 999px;
  clip-path: inset(0 round 999px); /* keep cracks inside the pill shape */
}
body.lang-elv .email { cursor: crosshair; }

/* "Buy Me a Coffee" button that replaces the shattered email button */
.bmc-btn {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: clamp(22px, 4vh, 34px);
  background: #FFDD00; color: #0a0a0a;
  border: 2px solid #000000; border-radius: 12px;
  padding: 9px 18px 7px;
  font-family: "Cookie", "Space Grotesk", cursive; font-size: 26px; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bmc-btn:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 #000000; }
.bmc-btn__cup { width: 22px; height: 24px; flex-shrink: 0; }
.bmc-btn:hover .bmc-btn__cup { animation: bmc-wiggle .5s ease; }
.bmc-btn__text { padding-bottom: 2px; }
@keyframes bmc-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

/* ---------- MASTER PANEL (level 1) ---------- */
.panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.22,1,.36,1);
}
.panel.open { grid-template-rows: 1fr; }
.panel__inner { overflow: hidden; }

.list { list-style: none; margin-top: 14px; }

/* ---------- SERVICE ROW (level 2) ---------- */
.svc { border-top: 1.5px solid rgba(10,10,10,.12); }
.svc:first-child { border-top: none; }

.svc__head {
  width: 100%; display: flex; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer;
  padding: 18px 6px; text-align: left;
  color: var(--ink); transition: color .2s ease;
}
.svc__head:hover { color: var(--pop); }
.svc__num {
  font-family: "Anton", sans-serif; font-size: 14px;
  color: rgba(10,10,10,.4); min-width: 26px;
}
.svc__name {
  flex: 1; font-size: clamp(15px, 2.6vw, 19px); font-weight: 700; line-height: 1.3;
}
.svc__chev {
  flex-shrink: 0; color: var(--sea);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.svc.open .svc__chev { transform: rotate(90deg); }
.svc.open .svc__name { color: var(--pop); }

.svc__detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.22,1,.36,1);
}
.svc.open .svc__detail { grid-template-rows: 1fr; }
.svc__detailInner { overflow: hidden; }

.svc__body {
  padding: 0 6px 22px 48px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px;
  text-align: left;
}
.svc__desc { color: #2a2a2a; font-weight: 500; font-size: 15px; line-height: 1.55; flex: 1 1 300px; }
.svc__bar { color: var(--lime); font-weight: 700; align-self: stretch; }
.svc__price {
  font-family: "Anton", sans-serif; color: var(--ink);
  font-size: 20px; white-space: nowrap; letter-spacing: .01em;
}

.disclaimer {
  margin-top: 18px; padding: 14px 6px 4px;
  font-size: 13px; line-height: 1.55; color: var(--muted);
  border-top: 1.5px solid rgba(10,10,10,.12); text-align: left;
}

/* ---------- EMAIL CTA ---------- */
.email {
  display: inline-block; margin-top: clamp(22px, 4vh, 34px);
  background: var(--lime); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font-family: "Anton", sans-serif; text-transform: lowercase; letter-spacing: .02em;
  font-size: clamp(15px, 2.2vw, 17px); padding: 10px 24px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.email:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); background: var(--pop); color: var(--paper); }

/* ---------- FOOTER ---------- */
.foot { margin-top: clamp(36px, 7vh, 64px); }
.foot a {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); transition: color .2s ease;
}
.foot a strong { color: var(--ink); }
.foot a:hover { color: var(--pop); }
.foot a:hover strong { color: var(--pop); }

/* ---------- LEGAL / DOC PAGES ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) 22px 80px; }
.doc__back {
  display: inline-block; margin-bottom: 28px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); transition: color .2s ease;
}
.doc__back:hover { color: var(--pop); }
.doc h1 {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: clamp(34px, 8vw, 64px); line-height: .92; color: var(--ink);
}
.doc h1 .accent { color: var(--pop); }
.doc__meta { margin: 14px 0 36px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.doc h2 {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: clamp(20px, 4vw, 28px); margin: 38px 0 12px; color: var(--ink);
}
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: #2a2a2a; font-weight: 400; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px 22px; }
.doc li { margin-bottom: 6px; }
.doc a.inline { color: var(--sea); font-weight: 700; }
.doc a.inline:hover { color: var(--pop); }
.doc__rule { border: none; border-top: 2px solid var(--ink); margin: 44px 0 24px; }
.doc__foot { font-size: 13px; color: var(--muted); }
.doc__foot a { color: var(--ink); font-weight: 700; }
.doc__foot a:hover { color: var(--pop); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .title__sec { animation: none !important; opacity: 1 !important; }
  .lightning { display: none !important; }
}
