/* Brand typography, self-hosted — same two families and files as icelandtripplanner.is
   (Formáli's other consumer-facing site), so the two properties read as one company.
   Only the `latin` subset is shipped — U+0000-00FF covers every Icelandic letter
   (á é í ó ú ý þ ð æ ö and their capitals). Licence: SIL OFL 1.1, kept alongside the
   files at assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('../assets/fonts/barlow-condensed-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('../assets/fonts/barlow-condensed-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/barlow-condensed-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/barlow-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/barlow-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/barlow-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/barlow-700-latin.woff2') format('woff2');
}

:root {
  /* Same brand palette as icelandtripplanner.is (brand guidelines v1.0, section 08).
     Two blues carry the brand, Basalt carries the type, the sun is the one warm note. */
  --ink: #12283C;           /* Basalt — wordmark, body copy, dark backgrounds */
  --glacier: #4A6B92;       /* Glacier Blue — links, active states */
  --glacier-dark: #23395B;  /* Deep Fjord — hover states, dividers on dark */
  --ice: #A9C2DA;           /* labels on Basalt */
  --fjord: #5C7FA6;         /* secondary text on dark */
  --sun: #D14F12;           /* Midnight Sun — graphics/borders/pins, not text on white */
  --sun-bright: #FF7A33;    /* reversed sun — on Basalt or dark photography */
  --sun-hover: #B8430C;     /* deeper sun — hover states, and text on white (5.5:1) */
  --lava: #B8430C;          /* deliberately the same value as --sun-hover, one role each */
  --mist: #F2F6FA;          /* Ice, thinned to a page tint */

  --cream: #FFFFFF;
  --body-text: #46586B;
  --footer-secondary: var(--ice);
  --footer-muted: var(--fjord);
  --footer-divider: var(--glacier-dark);
  --card-hover: var(--mist);

  --font-display: 'Barlow Condensed', Barlow, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: Barlow, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --page-pad: clamp(20px, 5vw, 72px);
  --content-max: 1400px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
h1 { font-weight: 700; line-height: 1.02; }
h2 { font-weight: 600; line-height: 1.08; }

p { text-wrap: pretty; }

/* Eyebrows and labels: condensed, tracked, always caps — same rule as icelandtripplanner.is. */
.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-hover);
}

/* ================= intro overlay ================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--ink);
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.1s ease;
}
.intro.fade { opacity: 0; }
.intro.done { display: none; }

.intro-logo {
  width: min(60vw, 420px);
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .intro { transition: none; }
}

/* ================= hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--page-pad);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.brand { display: block; margin: -14px 0; }
.brand-logo { height: 84px; width: auto; display: block; }

/* Nav: condensed tracked caps with a sun underline on hover — same signature as
   icelandtripplanner.is's `navlink` utility. */
.nav { display: flex; gap: 32px; }
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--sun-bright);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav a:hover { color: var(--sun-bright); }
.nav a:hover::after { transform: scaleX(1); }

.map-area {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px clamp(16px, 4vw, 64px) 16px;
}

/* Handoff doesn't specify a small-screen header; shrink the lockup so the
   three nav links stay on one row instead of running off the edge. */
@media (max-width: 700px) {
  .brand-logo { height: 56px; }
  .brand { margin: -8px 0; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
}
/* Height comes from the flex leftover so header + map + headline fit in 100vh;
   the spec's clamp becomes the upper bound rather than a fixed height. */
.iceland-map {
  height: 100%;
  width: auto;
  min-height: 220px;
  max-height: clamp(220px, calc(100vh - 340px), 720px);
  max-width: 100%;
  aspect-ratio: 1100 / 600;
  display: block;
  /* The frame is a crop of western Iceland — the north, south and east
     coasts run past the edges and must be cut, not spill over the hero. */
  overflow: hidden;
}
.iceland-map .coast {
  stroke: var(--ice);
  stroke-dasharray: var(--coast-len);
  stroke-dashoffset: var(--coast-len);
  transition: stroke-dashoffset 3.4s cubic-bezier(.4,0,.2,1);
}
.iceland-map .pin-group .ring { stroke: var(--sun-bright); }
.iceland-map .pin-group .pin { fill: var(--sun-bright); }
.iceland-map .pin-group .ring,
.iceland-map .pin-group .pin,
.iceland-map .pin-group .label {
  opacity: 0;
  transition: opacity 1.2s ease calc(2.6s + var(--stagger) * 0.35s);
}
.iceland-map .label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.08em;
  fill: var(--cream);
}
.iceland-map.draw .coast { stroke-dashoffset: 0; }
.iceland-map.draw .pin-group .ring,
.iceland-map.draw .pin-group .pin,
.iceland-map.draw .pin-group .label { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .iceland-map .coast,
  .iceland-map .pin-group .ring,
  .iceland-map .pin-group .pin,
  .iceland-map .pin-group .label { transition: none; }
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0 var(--page-pad) clamp(32px, 5vw, 56px);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-copy .eyebrow { color: var(--sun-bright); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 68px);
  max-width: 18ch;
}

/* Buttons behave like signs, so they take the condensed face in tracked caps —
   same `btn` rule as icelandtripplanner.is. Hover warms to the sun rather than
   deepening the blue. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: var(--sun);
  color: #fff;
  border-radius: .5rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--sun-hover); }

/* ================= intro copy ================= */
.intro-copy {
  padding: clamp(56px, 8vw, 110px) var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
}
.intro-copy p {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  max-width: 44ch;
  color: var(--ink);
}

/* ================= companies ================= */
.companies {
  border-top: 1px solid var(--ink);
  max-width: var(--content-max);
  margin: 0 auto;
}
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 45%, 100%), 1fr));
  border-left: 1px solid var(--ink);
}
.company-cell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
  padding: 32px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--cream);
  transition: background 0.2s, box-shadow 0.2s;
}
.company-cell:hover { background: var(--card-hover); box-shadow: inset 0 -3px 0 var(--sun); }
.company-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-hover);
}
.company-cell h2 {
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.company-cell p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-text);
}

/* ================= about ================= */
.about {
  padding: clamp(72px, 10vw, 140px) var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.about-body {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-body h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.about-body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--body-text);
  max-width: 60ch;
}

/* ================= footer ================= */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--page-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-logo { height: 120px; width: auto; display: block; margin: -20px 0 -20px -24px; }
.footer-email { font-size: 22px; color: var(--cream); transition: color 0.2s; }
.footer-email:hover { color: var(--sun-bright); }
.footer-phone { font-size: 18px; color: var(--footer-secondary); transition: color 0.2s; }
.footer-phone:hover { color: var(--sun-bright); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-secondary);
}
.footer-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-bright);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--footer-divider);
  padding: 20px var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 13px;
  color: var(--footer-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
