/* ==========================================================================
   Tveir.is: þemu. Parast við assets/js/themu.js.
   Hvert þema er allt undir html[data-thema="nafn"], svo venjulega síðan
   breytist ekkert þegar þemað er ekki valið.
   ========================================================================== */

/* ------------------------------------------------------------------
   Þemavalið neðst í horninu
   ------------------------------------------------------------------ */
.themaval {
  position: fixed; left: 14px; bottom: 14px; z-index: 120;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(58, 22, 80, .1); border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(58, 22, 80, .45);
  font: 500 12.5px/1 var(--f-body);
}
.themaval__merki { padding: 0 6px 0 8px; color: var(--soft); }
.themaval button {
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
  background: transparent; color: var(--ink); font: inherit;
}
.themaval button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.themaval button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ==================================================================
   NÆTURBORG: sólsetur, pálmatré og neon. Okkar eigið útlit.
   Engin merki, myndir eða nöfn frá öðrum. Sliderarnir eru óbreyttir.

   Letrið er Anton. Neonskriftin er Mr Dafoe.
   ================================================================== */
html[data-thema="naeturborg"] {
  --nb-letur: 'Anton', 'Impact', sans-serif;
  --nb-skrift: 'Mr Dafoe', 'Brush Script MT', cursive;
  --nb-bleikt: #ff3d9a;
  --nb-lilla: #7b3fb3;
  --nb-djupt: #2c0f45;
  --nb-gult: #ffb15c;

  /* Litirnir á allri síðunni: ekkert blátt */
  --ink: #3a1650;
  --soft: #8a5f9e;
  --acc: #e8448f;
  --acc-hover: #d93680;
  --accs: #fde3ef;
  --acc-on-navy: #ffc2dc;
  --bg: #f9e6f0;
  --line: rgba(58, 22, 80, .1);
  --sh-btn: 0 4px 14px rgba(232, 68, 143, .35);
  --lj-bla: rgba(255, 120, 180, .45);
  --lj-ljos: rgba(255, 178, 110, .45);
  --lj-himinn: rgba(255, 196, 150, .4);
  --lj-lilla: rgba(170, 110, 220, .45);
  --gl-fall: 0 18px 40px -22px rgba(58, 22, 80, .34), 0 2px 8px rgba(58, 22, 80, .05);

  background:
    url('../img/themu/naeturborg-palmi-ljos.svg') left -60px bottom -10px / auto 78vh no-repeat fixed,
    url('../img/themu/naeturborg-palmi-h-ljos.svg') right -50px bottom -10px / auto 64vh no-repeat fixed,
    url('../img/themu/naeturborg-palmi-ljos.svg') left 14vw bottom -10px / auto 44vh no-repeat fixed,
    url('../img/themu/naeturborg-palmi-h-ljos.svg') right 16vw bottom -10px / auto 36vh no-repeat fixed,
    linear-gradient(180deg, #c9a2e2 0%, #f1a9cf 38%, #ffc6a3 72%, #ffe1c2 100%) fixed;
  background-color: #f9e6f0;
}

/* Fyrirsagnir */
html[data-thema="naeturborg"] h1,
html[data-thema="naeturborg"] h2,
html[data-thema="naeturborg"] .section-title,
html[data-thema="naeturborg"] .leid__titill {
  font-family: var(--nb-letur);
  font-weight: 400;
  letter-spacing: .01em;
}
html[data-thema="naeturborg"] h1 em,
html[data-thema="naeturborg"] h2 em,
html[data-thema="naeturborg"] .section-title em {
  background: linear-gradient(100deg, var(--nb-bleikt), #ff7a59 55%, var(--nb-gult));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hnappar í sólsetri í stað bláa gljáans */
html[data-thema="naeturborg"] .btn {
  background: linear-gradient(180deg, #ff6fae, var(--acc) 52%, #c92f78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -8px rgba(232, 68, 143, .6), 0 2px 6px rgba(58, 22, 80, .12);
}
html[data-thema="naeturborg"] .btn:hover {
  background: linear-gradient(180deg, #ff82b9, var(--acc) 48%, #c22a71);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 18px 34px -10px rgba(232, 68, 143, .7), 0 3px 8px rgba(58, 22, 80, .14);
}
html[data-thema="naeturborg"] .btn--ghost:hover { background: linear-gradient(180deg, #ff6fae, var(--acc) 52%, #c92f78); }
html[data-thema="naeturborg"] .btn--white { background: linear-gradient(180deg, #fff, #fde7f1); color: var(--ink); }
html[data-thema="naeturborg"] .card--navy,
html[data-thema="naeturborg"] .cta {
  background: linear-gradient(155deg, #5a2378, var(--nb-djupt) 60%);
  border-color: rgba(255, 194, 220, .2);
}
html[data-thema="naeturborg"] .langsw__btn.is-on { background: var(--acc); color: #fff; }

/* Merkið: "Tveir" sem bleikt neonskilti, gegnsætt, enginn kassi */
html[data-thema="naeturborg"] .pillnav__logo img,
html[data-thema="naeturborg"] .hr-opnun__merki img,
html[data-thema="naeturborg"] .simi__haus img { display: none; }
html[data-thema="naeturborg"] .pillnav__logo { line-height: 1; }
html[data-thema="naeturborg"] .pillnav__logo::after,
html[data-thema="naeturborg"] .hr-opnun__merki::after,
html[data-thema="naeturborg"] .simi__haus::before {
  content: "Tveir";
  position: static; inset: auto; animation: none; -webkit-mask: none; mask: none;
  display: inline-block;
  font: 400 46px/1 var(--nb-skrift);
  color: #fff;
  padding: 0 .12em .06em;
  background: none; box-shadow: none; border-radius: 0;
  -webkit-text-stroke: .1em #f0127f; paint-order: stroke fill;
  text-shadow: 0 0 6px rgba(255, 61, 154, .9), 0 0 16px rgba(255, 61, 154, .75), 0 0 34px rgba(255, 61, 154, .5);
  transform: rotate(-5deg);
}
html[data-thema="naeturborg"] .simi__haus::before { font-size: 24px; text-shadow: 0 0 6px rgba(255, 61, 154, .7); }
html[data-thema="naeturborg"] .hr-opnun__merki::after {
  font-size: clamp(110px, 18vw, 240px);
  padding: 0 .2em .12em;
  text-shadow: 0 0 10px #ff5fb0, 0 0 26px #ff3d9a, 0 0 60px #ff3d9a, 0 0 110px rgba(255, 61, 154, .85);
  animation: nb-flokt 2.4s steps(1) 1;
}
html[data-thema="naeturborg"] .hr-opnun__merki { overflow: visible; padding: 20px; }
/* Neonið kviknar með smá flökti eins og alvöru skilti */
@keyframes nb-flokt {
  0% { opacity: .15; } 8% { opacity: 1; } 12% { opacity: .3; } 18% { opacity: 1; }
  24% { opacity: .5; } 28% { opacity: 1; } 100% { opacity: 1; }
}

/* Opnunin: myndin af okkur með neonskiltinu yfir */
html[data-thema="naeturborg"] .hr-opnun {
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(23, 8, 32, .55) 0%, rgba(23, 8, 32, .2) 70%),
    url('../img/themu/okkur-gta.jpg') 50% 24% / cover no-repeat,
    #2c0f45;
}
html[data-thema="naeturborg"] .hr-opnun__lina { background: rgba(255, 61, 154, .2); }
html[data-thema="naeturborg"] .hr-opnun__lina span { background: #ff3d9a; box-shadow: 0 0 12px #ff3d9a; }

/* Hero: myndin af okkur í sólsetrinu */
html[data-thema="naeturborg"] .hero {
  background: #2c0f45;
  box-shadow: 0 30px 80px -34px rgba(58, 22, 80, .55);
}
html[data-thema="naeturborg"] .hero__bak { object-position: 50% 26%; }
html[data-thema="naeturborg"] .hero::after {
  z-index: 1;
  background: linear-gradient(to top, rgba(44, 15, 69, .92) 0%, rgba(58, 18, 82, .7) 28%, rgba(58, 18, 82, .18) 56%, rgba(58, 18, 82, 0) 76%);
}
html[data-thema="naeturborg"] .hero__yfir { z-index: 3; }
html[data-thema="naeturborg"] .hero__yfir h1 {
  font-size: calc(var(--fs-h1-hero) * 1.15); line-height: 1.02;
  color: #fff; -webkit-text-stroke: 3px var(--nb-djupt); paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--nb-djupt);
}
/* "skemmtilegri" sem bleikt neonskilti */
html[data-thema="naeturborg"] .hero__yfir h1 em {
  font: 400 1.28em/1 var(--nb-skrift);
  letter-spacing: 0;
  background: none; color: #fff;
  -webkit-text-stroke: 0; padding-right: .12em;
  text-shadow:
    0 0 4px #fff,
    0 0 10px var(--nb-bleikt), 0 0 22px var(--nb-bleikt), 0 0 44px var(--nb-bleikt), 0 0 80px rgba(255, 61, 154, .7);
}
html[data-thema="naeturborg"] .hero__yfir .lead { color: rgba(255, 244, 250, .9); }
html[data-thema="naeturborg"] .hero__nofn { color: rgba(255, 244, 250, .7); }
html[data-thema="naeturborg"] .hero__ljos {
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 200, 150, .35), transparent 62%);
}
html[data-thema="naeturborg"] .hero__actions .btn--aglas {
  background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .7);
}
html[data-thema="naeturborg"] .hero__actions .btn--aglas:hover { background: #fff; color: var(--ink); }


/* Táknin eru blá SVG myndir: snúum þeim yfir í bleikt */
html[data-thema="naeturborg"] .leid__takn,
html[data-thema="naeturborg"] .vinnulag__listi li::before { filter: hue-rotate(112deg) saturate(1.25) brightness(.95); }

/* Opnunin: þyrla flýgur yfir með ljóskastara, svo opnast síðan */
.hr-thyrla { display: none; }
html[data-thema="naeturborg"] .hr-thyrla {
  display: block; position: absolute; left: 0; top: 4%; z-index: 2;
  width: clamp(240px, 32vw, 440px); pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(18, 6, 26, .45));
  animation: nb-flug 2.4s cubic-bezier(.42, .1, .45, 1) both;
}
html[data-thema="naeturborg"] .hr-opnun--stutt .hr-thyrla { display: none; }
html.hr-js[data-thema="naeturborg"] .hr-opnun { animation-delay: 5.5s; }
html[data-thema="naeturborg"] .hr-thyrla svg { display: block; width: 100%; height: auto; overflow: visible; animation: nb-svif .6s ease-in-out infinite alternate; }
.hr-thyrla__spadi { transform-box: fill-box; transform-origin: 50% 50%; animation: nb-spadi .11s linear infinite; }
.hr-thyrla__hali { transform-box: fill-box; transform-origin: 50% 50%; animation: nb-hali .18s linear infinite; }
.hr-thyrla__geisli { animation: nb-geisli 2.4s ease-in-out both; }
@keyframes nb-flug {
  0%   { transform: translate(-110%, 14vh) rotate(6deg); }
  42%  { transform: translate(calc(50vw - 55%), 2vh) rotate(-1deg); }
  58%  { transform: translate(calc(50vw - 45%), 0) rotate(-3deg); }
  100% { transform: translate(105vw, -22vh) rotate(-10deg); }
}
@keyframes nb-svif { to { transform: translateY(6px); } }
@keyframes nb-spadi { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
@keyframes nb-hali { to { transform: rotate(360deg); } }
@keyframes nb-geisli { 0%, 20% { opacity: 0; } 40%, 70% { opacity: 1; } 100% { opacity: 0; } }
