/* Global styles */
:root {
  --bg-dark: #040404;
  --bg-darker: #010101;
  --bg-panel: rgba(33, 33, 33, 0.72);
  --text-primary: #f5f5f5;
  --text-muted: #c8c8c8;
  --accent: #789885;
  --accent-soft: rgba(120, 152, 133, 0.15);
  --border-radius: 18px;
  --max-width: 1180px;
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
  --transition: all 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0c0d11 0%, #020202 55%, #000000 100%);
  color: var(--text-primary);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

main {
  width: 100%;
  overflow: hidden;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.36em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.nav-links a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #121212;
  box-shadow: 0 8px 24px rgba(120, 152, 133, 0.3);
}

.btn-primary:hover {
  background: #8faa95;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.76));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.35;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
  width: min(100%, 640px);
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-card .cta-group .btn {
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Sections */
section {
  padding: 96px 0;
  position: relative;
}

section:nth-of-type(even) {
  background: rgba(6, 6, 6, 0.76);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

.highlights-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.highlight-card {
  background: var(--bg-panel);
  padding: 32px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
}

.highlight-card span {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.highlight-card h3 {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.highlight-card p {
  color: var(--text-muted);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.link-card {
  padding: 32px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(20, 21, 24, 0.95), rgba(8, 8, 10, 0.72));
  display: grid;
  gap: 18px;
  min-height: 220px;
}

.link-card strong {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.link-card .card-body {
  color: var(--text-muted);
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.link-card .card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Testimonials */
.referrals {
  display: grid;
  gap: 48px;
}

.referral-card {
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.referral-heading {
  display: block;
  margin-bottom: 16px;
}

.referral-heading h4 {
  margin: 0;
}

.referral-logo {
  position: absolute;
  top: -32px;
  right: 24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 5, 5, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.referral-card {
  position: relative;
}

.referral-card::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: 32px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.06);
}

.referral-card h4 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.referral-card blockquote {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Contact */
.contact-section {
  background: #020202;
}

.contact-wrapper {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.contact-card {
  background: var(--bg-panel);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}

.contact-card h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-details strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-card form {
  display: grid;
  gap: 16px;
}

.input-group {
  display: grid;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.input-group input,
.input-group textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 10, 0.75);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
  font-size: 1rem;
  line-height: 1.5;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 193, 93, 0.12);
}

.contact-media {
  background: linear-gradient(145deg, rgba(19, 19, 19, 0.92), rgba(7, 7, 7, 0.75));
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  display: grid;
  gap: 18px;
  place-content: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.contact-media img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.contact-media p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

footer {
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Foredrag page specific */
.hero.home::after,
.hero.foredrag::after {
  background-image: url('/assets/images/hero-foredrag.jpg');
  background-position: top center;
  opacity: 0.45;
}

.talks-grid {
  display: grid;
  gap: 36px;
}

.talk-card {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  background: rgba(18, 18, 18, 0.85);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.talk-card figure {
  position: relative;
  min-height: 220px;
  background: #111;
}

.talk-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.talk-card .talk-body {
  padding: 32px;
  display: grid;
  gap: 16px;
}

.talk-card h3 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.talk-card p {
  margin: 0;
  color: var(--text-muted);
}

.talk-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.talk-card li {
  margin-bottom: 6px;
}

.media-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-strip img {
  height: 160px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .navbar {
    flex-wrap: wrap;
    gap: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 84px 0 96px;
    min-height: 70vh;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-lead {
    margin: 0 auto;
  }

  .cta-group {
    justify-content: center;
  }

  .referral-card {
    padding: 28px;
  }

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

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

  .talk-card figure {
    max-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
