/* ==========================================================================
   LML Lögmenn - static site styles
   Ported from the Figma Make (React + Tailwind) export to plain CSS.
   Breakpoints mirror Tailwind: sm 640, md 768, lg 1024, xl 1280
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --dark: #2c2c2c;
  --white: #ffffff;
  --muted: #717171;
  --border: rgba(0, 0, 0, 0.1);
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --font: 'Montserrat', Verdana, Geneva, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.5; }

/* shared page wrapper so the fixed nav never overlaps content */
.page { padding-top: 6rem; padding-bottom: 4rem; min-height: 100vh; }
@media (min-width: 640px) { .page { padding-top: 8rem; padding-bottom: 6rem; } }

.hairline { height: 1px; background: rgba(255, 255, 255, 0.2); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(44, 44, 44, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img {
  height: 2rem;
  width: auto;
  transition: transform 0.3s ease;
}
.nav__logo:hover img { transform: scale(1.05); }

.nav__links { display: flex; gap: 1rem; }

.nav__link {
  position: relative;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.3s ease;
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after { width: 100%; }

@media (min-width: 640px) {
  .nav__inner { padding: 1rem 1.5rem; }
  .nav__logo img { height: 2.5rem; }
  .nav__links { gap: 1.5rem; }
  .nav__link { font-size: 0.875rem; }
  .nav__link::after { bottom: -6px; }
}
@media (min-width: 768px) {
  .nav__inner { padding: 1.25rem 2rem; }
  .nav__logo img { height: 3rem; }
  .nav__links { gap: 3rem; }
  .nav__link { font-size: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 640px) { .hero { min-height: 85vh; } }

/* skewed grayscale tower image, desktop only */
.hero__panel {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 28%;
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  animation: hero-panel 1s ease 0.3s forwards;
}
.hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transform: scale(1.25);
}
.hero__panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.1);
}
@media (min-width: 768px)  { .hero__panel { display: block; } }
@media (min-width: 1024px) { .hero__panel { width: 24%; } }
@media (min-width: 1280px) { .hero__panel { width: 22%; } }

/* mobile image strip at bottom-right */
.hero__strip {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 35%;
  width: 55%;
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  animation: fade-in 1s ease 0.3s forwards;
}
.hero__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
}
.hero__strip-overlay { position: absolute; inset: 0; background: rgba(44, 44, 44, 0.2); }
@media (min-width: 768px) { .hero__strip { display: none; } }

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding: 6rem 1rem 3rem;
  opacity: 0;
  animation: rise-in 0.8s ease forwards;
}
.hero__title {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero__rule-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.hero__rule { height: 1px; width: 8rem; background: rgba(255, 255, 255, 0.2); }
.hero__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hero__content { padding: 8rem 2rem 4rem; }
  .hero__title { font-size: 3.75rem; margin-bottom: 1.5rem; }
  .hero__rule-row { gap: 1rem; }
  .hero__rule { width: 12rem; }
  .hero__label { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .hero__content { padding-left: 3rem; padding-right: 3rem; }
  .hero__title { font-size: 4.5rem; }
  .hero__rule { width: 20rem; }
  .hero__label { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .hero__content { padding-left: 5rem; padding-right: 5rem; }
  .hero__title { font-size: 6rem; }
  .hero__rule { width: 500px; }
}
@media (min-width: 1280px) {
  .hero__rule { width: 600px; }
}

/* ==========================================================================
   HOME - "Reynsla og fagmennska" split section
   ========================================================================== */
.split { background: var(--dark); display: flex; align-items: center; overflow: hidden; }
.split__grid {
  display: grid;
  width: 100%;
  min-height: 500px;
}
.split__text {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--dark);
}
.split__text-inner { max-width: 36rem; }
.split__media {
  order: 1;
  position: relative;
  min-height: 400px;
}
.split__media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.split__media-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }

.bar { width: 3rem; height: 4px; background: #fff; margin-bottom: 1.5rem; }
.split__title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.split__divider { height: 1px; width: 100%; background: rgba(255, 255, 255, 0.2); margin-bottom: 1.5rem; }
.split__body { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; line-height: 1.7; }
.split__body p + p { margin-top: 1rem; }

@media (min-width: 640px) {
  .split__text { padding: 4rem 2rem; }
  .bar { width: 4rem; margin-bottom: 2rem; }
  .split__title { font-size: 1.875rem; margin-bottom: 1.5rem; }
  .split__divider { margin-bottom: 2rem; }
  .split__body { font-size: 1rem; }
  .split__body p + p { margin-top: 1.5rem; }
}
@media (min-width: 768px) {
  .split__grid { grid-template-columns: 1fr 1fr; min-height: 600px; }
  .split__text { order: 1; padding-left: 3rem; padding-right: 3rem; }
  .split__media { order: 2; min-height: 100%; }
  .split__title { font-size: 2.25rem; }
  .split__body { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .split__text { padding-left: 5rem; padding-right: 5rem; }
  .split__title { font-size: 3rem; }
}

/* ==========================================================================
   HOME - three-card grid
   ========================================================================== */
.cards { background: #fff; padding: 4rem 0; }
.cards__grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
}
.card__bar { width: 2.5rem; height: 4px; background: var(--dark); margin-bottom: 1rem; }
.card__title { font-size: 1.125rem; color: var(--dark); margin-bottom: 1rem; }
.card__body { font-size: 0.875rem; color: rgba(44, 44, 44, 0.7); line-height: 1.7; }

@media (min-width: 640px) {
  .cards { padding: 5rem 0; }
  .cards__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 0 2rem; }
  .card__bar { width: 3rem; }
  .card__title { font-size: 1.25rem; }
  .card__body { font-size: 1rem; }
}
@media (min-width: 768px) {
  .cards { padding: 8rem 0; }
  .cards__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .card__title { font-size: 1.5rem; }
}

/* ==========================================================================
   CTA image band (every page)
   ========================================================================== */
.cta { position: relative; min-height: 400px; overflow: hidden; }
.cta__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta__overlay { position: absolute; inset: 0; background: rgba(44, 44, 44, 0.4); }
@media (min-width: 640px)  { .cta { min-height: 500px; } }
@media (min-width: 768px)  { .cta { min-height: 600px; } }
@media (min-width: 1024px) { .cta { min-height: 700px; } }
@media (min-width: 1280px) { .cta { min-height: 800px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer__top { background: #fff; padding: 3rem 0; border-top: 1px solid var(--border); }
.footer__grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
  color: var(--dark);
}
.footer__bar { width: 2.5rem; height: 4px; background: var(--dark); margin-bottom: 1.5rem; }
.footer__heading { font-size: 1.125rem; color: var(--dark); margin-bottom: 1.5rem; }
.footer__body { font-size: 0.875rem; color: rgba(44, 44, 44, 0.7); line-height: 1.7; }
.footer__body a { display: block; transition: opacity 0.2s ease; }
.footer__body a:hover { opacity: 0.7; }
.footer__body .spaced { margin-bottom: 1.5rem; }
.footer__kt { font-size: 0.75rem; }

.footer__bottom { background: #000; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bottom-inner a { transition: color 0.3s ease; }
.footer__bottom-inner a:hover { color: #fff; }

@media (min-width: 640px) {
  .footer__top { padding: 4rem 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 0 2rem; }
  .footer__bar { width: 3rem; }
  .footer__heading { font-size: 1.25rem; }
  .footer__body { font-size: 1rem; }
  .footer__kt { font-size: 0.875rem; }
  .footer__bottom { padding: 1.5rem 0; }
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    font-size: 0.875rem;
  }
}
@media (min-width: 768px) {
  .footer__top { padding: 6rem 0; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .footer__heading { font-size: 1.5rem; }
}

/* ==========================================================================
   GJALDSKRA (fee schedule)
   ========================================================================== */
.doc { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.doc__title {
  font-size: 1.875rem;
  color: var(--dark);
  text-align: center;
  letter-spacing: 0.025em;
  margin-bottom: 3rem;
}
.doc__stack { color: var(--dark); display: flex; flex-direction: column; gap: 4rem; }

.doc__intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc__section { border-top: 2px solid var(--dark); padding-top: 2rem; }
.doc__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2rem;
}
.doc__section-body { font-size: 0.875rem; line-height: 1.7; }
.doc__block { display: flex; flex-direction: column; gap: 1rem; }
.doc__block + .doc__block { margin-top: 2.5rem; padding-top: 1.5rem; }
.doc__block p { margin: 0; }
.doc__strong { font-weight: 500; }
.doc__tiers {
  padding-left: 1.5rem;
  border-left: 2px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.doc__note { font-style: italic; opacity: 0.7; }
.doc__loose { margin-top: 1.5rem; }

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.fee-row__price { font-weight: 500; white-space: nowrap; }

.doc__ordered {
  padding-left: 1.5rem;
  border-left: 2px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.doc__ordered p { font-weight: 500; }

.doc__date {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

@media (min-width: 640px) {
  .doc { padding: 0 2rem; }
  .doc__title { font-size: 2.25rem; margin-bottom: 5rem; }
  .doc__stack { gap: 5rem; }
  .doc__intro { font-size: 1rem; }
  .doc__label { font-size: 0.875rem; }
  .doc__section-body { font-size: 1rem; }
  .fee-row { font-size: 1rem; }
  .doc__date { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .doc__title { font-size: 3rem; }
}

/* ==========================================================================
   SAMBAND (contact)
   ========================================================================== */
.contact { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.contact__title {
  font-size: 1.875rem;
  color: var(--dark);
  text-align: center;
  letter-spacing: 0.025em;
  margin-bottom: 3rem;
}
.contact__card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__block h2 { font-size: 1.125rem; color: var(--dark); margin-bottom: 0.75rem; }
.contact__block p, .contact__block a { font-size: 0.875rem; color: var(--dark); }
.contact__block a { transition: opacity 0.2s ease; }
.contact__block a:hover { opacity: 0.7; }
.contact__kt { color: var(--muted); font-size: 0.75rem; padding-top: 0.75rem; }

@media (min-width: 640px) {
  .contact { padding: 0 2rem; }
  .contact__title { font-size: 2.25rem; margin-bottom: 4rem; }
  .contact__card { padding: 4rem; gap: 2rem; }
  .contact__block h2 { font-size: 1.25rem; margin-bottom: 1rem; }
  .contact__block p, .contact__block a { font-size: 1rem; }
  .contact__kt { font-size: 0.875rem; padding-top: 1rem; }
}
@media (min-width: 768px) {
  .doc__title, .contact__title { font-size: 3rem; }
}

/* ==========================================================================
   SCROLL REVEAL (IntersectionObserver adds .in-view)
   ========================================================================== */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal--left  { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--up    { transform: translateY(20px); transition-duration: 0.6s; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- hero keyframes ---------------------------------------------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-panel { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* ---------- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__panel, .hero__strip, .hero__content { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}
