/*
Theme Name: RadioAalborg
Theme URI: https://radioaalborg.dk
Author: RadioAalborg
Description: Et enkelt, hurtigt og mobilvenligt tema til RadioAalborg.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: radioaalborg
*/

:root {
  --ink: #080b10;
  --surface: #11161e;
  --surface-soft: #171e28;
  --gold: #efd326;
  --gold-light: #f7e675;
  --paper: #f5f2ea;
  --muted: #a8afba;
  --line: rgba(255, 255, 255, 0.11);
  --live: #ef3340;
  --success: #70d69b;
  --error: #ff7c85;
  --shell: min(1120px, calc(100vw - 40px));
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand img {
  width: 72px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(8, 11, 16, 0.98) 0%, rgba(8, 11, 16, 0.9) 46%, rgba(8, 11, 16, 0.3) 78%, rgba(8, 11, 16, 0.5) 100%),
    url("assets/images/on-air.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  z-index: -1;
  background: linear-gradient(transparent, var(--ink));
}

.hero-inner {
  padding-block: 92px 120px;
}

.hero-copy {
  max-width: 620px;
}

.hero-logo {
  width: clamp(220px, 34vw, 380px);
  margin: 24px 0 22px;
}

.hero h1,
.section h2,
.program-card h3,
.interview-card h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
}

.hero-lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: #d7dbe1;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 5px rgba(239, 51, 64, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(239, 211, 38, 0.4);
  outline-offset: 3px;
}

.button-primary {
  background: var(--gold);
  color: #171200;
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding-block: 112px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}

.section-heading h2,
.section-about h2,
.section-contact h2 {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
}

.section-heading > p,
.section-heading > .text-link {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--gold-light) !important;
  font-weight: 800;
  text-underline-offset: 5px;
}

.section-programs {
  background: var(--ink);
}

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

.program-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
}

.program-time {
  min-height: 1.4em;
  margin: 0 0 34px;
  color: var(--gold-light);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.program-card h3 {
  font-size: 1.7rem;
}

.program-copy {
  color: var(--muted);
}

.program-copy > :last-child {
  margin-bottom: 0;
}

.section-interviews {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.interview-list {
  display: grid;
  gap: 28px;
}

.interview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  min-height: 420px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.interview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interview-copy {
  align-self: center;
  padding: 42px;
}

.interview-card h3 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.prose {
  color: #c7ccd3;
}

.prose > :first-child {
  margin-top: 18px;
}

.prose > :last-child {
  margin-bottom: 0;
}

.section-about {
  background-image: radial-gradient(circle at 20% 15%, rgba(239, 211, 38, 0.09), transparent 34%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 74px;
  align-items: center;
}

.about-radio {
  max-width: 520px;
}

.host-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(300px, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.host-card > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02);
}

.host-copy {
  align-self: center;
  padding: 36px;
}

.section-contact {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.97), rgba(8, 11, 16, 0.84)),
    url("assets/images/microphone.jpg") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1fr);
  gap: 86px;
  align-items: start;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 500px;
  color: #d0d4da;
}

.privacy-note {
  font-size: 0.9rem;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 30, 0.95);
  box-shadow: var(--shadow);
}

.contact-form label {
  margin-top: 10px;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #0a0e14;
  color: var(--paper);
}

.contact-form input {
  min-height: 52px;
  padding: 0 15px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
  padding: 14px 15px;
}

.contact-form .button {
  justify-self: start;
  margin-top: 16px;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-message {
  padding: 12px 15px;
  border-radius: 12px;
  font-weight: 750;
}

.form-message-success {
  background: rgba(112, 214, 155, 0.12);
  color: var(--success);
}

.form-message-error {
  background: rgba(255, 124, 133, 0.12);
  color: var(--error);
}

.form-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  background: #05070a;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.standard-page {
  min-height: 70vh;
  padding-block: 90px;
}

.standard-page h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .main-nav {
    gap: 16px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 660px;
  }

  .hero-art {
    background-image:
      linear-gradient(90deg, rgba(8, 11, 16, 0.96), rgba(8, 11, 16, 0.72)),
      url("assets/images/on-air.jpg");
    background-position: 62% center;
  }

  .section-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .interview-card {
    grid-template-columns: 1fr;
  }

  .video-frame {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .about-radio {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 54px;
    height: 48px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-inner {
    padding-block: 70px 86px;
  }

  .hero-logo {
    width: 230px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding-block: 78px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 0;
  }

  .interview-copy,
  .contact-form {
    padding: 24px;
  }

  .host-card {
    grid-template-columns: 1fr;
  }

  .host-card > img {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .contact-grid {
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .footer-inner p:last-child {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

