/* Á ferðinni – ökukennsla */

:root {
  --ink: #101215;
  --ink-soft: #3a3f46;
  --muted: #63686f;
  --line: #e4e6e9;
  --bg: #f8f9fa;
  --card: #ffffff;
  --accent: #16181c;
  --accent-dark: #000000;
  --accent-soft: #ecedf0;
  --amber: #e8b33d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --max: 1120px;
  --font: ui-sans-serif, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

a { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: -0.02em; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

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

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15.5px;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--accent-dark); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-soft) !important;
  text-decoration: none;
  line-height: 1;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 11px 12px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(232, 179, 61, .16), transparent 70%),
    linear-gradient(155deg, #07080a 0%, #232529 55%, #16181c 120%);
  color: #fff;
  padding: 92px 0 78px;
}

.hero-road {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,.05) 0 2px,
    transparent 2px 46px
  );
  opacity: .55;
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-sub {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
  color: #e8b33d;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin-bottom: 20px;
}

.hero .lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: #d6d8dc;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.hero .btn-primary { background: #fff; color: var(--accent-dark); }
.hero .btn-primary:hover { background: #f1f2f4; }

.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 20px; }
.facts span { font-size: 13.5px; color: #b8bcc2; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-alt { background: #f0f1f3; }
.section-dark {
  background: linear-gradient(160deg, #07080a, #232529);
  color: #fff;
}
.section-dark .section-lead { color: #d8dade; }
.section-dark .eyebrow { color: #e8b33d; }

.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Tímalína ---------- */

.timeline {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  position: relative;
  max-width: 820px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 18px 64px;
}
.timeline li:last-child { padding-bottom: 0; }

.tl-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
}

.tl-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.tl-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tl-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Cards ---------- */

.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}

.cards { margin-bottom: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.1rem; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15.5px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 13px; height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.roles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.role dl { margin: 0; }
.role dt { font-weight: 700; font-size: 15px; margin-top: 14px; }
.role dt:first-child { margin-top: 0; }
.role dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.callout {
  margin-top: 34px;
  background: linear-gradient(140deg, #ecedf0, #f8f9fa);
  border: 1px solid #d6d8dc;
  border-radius: 22px;
  padding: 30px 28px;
}
.callout p { color: var(--ink-soft); max-width: 620px; }
.callout .btn { margin-top: 6px; }

/* ---------- Prices ---------- */

.price-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  max-width: 760px;
}

.price-table { width: 100%; border-collapse: collapse; }

.price-table th, .price-table td { text-align: left; padding: 17px 22px; }

.price-table thead th {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price-table tbody tr + tr { border-top: 1px solid var(--line); }
.price-table tbody th { font-weight: 600; font-size: 16px; }
.price-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price-table tbody tr:hover { background: #f7f8f9; }

.note-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.note-block h3 { font-size: 1.05rem; }
.note-block p:last-child { margin-bottom: 0; }

/* ---------- Teachers ---------- */

.teacher {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.teacher-avatar {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(140deg, #16181c, #07080a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .04em;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .14);
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.teacher-body h3 { margin-bottom: 2px; font-size: 1.25rem; }
.teacher-role { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.teacher-meta { color: var(--muted); font-size: 15px; margin: 0; }
.teacher-body { max-width: 62ch; }

/* ---------- Contact ---------- */

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

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  color: #fff;
}
.contact-card:hover { background: rgba(255,255,255,.1); }
.contact-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: #e8b33d; }
.contact-card strong { font-size: 18px; word-break: break-word; }

.booking-note { margin-top: 26px; color: #d8dade; }

/* ---------- Footer ---------- */

.site-footer {
  background: #000000;
  color: #b6bac0;
  padding: 34px 0;
  font-size: 14.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner strong { color: #fff; color: #fff; }
.footer-inner p { margin: 4px 0 0; }

.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: #b6bac0; text-decoration: none; padding: 8px 0; display: inline-block; }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; }
  .nav-cta { justify-content: center; margin-top: 6px; }
  .nav .lang-switch { align-self: flex-start; padding: 8px 16px; margin-top: 8px; }

  .hero { padding: 66px 0 56px; }
  .section { padding: 62px 0; }
  .teacher { flex-direction: column; }
  .price-table th, .price-table td { padding: 14px 16px; font-size: 15px; }
}

@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .facts { gap: 14px 28px; }
  .callout { padding: 24px 20px; }
  .timeline li { padding-left: 52px; }
  .tl-num { width: 34px; height: 34px; font-size: 13.5px; }
  .tl-body { padding: 14px 16px; }
}

/* ---------- Upplestur ---------- */

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 8px 14px;
  min-height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.read-btn svg { flex: 0 0 auto; }
.read-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.read-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero .read-btn,
.section-dark .read-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.hero .read-btn:hover,
.section-dark .read-btn:hover {
  color: #fff;
  border-color: #fff;
}
.hero .read-btn[aria-pressed="true"],
.section-dark .read-btn[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}
.hero-actions .read-btn { margin-top: 0; }

@media (max-width: 560px) {
  .hero-actions .read-btn { width: 100%; justify-content: center; }
}
