/*
Theme Name: Veðrið Sign
Theme URI: https://vedrid.is
Author: Veðurguðirnir
Description: Sign-first WordPress theme for Veðrið.
Version: 1.0.70
Text Domain: vedrid-sign
*/

@font-face {
  font-family: "Transport Heavy";
  src: url("assets/transporth.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0433ff;
  --blue-deep: #001a87;
  --ink: #07131c;
  --ink-2: #101417;
  --bed: #000000;
  --paper: #f4f7fb;
  --muted: #52616f;
  --line: #d9deff;
  --line-soft: rgba(217, 222, 255, 0.42);
  --bulb: #ff6a00;
  --red: #e53935;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(3, 16, 36, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink-2);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, 0.92);
  border-bottom: 1px solid rgba(7, 19, 28, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand span {
  font-family: "Transport Heavy", Impact, sans-serif;
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #23313d;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e7ecf6;
  outline: none;
}

.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--blue-deep);
}

.site-main {
  overflow: hidden;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

[id] {
  scroll-margin-top: 96px;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: clamp(36px, 7vw, 82px) 0 42px;
  background:
    linear-gradient(160deg, rgba(4, 51, 255, 0.14), transparent 38%),
    var(--paper);
}

.ad-hero {
  padding: clamp(42px, 7vw, 92px) 0 clamp(54px, 8vw, 110px);
  background:
    linear-gradient(160deg, rgba(4, 51, 255, 0.16), transparent 44%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 74px);
}

.ad-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(230px, 0.52fr);
  align-items: center;
  gap: clamp(28px, 6vw, 74px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h3,
p,
li,
a,
figcaption {
  overflow-wrap: anywhere;
}

h1,
h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

h1 {
  margin-bottom: 22px;
  font-family: "Transport Heavy", Impact, sans-serif;
  font-size: clamp(4.4rem, 13vw, 11rem);
  line-height: 0.8;
  color: var(--blue);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-family: "Transport Heavy", Impact, sans-serif;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.92;
  color: var(--ink);
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lede {
  max-width: 690px;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  line-height: 1.26;
  color: #1a2733;
}

.note {
  max-width: 760px;
  color: var(--muted);
}

.warning-note {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--bulb);
  color: #31404d;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.button.blue {
  border-color: var(--blue);
  background: var(--blue);
}

.phone-stage {
  display: grid;
  justify-items: center;
}

.phone-frame {
  width: min(360px, 82vw);
  padding: 0;
  border-radius: 22px;
  background: var(--blue);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-frame img {
  display: block;
  border-radius: 22px;
  width: 100%;
}

.ad-phone-panel {
  justify-self: center;
  width: min(330px, 100%);
  border-radius: 22px;
  background: var(--blue);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ad-phone-panel img {
  display: block;
  width: 100%;
}

.official-sign-widget {
  margin: 0 0 28px;
  width: min(720px, 100%);
  max-width: 720px;
}

.official-sign-widget .vedrid-sign-widget-frame {
  display: block;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.blue-band {
  background: var(--blue);
  color: var(--white);
}

.blue-band h2,
.blue-band .eyebrow {
  color: var(--white);
}

.blue-band .note {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.closing-grid > div {
  max-width: 820px;
}

.closing-grid .actions {
  margin-top: 24px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.feature-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle at center, currentColor 0 28%, transparent 30%);
}

.app-screens {
  background: #07131c;
  color: var(--white);
}

.app-screens h2,
.app-screens .eyebrow {
  color: var(--white);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(5, 0.74fr);
  gap: 16px;
  align-items: start;
}

.screen-card {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: var(--blue);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.screen-card img {
  display: block;
  width: 100%;
  border-radius: 16px 16px 0 0;
}

.screen-card figcaption {
  padding: 10px 6px 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.primary-screen {
  border-color: rgba(255, 255, 255, 0.3);
}

.ad-options-section {
  background: var(--paper);
}

.ad-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ad-option {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(7, 19, 28, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(7, 19, 28, 0.08);
}

.ad-option strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Transport Heavy", Impact, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 0.95;
  color: var(--blue);
  text-transform: uppercase;
}

.ad-option p {
  color: var(--muted);
}

.ad-api-panel {
  align-items: center;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.link-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(7, 19, 28, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(7, 19, 28, 0.08);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  outline: none;
}

.link-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Transport Heavy", Impact, sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  color: var(--blue);
  text-transform: uppercase;
}

.link-card .arrow {
  font-weight: 900;
}

.api-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.52fr);
  gap: 22px;
  align-items: end;
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.api-panel h2 {
  color: var(--white);
}

.api-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.api-code {
  display: block;
  max-width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #05090d;
  color: #b7f7c6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow-x: auto;
}

.widget-section {
  background:
    linear-gradient(180deg, rgba(4, 51, 255, 0.08), transparent 42%),
    var(--paper);
}

.embed-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.vedrid-sign-widget-frame {
  display: block;
  background: transparent;
  background-color: transparent;
  border-radius: 0 !important;
  box-shadow: none !important;
  vertical-align: top;
}

.embed-panel pre {
  margin: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid rgba(7, 19, 28, 0.12);
  border-radius: 8px;
  background: #08111a;
  color: #e7ecf6;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-x: auto;
}

.embed-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(7, 19, 28, 0.1);
  border-radius: 8px;
  background: rgba(7, 19, 28, 0.1);
}

.source-strip a {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.source-strip a:hover,
.source-strip a:focus-visible {
  background: #f8fbff;
  outline: none;
}

.source-strip span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.28;
  color: #425260;
}

.source-strip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 44px);
  align-items: start;
}

.contact-grid > div {
  max-width: 760px;
}

.contact-form {
  max-width: 860px;
}

.contact-direct {
  font-weight: 800;
}

.contact-direct a {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgba(7, 19, 28, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 51, 255, 0.07), transparent 42%),
    var(--paper);
  box-shadow: 0 18px 44px rgba(7, 19, 28, 0.09);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 19, 28, 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  padding: 12px 13px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(4, 51, 255, 0.14);
}

.contact-form .button {
  width: fit-content;
}

.turnstile-wrap {
  min-height: 65px;
  overflow: hidden;
}

.turnstile-wrap iframe {
  max-width: 100%;
}

.contact-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
}

.contact-notice.success {
  background: #dff7e8;
  color: #0b5b2a;
}

.contact-notice.error {
  background: #ffe3e3;
  color: #8a1f1f;
}

.turnstile-missing {
  display: block;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-grid a {
  color: var(--white);
}

.content-page {
  padding: 72px 0;
}

.content-page article {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(7, 19, 28, 0.08);
}

.content-page h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
}

@media (max-width: 1120px) {
  .site-header {
    position: static;
  }

  [id] {
    scroll-margin-top: 24px;
  }

  .nav-wrap {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 6px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  }

  .ad-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.44fr);
  }

  .screen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-grid,
  .ad-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .ad-hero-grid,
  .split,
  .api-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    row-gap: 40px;
  }

  .official-sign-widget {
    width: 100%;
  }

  .phone-stage {
    justify-items: start;
  }

  .ad-phone-panel {
    justify-self: start;
    width: min(330px, 100%);
  }

  .link-grid,
  .screen-grid,
  .ad-option-grid,
  .source-strip {
    grid-template-columns: 1fr;
  }

  .screen-grid {
    gap: 18px;
  }

  .screen-card {
    width: min(270px, 100%);
    margin: 0 auto;
  }

  .link-card {
    min-height: 210px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  [id] {
    scroll-margin-top: 24px;
  }

  body {
    font-size: 16px;
  }

  .wrap,
  .nav-wrap {
    width: min(100% - 22px, 1180px);
  }

  .site-nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.2rem, 10.8vw, 3.4rem);
    line-height: 0.88;
  }

  h2 {
    font-size: clamp(1.22rem, 6.2vw, 2.1rem);
    line-height: 1;
  }

  .lede {
    font-size: 1.12rem;
  }

  .actions {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .phone-frame {
    width: min(100%, 330px);
  }

  .contact-form .button {
    width: 100%;
  }

}
