/* ==========================================================
   Hugarþol — stílblað
   Litir teknir af Wix-síðunni: rjómi, djúpblágrænn, dökkbrúnn.
   Vatnsþemað: mjúkar bylgjur, gárur og léttir vatnslitir.
   ========================================================== */

:root {
  --cream: #f0ece5;
  --cream-2: #f7f4ee;
  --cream-3: #e8e2d8;
  --sand: #d3c4b8;
  --teal: #425c68;
  --teal-deep: #1f3a46;
  --teal-soft: #5f7d8a;
  --water: #d6e2e5;
  --water-2: #b9cdd3;
  --water-3: #8fabb5;
  --ink: #231c13;
  --ink-soft: #5a524a;
  --white: #fffdf9;

  --font-head: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --radius: 28px;
  --shadow: 0 20px 60px rgba(31, 58, 70, 0.12);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a { color: var(--teal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--teal-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  color: var(--teal-deep);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 1rem;
}

.lead { font-size: 1.18rem; line-height: 1.75; color: var(--ink-soft); }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }

/* ---------- Hnappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .06em;
  border: 1.5px solid var(--teal);
  background: var(--teal);
  color: var(--cream);
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,58,70,.2); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal); color: var(--cream); }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--teal-deep); }
.btn.light:hover { background: var(--white); border-color: var(--white); }
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Haus ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 236, 229, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(66, 92, 104, .08);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(31,58,70,.08); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 58px; width: auto; }
.brand span {
  font-family: var(--font-head);
  font-size: 1.55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--teal-deep);
  position: relative;
  padding: .3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links .btn { padding: .65rem 1.4rem; font-size: .85rem; }
.nav-links .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--teal-deep); margin: 6px 0;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { height: 72px; }
  .brand img { height: 48px; }
  .brand span { font-size: 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(66,92,104,.1);
    padding: .5rem 1.25rem 1.5rem;
    transform-origin: top;
    transform: scaleY(0); opacity: 0;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(66,92,104,.08); }
  .nav-links a::after { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 1rem; border-bottom: 0; }
}

/* ---------- Hetja (forsíða) ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(6rem, 10vw, 9rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lead { max-width: 520px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.hero-tags li { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-soft); display: flex; align-items: center; gap: .5rem; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--water-3); }

.hero-figure { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-figure .photo {
  position: relative; z-index: 2;
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  animation: float 9s ease-in-out infinite;
}
.hero-figure .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ripple {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.ripple span {
  position: absolute; left: 50%; top: 50%;
  width: 110%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--water-3);
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  animation: ripple 7s ease-out infinite;
}
.ripple span:nth-child(2) { animation-delay: 2.3s; }
.ripple span:nth-child(3) { animation-delay: 4.6s; }

@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(.7); opacity: 0; }
  20% { opacity: .55; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-.6deg); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; width: min(80%, 380px); }
}

/* ---------- Bylgjur (vatnsþemað) ---------- */
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(50px, 8vw, 110px);
  pointer-events: none; z-index: 3;
}
.wave svg { width: 100%; height: 100%; display: block; }
.wave.top { top: -1px; bottom: auto; transform: scaleY(-1); }

.wave-band {
  position: relative;
  overflow: hidden;
}
.wave-band .waves { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.wave-band .waves svg { width: 200%; height: 100%; animation: drift 26s linear infinite; }
.wave-band .waves.slow svg { animation-duration: 40s; animation-direction: reverse; opacity: .6; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Kaflar ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.teal { background: var(--teal); color: var(--cream); }
.section.teal h1, .section.teal h2, .section.teal h3, .section.teal h4 { color: var(--cream); }
.section.teal .eyebrow { color: var(--water-2); }
.section.teal .lead { color: rgba(240,236,229,.85); }
.section.deep { background: var(--teal-deep); color: var(--cream); }
.section.deep h2, .section.deep h3 { color: var(--cream); }
.section.deep .eyebrow { color: var(--water-3); }
.section.water { background: linear-gradient(180deg, var(--cream) 0%, var(--water) 100%); }
.section.cream2 { background: var(--cream-2); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }

/* Tilvitnun (Words of wisdom) */
.quote-band { text-align: center; padding: clamp(4rem, 8vw, 7rem) 0; }
.quote-band blockquote {
  margin: 0 auto; max-width: 820px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-style: italic; font-weight: 400;
  line-height: 1.5;
  color: var(--cream);
}
.quote-band .mark {
  display: block; font-size: 4rem; line-height: .6; color: var(--water-2); margin-bottom: 1rem;
  font-family: var(--font-head);
}

/* Tvískipt (mynd + texti) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media.square img { aspect-ratio: 1; }
.split-media .drop {
  position: absolute; z-index: -1;
  width: 62%; aspect-ratio: 1;
  border-radius: 50% 50% 50% 0;
  background: var(--water);
  right: -8%; bottom: -8%;
  transform: rotate(-20deg);
}
.split-media .drop.left { right: auto; left: -8%; top: -8%; bottom: auto; transform: rotate(160deg); background: var(--sand); opacity: .6; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 460px; }
}

/* Þjónustukort */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem 2.4rem;
  box-shadow: 0 10px 40px rgba(31,58,70,.07);
  border: 1px solid rgba(66,92,104,.07);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: auto -30% -40% auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--water) 0%, transparent 70%);
  opacity: .8; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(31,58,70,.13); }
.card:hover::before { transform: scale(1.3); }
.card > * { position: relative; }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--water); color: var(--teal-deep);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.card .more {
  margin-top: 1.4rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5rem; color: var(--teal);
}
.card .more svg { width: 16px; height: 16px; transition: transform .3s; }
.card:hover .more svg { transform: translateX(4px); }

/* Gildi */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 3rem; }
.value { text-align: center; }
.value .num {
  font-family: var(--font-head); font-size: 3.4rem; line-height: 1;
  color: var(--water-3); margin-bottom: .6rem;
}
.value h3 { margin-bottom: .6rem; }
.value p { color: rgba(240,236,229,.82); font-size: 1rem; }

/* Umsagnir */
.testimonials-wrap { position: relative; }
.testimonials {
  display: flex; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: .5rem .25rem 1.5rem; margin: 0 -.25rem;
  scrollbar-width: thin; scrollbar-color: var(--water-3) transparent;
}
.testimonials::-webkit-scrollbar { height: 6px; }
.testimonials::-webkit-scrollbar-thumb { background: var(--water-3); border-radius: 999px; }
.testimonials::-webkit-scrollbar-track { background: transparent; }
.testimonials:focus-visible { outline: 2px solid var(--water-3); outline-offset: 4px; border-radius: 8px; }
.testimonials .testimonial { flex: 0 0 min(400px, 85vw); scroll-snap-align: start; }
.testimonials-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: .5rem; }
.scroll-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--water-3); background: var(--white); color: var(--teal-deep);
  display: grid; place-items: center; transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.scroll-btn svg { width: 20px; height: 20px; }
.scroll-btn:hover { background: var(--water); border-color: var(--teal); transform: translateY(-2px); }
.scroll-hint { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-soft); }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  border: 1px solid rgba(66,92,104,.08);
  display: flex; flex-direction: column;
}
.testimonial .mark { font-family: var(--font-head); font-size: 3.6rem; line-height: .5; color: var(--water-2); margin: .6rem 0 1.2rem; }
.testimonial p { font-size: 1rem; color: var(--ink-soft); }
.testimonial footer { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--cream-3); }
.testimonial p:last-of-type { margin-bottom: 1.6rem; }
.testimonial footer strong { display: block; font-weight: 400; color: var(--teal-deep); font-family: var(--font-head); font-size: 1.25rem; }
.testimonial footer span { font-size: .85rem; letter-spacing: .06em; color: var(--teal-soft); }

/* Algengar spurningar */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid rgba(66,92,104,.15);
  padding: .2rem 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.2rem 0;
  font-family: var(--font-head); font-size: 1.35rem; color: var(--teal-deep);
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); }
.faq summary .plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--water-3); position: relative;
  transition: transform .35s var(--ease), background .3s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--teal);
  width: 12px; height: 1.5px; transform: translate(-50%, -50%);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--water); }
.faq details p { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); }

/* Símtal-til-aðgerða */
.cta { text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta p { max-width: 560px; margin: 0 auto 2rem; }

/* Undirsíðuhaus */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--water) 140%);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { max-width: 680px; margin-inline: auto; }
.page-hero .rings { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; opacity: .5; }
.page-hero .rings span {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--water-3);
  animation: rings 12s ease-out infinite; opacity: 0;
}
.page-hero .rings span:nth-child(2) { animation-delay: 4s; }
.page-hero .rings span:nth-child(3) { animation-delay: 8s; }
@keyframes rings { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: .5; } 100% { transform: scale(1.1); opacity: 0; } }

/* Prose (langir textar) */
.prose { max-width: 760px; margin-inline: auto; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.prose h2, .prose h3 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }
.prose .quote-inline { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; color: var(--teal); text-align: center; margin: 2.5rem auto; }

/* Þjónustukaflar */
.service { scroll-margin-top: 100px; }
.service-anchor-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin-top: 2rem;
}
.service-anchor-nav a {
  padding: .55rem 1.2rem; border-radius: 999px;
  background: rgba(255,253,249,.7); border: 1px solid rgba(66,92,104,.15);
  font-size: .85rem; letter-spacing: .06em; color: var(--teal-deep);
  transition: background .3s, border-color .3s;
}
.service-anchor-nav a:hover { background: var(--white); border-color: var(--teal); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--water-3);
}

.offer-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  border: 1px solid rgba(66,92,104,.1);
  box-shadow: 0 10px 40px rgba(31,58,70,.06);
}
.offer-box h4 { margin-bottom: .8rem; }
.offer-box ul { list-style: none; padding: 0; margin: 0; }
.offer-box li { padding: .6rem 0; border-bottom: 1px solid var(--cream-3); font-size: .98rem; color: var(--ink-soft); }
.offer-box li:last-child { border-bottom: 0; }
.offer-box li strong { display: block; font-weight: 400; color: var(--teal-deep); }

.pill-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.pill {
  background: rgba(255,253,249,.75); border-radius: 20px; padding: 1.3rem 1.4rem;
  border: 1px solid rgba(66,92,104,.1);
}
.pill strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--teal-deep); margin-bottom: .3rem; }
.pill span { font-size: .95rem; color: var(--ink-soft); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: .4rem; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .9rem 1.1rem;
  border: 1px solid rgba(66,92,104,.2);
  border-radius: 16px;
  background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(143,171,181,.25); }
textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--white); border-radius: var(--radius); padding: 2.4rem 2.2rem; border: 1px solid rgba(66,92,104,.1); }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-soft); margin-top: 1.2rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: .2rem 0 0; font-size: 1.1rem; }

/* Fróðleikur */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.post {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(66,92,104,.08);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post .body { padding: 1.6rem 1.7rem 1.9rem; }
.post .body h3 { font-size: 1.45rem; }
.post .body p { color: var(--ink-soft); font-size: .98rem; }
.post .meta { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: .6rem; display: block; }

/* Póstlisti */
.newsletter { text-align: center; }
.newsletter .lead { max-width: 560px; margin: 0 auto 2rem; }
.nl-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 560px; margin: 0 auto; }
.nl-form input { flex: 1 1 200px; min-width: 0; border-radius: 999px; padding: .95rem 1.4rem; }
.nl-form .nl-msg { flex-basis: 100%; margin-top: .2rem; }
.nl-form .btn { flex: none; white-space: nowrap; }
.nl-form.stack { flex-direction: column; }
.nl-msg { margin-top: 1rem; font-size: .95rem; min-height: 1.5em; }
.nl-msg.ok { color: var(--teal-deep); }
.nl-msg.err { color: #9a4b3c; }
.section.water .nl-msg.ok, .section.teal .nl-msg.ok { color: var(--cream); }
.nl-note { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; }
.section.teal .nl-note, .section.deep .nl-note { color: rgba(240,236,229,.7); }
@media (max-width: 560px) { .nl-form { flex-direction: column; } }

.footer-nl { margin-top: 1.4rem; }
.footer-nl label { color: rgba(240,236,229,.7); }
.footer-nl .nl-form { max-width: 380px; margin: 0; gap: .5rem; }
.footer-nl .nl-form input { flex: 1 1 100%; }
.footer-nl input { background: rgba(240,236,229,.08); border-color: rgba(240,236,229,.25); color: var(--cream); padding: .75rem 1.1rem; }
.footer-nl input::placeholder { color: rgba(240,236,229,.5); }
.footer-nl input:focus { border-color: var(--water-2); box-shadow: 0 0 0 4px rgba(214,226,229,.15); }
.footer-nl .btn { padding: .7rem 1.3rem; font-size: .85rem; background: var(--cream); border-color: var(--cream); color: var(--teal-deep); }
.footer-nl .btn:hover { background: var(--white); }
.footer-nl .nl-msg { font-size: .88rem; }
.footer-nl .nl-msg.ok { color: var(--water-2); }
.footer-nl .nl-msg.err { color: #e8b4a8; }

/* Greinar */
.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.article-head { text-align: center; margin-bottom: 2.5rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); margin: .6rem 0 1.2rem; }
.article-head .back { text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.4rem; font-size: .85rem; letter-spacing: .06em; color: var(--teal-soft); }
.post-meta.small { justify-content: flex-start; margin-top: 1rem; gap: 1rem; font-size: .8rem; }
.stat { display: inline-flex; align-items: center; gap: .35rem; }
.stat.views::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6"><path d="M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6"><path d="M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>') center/contain no-repeat; }
.heart { color: #b8654f; font-size: 1.05em; line-height: 1; transition: transform .3s var(--ease); }
.like-btn { background: none; border: 1px solid transparent; border-radius: 999px; padding: .25rem .7rem; cursor: pointer; font: inherit; font-size: inherit; letter-spacing: inherit; color: inherit; transition: background .3s, border-color .3s; }
.like-btn:hover { background: var(--white); border-color: rgba(66,92,104,.15); }
.like-btn.liked .heart { transform: scale(1.25); }
.like-btn.liked { color: var(--teal-deep); }
.article-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body { margin-top: 2.5rem; font-size: 1.1rem; }
.article-body p { color: var(--ink-soft); margin-bottom: 1.4em; }
.article-body h2, .article-body h3 { margin-top: 2.4rem; }
.article-body h3 { font-size: 1.6rem; }
.article-body img { border-radius: 20px; margin: 2rem auto; box-shadow: 0 10px 40px rgba(31,58,70,.1); }
.article-body blockquote { margin: 2.5rem 0; padding: 1.5rem 2rem; border-left: 3px solid var(--water-3); background: var(--white); border-radius: 0 20px 20px 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.5; color: var(--teal-deep); }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 1.4rem; margin-bottom: 1.4em; }
.article-body li { margin-bottom: .5rem; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(66,92,104,.15); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.article-like p { margin: 0 0 .4rem; font-family: var(--font-head); font-size: 1.3rem; color: var(--teal-deep); }
.article-like .post-meta { justify-content: flex-start; }
.share { display: flex; align-items: center; gap: .8rem; font-size: .85rem; letter-spacing: .06em; color: var(--teal-soft); }
.share a, .share button { font: inherit; letter-spacing: inherit; color: var(--teal-deep); background: var(--white); border: 1px solid rgba(66,92,104,.15); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; transition: border-color .3s; }
.share a:hover, .share button:hover { border-color: var(--teal); }
.post .body h3 a { color: var(--teal-deep); }

/* Fótur */
.site-footer {
  background: var(--teal-deep);
  color: rgba(240,236,229,.8);
  padding: 4.5rem 0 2rem;
  position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 { color: var(--cream); font-size: 1.3rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(240,236,229,.85); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand img { height: 84px; margin-bottom: 1rem; filter: brightness(0) invert(.94); opacity: .95; }
.footer-brand p { font-size: .95rem; max-width: 380px; }
.footer-bottom {
  border-top: 1px solid rgba(240,236,229,.15);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: rgba(240,236,229,.55);
}
.social { display: flex; gap: .8rem; margin-top: 1rem; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(240,236,229,.3);
  display: grid; place-items: center;
  transition: background .3s, border-color .3s;
}
.social a:hover { background: rgba(240,236,229,.12); border-color: var(--cream); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Birtingarhreyfing */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
