/* ============================================================
   BV BÓN — base.css
   Shared design system for the whole site.
   Hybrid theme: dark & cinematic hero/showcase, light & clean
   service/booking sections. Electric cyan→blue accent + glow.
   ============================================================ */

/* ----------  Design tokens  ---------- */
:root {
  /* Dark palette */
  --bg-900: #05070c;   /* deepest */
  --bg-800: #0b0f17;   /* base dark */
  --bg-700: #111726;   /* elevated dark */
  --bg-600: #1a2233;   /* hover / lines on dark */

  /* Light palette */
  --bg-50:  #f5f7fb;   /* light section bg */
  --white:  #ffffff;
  --line:   #e6ebf2;   /* light borders */
  --line-2: #eef1f6;

  /* Text on dark */
  --d-100: #eef3fa;    /* primary */
  --d-300: #aab6c9;    /* secondary */
  --d-500: #6d7c93;    /* muted */

  /* Text on light */
  --l-900: #0b0f17;    /* primary */
  --l-600: #47566e;    /* secondary */
  --l-400: #7d8aa2;    /* muted */

  /* Accent — electric cyan → blue */
  --a-cyan: #29e0f2;
  --a-blue: #4f7cff;
  --accent: #24c6e6;
  --accent-ink: #0a2a33;
  --accent-grad: linear-gradient(115deg, var(--a-cyan) 0%, var(--a-blue) 100%);
  --accent-soft: rgba(41, 224, 242, 0.12);
  --glow: 0 0 0 1px rgba(41,224,242,.25), 0 8px 40px rgba(41,224,242,.28);
  --glow-lg: 0 0 60px rgba(41,224,242,.35), 0 0 120px rgba(79,124,255,.22);

  /* Semantic (status) */
  --green: #16c784;  --green-bg: rgba(22,199,132,.14);
  --amber: #f5a623;  --amber-bg: rgba(245,166,35,.14);
  --red:   #ff5a65;  --red-bg:   rgba(255,90,101,.14);

  /* Glass */
  --glass:        rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-line:   rgba(255, 255, 255, 0.10);

  /* Radii */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  /* Shadow */
  --shadow-d: 0 20px 60px rgba(0,0,0,.45);
  --shadow-l: 0 18px 50px rgba(17,24,39,.10);

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t: .35s var(--ease);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* The hidden attribute must win over component rules like `.btn{display:inline-flex}`. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-800);
  color: var(--d-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so body doesn't become a vertical scroll container */
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
::selection { background: rgba(41,224,242,.28); color: #fff; }

/* ----------  Language toggle visibility  ---------- */
span.is, span.en { display: none; }
body.lang-is span.is { display: inline; }
body.lang-en span.en { display: inline; }
/* Hard guarantee: the inactive language is always hidden, even if a
   page-level rule (e.g. `.card span { display:block }`) has equal specificity. */
body.lang-is span.en, body.lang-en span.is { display: none !important; }
/* block-level variants */
.is-block, .en-block { display: none; }
body.lang-is .is-block { display: block; }
body.lang-en .en-block { display: block; }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--dark  { background: var(--bg-800); color: var(--d-100); }
.section--darker{ background: var(--bg-900); color: var(--d-100); }
.section--light { background: var(--bg-50);  color: var(--l-900); }
.section--white { background: var(--white);  color: var(--l-900); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--accent-grad);
}
.section--light .eyebrow, .section--white .eyebrow { color: #0a8fb0; }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  margin: 18px 0 0;
  letter-spacing: -0.03em;
}
.section-sub {
  margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px);
  color: var(--d-300); max-width: 56ch;
}
.section--light .section-sub, .section--white .section-sub { color: var(--l-600); }

.text-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 14px 26px; border-radius: var(--pill);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent-grad); color: #04141a;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-lg); }

.btn-ghost {
  background: var(--glass); color: var(--d-100);
  border: 1px solid var(--glass-line); backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(41,224,242,.4); transform: translateY(-2px); }

.btn-dark { background: var(--l-900); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,15,23,.25); }

.btn-outline-dark {
  background: transparent; color: var(--l-900);
  border: 1.5px solid var(--line);
}
.btn-outline-dark:hover { border-color: var(--l-900); transform: translateY(-2px); }

.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ----------  Glass card  ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-lg); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card-light {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-l);
}

/* Pills / badges */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--pill);
  background: var(--glass); border: 1px solid var(--glass-line);
  font-size: 13px; color: var(--d-300); backdrop-filter: blur(10px);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--glass-line);
}
.nav { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-grad); position: relative; flex: none;
  box-shadow: var(--glow);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: .01em; color: #fff; line-height: 1;
}
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: .34em; color: var(--accent); margin-top: 4px; text-transform: uppercase; }
/* Logo image replaces the sparkle mark + text wordmark (the logo already contains "BV BÓN") */
.brand-logo { height: 48px; width: auto; display: block; border-radius: 9px; }
.brand-name { display: none; }
.login-brand .brand-logo { height: 60px; border-radius: 12px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; color: var(--d-300); padding: 9px 15px; border-radius: var(--pill);
  transition: color var(--t), background var(--t); font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--glass); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle { display: inline-flex; background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--pill); padding: 3px; }
.lang-btn { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--d-500); padding: 5px 11px; border-radius: var(--pill); transition: var(--t); }
.lang-btn.active { background: var(--accent-grad); color: #04141a; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-line); place-items: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: var(--t); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: var(--t); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: rgba(8,11,18,.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-line);
  padding: 16px 24px 28px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: var(--t);
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 18px; color: var(--d-100); padding: 14px 8px; border-bottom: 1px solid var(--glass-line); font-family: var(--font-display); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; user-select: none; touch-action: pan-y; cursor: ew-resize;
  border: 1px solid var(--glass-line); background: var(--bg-700);
}
.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute; top: 14px; z-index: 3; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill);
  background: rgba(5,7,12,.6); color: #fff; backdrop-filter: blur(6px);
}
.ba-label.before { left: 14px; } .ba-label.after { right: 14px; color: var(--a-cyan); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; z-index: 4;
  background: var(--accent-grad); transform: translateX(-1px); box-shadow: 0 0 20px rgba(41,224,242,.6); }
.ba-handle { position: absolute; top: 50%; left: 50%; z-index: 5; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(8,11,18,.7);
  border: 1.5px solid var(--a-cyan); display: grid; place-items: center; cursor: ew-resize;
  backdrop-filter: blur(6px); box-shadow: var(--glow); }
.ba-handle::before { content: "⟨ ⟩"; font-size: 13px; letter-spacing: -1px; color: var(--a-cyan); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; opacity: 0; cursor: ew-resize; margin: 0; pointer-events: none; }

/* Photo helpers — real images inside .ba layers and thumbnails */
.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; display: block; }
/* Fake a convincing "before" from a clean photo: desaturate + darken + grime speckle */
.ba-dull { filter: grayscale(.5) brightness(.6) contrast(1.05) saturate(.68); }
.ba-grime::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(rgba(120,110,92,.14) 1px, transparent 1.5px) 0 0 / 6px 6px,
    linear-gradient(180deg, rgba(74,64,50,.26), rgba(44,44,52,.34)); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-900); color: var(--d-300); padding: 72px 0 32px;
  border-top: 1px solid var(--glass-line); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--d-500); font-size: 15px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--d-500); font-weight: 500; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--d-300); font-size: 15px; padding: 6px 0; transition: color var(--t); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--glass-line);
  font-size: 13px; color: var(--d-500); font-family: var(--font-mono); }
.footer-bottom a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.fs-link { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--d-300); transition: var(--t); }
.fs-link:hover { color: var(--accent); border-color: rgba(41,224,242,.4); background: var(--glass-strong); transform: translateY(-2px); }
.fs-link svg { width: 19px; height: 19px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .lang-toggle, .nav-right .btn { display: none; }
  .menu-btn { display: grid; }
  .nav-right { gap: 8px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 68px 0; }
}

/* ----------  Sticky mobile CTA (Bóka / Hringja)  ---------- */
.m-cta { display: none; }
.m-cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 16px; border-radius: var(--pill);
  font-family: var(--font-display); font-weight: 500; font-size: 15px; box-shadow: 0 8px 26px rgba(0,0,0,.42); }
.m-cta-btn svg { width: 18px; height: 18px; }
.m-cta-book { background: var(--accent-grad); color: #04141a; }
.m-cta-call { background: rgba(12,16,26,.94); color: #fff; border: 1px solid var(--glass-line); backdrop-filter: blur(10px); }
@media (max-width: 768px) {
  .m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; }
  body.has-mcta { padding-bottom: 88px; }
  body.menu-open .m-cta { display: none; }
}

/* ==================== Newsletter / póstlisti popup ==================== */
.nl-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(5,7,12,.62); backdrop-filter: blur(6px); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease); }
.nl-overlay.show { opacity: 1; visibility: visible; }
.nl-modal { position: relative; width: 100%; max-width: 430px; max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 34px 30px 30px; text-align: center; background: linear-gradient(165deg, #12203a, #0a0f1a);
  border: 1px solid rgba(41,224,242,.35); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(3,7,15,.6), 0 0 0 1px rgba(41,224,242,.14);
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease); }
.nl-overlay.show .nl-modal { transform: none; }
.nl-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--d-300); font-size: 22px; line-height: 1; cursor: pointer;
  border: 1px solid var(--glass-line); transition: var(--t); }
.nl-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.nl-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--a-cyan); }
.nl-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,5vw,32px); color: #fff; margin: 12px 0 10px; line-height: 1.1; }
.nl-text { color: var(--d-300); font-size: 15px; line-height: 1.55; margin: 0 auto 22px; max-width: 34ch; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--glass-line);
  background: rgba(255,255,255,.05); color: #fff; font-size: 15px; text-align: center; transition: var(--t); }
.nl-input::placeholder { color: var(--d-500); }
.nl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41,224,242,.18); }
.nl-err { color: #ff8a8a; font-size: 13px; min-height: 16px; margin-top: 8px; }
.nl-fine { color: var(--d-500); font-size: 12px; margin-top: 14px; }
.nl-check { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--accent-soft); color: var(--a-cyan); }
.nl-check svg { width: 32px; height: 32px; }
.nl-success h3 { font-family: var(--font-display); font-size: 24px; color: #fff; }
.nl-success p { color: var(--d-300); font-size: 14.5px; margin: 10px 0; }
.nl-code { font-family: var(--font-mono); font-size: 22px; letter-spacing: .14em; color: #fff; margin: 4px 0 6px;
  background: rgba(41,224,242,.1); border: 1px dashed rgba(41,224,242,.5); border-radius: 12px; padding: 12px 18px; display: inline-block; }
