/*
Theme Name: Lenes Køreskole
Author: Mads Christensen
Description: Tema til Lenes Køreskole. Sort/hvid som logoet med den grønne fra træet. Sidernes indhold redigeres i WordPress som normalt.
Version: 1.0.0
Requires PHP: 5.6
Text Domain: lenes
*/

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}


:root {
  --ink: #000;
  --text: #26291f;
  --muted: #666b5e;
  --line: #dcdfd4;
  --paper: #fff;
  --mist: #f2f4ec;
  --green: #557a26;
  --green-dark: #3e5b19;
  --green-pale: #e6edd8;
  --yellow: #f6bd3b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

/* ---------- Knapper ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Top ---------- */

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .9rem 0;
}
.logo img { width: 280px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .97rem;
  color: var(--ink); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); }
.nav .btn { color: #fff; padding: .65rem 1.25rem; border: 2px solid var(--green); }
.nav .btn:hover { border-color: var(--green-dark); }
.menu-btn {
  display: none; font: 700 .95rem var(--display);
  background: none; border: 2px solid var(--ink); border-radius: 999px;
  padding: .5rem 1.1rem; color: var(--ink); cursor: pointer;
}

/* ---------- Forside: velkomst ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero .lead { font-size: 1.2rem; line-height: 1.6; margin: 1.4rem 0 2rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; border-radius: 6px; }
.hero figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

.facts {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.facts li { padding: 1.2rem 1.5rem 1.4rem 0; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.12rem; color: var(--ink); line-height: 1.25; margin-bottom: .25rem;
}
.facts li > span { font-size: .96rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Sektioner ---------- */

.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-mist { background: var(--mist); }
.sec-head { max-width: 40em; margin-bottom: 2.2rem; }
.sec-head p { margin-top: .9rem; font-size: 1.1rem; }

/* Nyhed */
.news { background: var(--green-pale); margin-top: clamp(2.5rem, 5vw, 4rem); }
.news-in { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.8rem 0; align-items: start; }
.tag {
  font-family: var(--display); font-weight: 800; font-size: .9rem;
  background: var(--yellow); color: var(--ink);
  padding: .3rem .8rem; border-radius: 4px; margin-top: .2rem;
}
.news h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: .5rem; }
.news p { max-width: 62em; }

/* Genveje */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); }
.ways > div { padding: .3rem 2rem .3rem 0; display: flex; flex-direction: column; align-items: flex-start; }
.ways > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.ways p { margin: .6rem 0 1.3rem; flex: 1; }

/* Om forløbet */
.about { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 39em; }
.prose h2 { margin-bottom: 1.4rem; }
.sign { margin-top: 1.8rem; }
.sign strong { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.15rem; display: block; }

.side { border: 2px solid var(--ink); border-radius: 6px; padding: 1.6rem; position: sticky; top: 1.5rem; background: var(--paper); }
.side h3 { margin-bottom: .5rem; }
.side .phone {
  display: block; font-family: var(--display); font-weight: 300; font-size: 2.1rem;
  letter-spacing: .01em; color: var(--ink); text-decoration: none; line-height: 1.1; margin: .2rem 0 .9rem;
}
.side .phone:hover { color: var(--green-dark); }
.side p { font-size: .97rem; line-height: 1.55; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

/* Skolevognen */
.door { background: #e9ebe8; }
.door img { width: 100%; height: clamp(170px, 26vw, 340px); object-fit: cover; object-position: 30% 50%; }

/* Facebook */
.fb { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.fb-text { max-width: 27em; position: sticky; top: 1.5rem; }
.fb-text p { margin: 1rem 0 1.6rem; font-size: 1.1rem; }
.fb-frame { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 300px; }
.fb-frame iframe { display: block; width: 100%; height: 700px; border: 0; }
.fb-frame noscript p, .fb-fallback { padding: 1.5rem; }

/* Medlemskab + vilkår */
.member { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; align-items: center; max-width: 46em; }
.member img { width: 120px; }
.terms { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.6rem; font-size: .95rem; color: var(--muted); max-width: 52em; }

/* ---------- Undersider ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head p { font-size: 1.2rem; max-width: 36em; margin-top: 1.2rem; }
.note { background: var(--green-pale); border-radius: 6px; padding: 1.3rem 1.5rem; max-width: 46em; }
.note strong { color: var(--ink); }

/* Priser */
.offer { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 5vw, 4rem); padding: 2.6rem 0; border-top: 2px solid var(--ink); }
.offer + .offer { border-top: 1px solid var(--line); }
.offer-name small { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-top: .5rem; line-height: 1.4; }
.offer-body { max-width: 40em; }
.offer-body ul { margin: 0 0 1.4rem; padding-left: 1.2rem; }
.offer-body li { margin-bottom: .45rem; }
.offer-body li::marker { color: var(--green); }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin: 0 0 1.2rem; }
.price span { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-right: .4rem; }
.fine { font-size: .96rem; color: var(--muted); }

.costs { width: 100%; border-collapse: collapse; max-width: 46em; }
.costs th, .costs td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.costs td { text-align: right; white-space: nowrap; padding-left: 1.5rem; font-family: var(--display); font-weight: 700; color: var(--ink); }

/* 6 steps: stiplet midterlinje som på vejen */
.steps { list-style: none; margin: 0; padding: 0; max-width: 44em; counter-reset: step; }
.steps li { position: relative; padding: 0 0 2.6rem 5rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.2rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  font: 800 1.25rem/3rem var(--display); text-align: center;
}
.steps li::after {
  content: ""; position: absolute; left: calc(1.5rem - 2px); top: 3.3rem; bottom: .5rem;
  border-left: 4px dashed var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h2 { font-size: 1.45rem; margin-bottom: .5rem; letter-spacing: -0.01em; }

/* Tilmelding */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.after { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.after li { counter-increment: a; position: relative; padding-left: 2.6rem; margin-bottom: .9rem; }
.after li::before {
  content: counter(a); position: absolute; left: 0; top: .1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid var(--ink);
  font: 800 .9rem/1.6rem var(--display); text-align: center; color: var(--ink);
}
.booking { background: #fafafa; border-top: 1px solid var(--line); padding: 1rem 0 3rem; }
.booking iframe { width: 100%; height: 1000px; border: 0; display: block; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form label { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: .97rem; margin: 1.1rem 0 .35rem; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid #9aa08f; border-radius: 6px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--green-pale); border-color: var(--green); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .btn { margin-top: 1.4rem; }
.info h2 { font-size: 1.35rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
.info section + section { margin-top: 2rem; }
.info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.map { margin-top: 2rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Bund ---------- */

.foot { background: var(--ink); color: #cfd2c8; padding: 3.5rem 0 2rem; font-size: .98rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.wordmark { font-family: var(--display); font-size: 1.7rem; color: #fff; line-height: 1; margin-bottom: 1rem; letter-spacing: -0.01em; }
.wordmark .thin { font-weight: 200; letter-spacing: .02em; }
.wordmark .fat { font-weight: 900; }
.foot h2 { font-size: 1rem; color: #fff; letter-spacing: 0; margin-bottom: .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot-end { border-top: 1px solid #333; margin-top: 2.5rem; padding-top: 1.4rem; color: #9a9d93; font-size: .9rem; }

/* ---------- Små skærme ---------- */

@media (max-width: 940px) {
  .menu-btn { display: block; }
  .top-in { flex-wrap: wrap; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .5rem 0 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; font-size: 1.05rem; }
  .nav .btn { margin-top: .6rem; padding: .7rem 1.4rem; }
  .hero-grid, .about, .fb, .signup, .contact, .offer { grid-template-columns: 1fr; }
  .hero figure { order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 1.1rem 1rem 1.1rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ways { grid-template-columns: 1fr; }
  .ways > div, .ways > div + div { padding: 1.6rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .ways > div:first-child { border-top: 0; padding-top: 0; }
  .side, .fb-text { position: static; }
  .offer { gap: 1rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .logo img { width: 190px; }
  .facts { grid-template-columns: 1fr; }
  .news-in { grid-template-columns: 1fr; gap: .8rem; }
  .tag { justify-self: start; }
  .member { grid-template-columns: 80px 1fr; gap: 1.2rem; }
  .member img { width: 80px; }
  .steps li { padding-left: 3.9rem; }
  .steps li::before { width: 2.6rem; height: 2.6rem; line-height: 2.6rem; font-size: 1.1rem; }
  .steps li::after { left: calc(1.3rem - 2px); top: 2.9rem; }
  .costs td { white-space: normal; }
  .actions .btn { width: 100%; text-align: center; }
}

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

/* =====================================================================
   WordPress-tilpasninger
   ===================================================================== */

/* Menu fra WordPress */
.nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav li.current-menu-item > a, .nav li.current_page_item > a { border-bottom-color: var(--green); }
.logo img, .logo .custom-logo { width: 280px; height: auto; }

/* Indhold fra editoren: alt holder sidens bredde, .full går helt ud til kanten */
.entry { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.entry-front { padding-bottom: 0; }
.entry > * {
  margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2));
  margin-right: max(1.25rem, calc((100% - var(--wrap)) / 2));
}
.entry > .full { margin-left: 0; margin-right: 0; }
.entry > p, .entry > ul, .entry > ol, .entry > h2, .entry > h3, .entry > blockquote { max-width: 44em; }
.entry > h2 { margin-top: 2.4rem; margin-bottom: .8rem; }
.entry > h3 { margin-top: 1.8rem; margin-bottom: .5rem; }
.entry > ul, .entry > ol { padding-left: 1.2rem; }
.entry > ul li::marker { color: var(--green); }
.entry > .lead { font-size: 1.2rem; max-width: 36em; margin-bottom: 2.5rem; }
.entry > .note { margin-bottom: 3rem; }
.entry > .steps, .entry > .after { padding-left: 0; }
.entry img { border-radius: 6px; }
.page-head { padding-bottom: 1.2rem; }

.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* Forside */
.hero .actions { margin: 0; }
.hero-photo p { margin: 0; }
.hero-photo img { width: 100%; border-radius: 6px; }
.hero-photo .cap { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
p.tag { display: inline-block; margin: .2rem 0 0; justify-self: start; align-self: start; line-height: 1.4; }
.ways .way-link { flex: 0 0 auto; margin: 0; }
.side .phone a { color: var(--ink); text-decoration: none; }
.side .phone a:hover { color: var(--green-dark); }
.door p { margin: 0; }
.entry .door img { border-radius: 0; }
.fb-box > p { margin: 0; }
.member p { margin: 0; }
.entry .member img { border-radius: 0; }

/* Priser */
.offer-name p { color: var(--muted); margin-top: .5rem; line-height: 1.4; }
.price small { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-right: .4rem; }
.offer-link { margin-top: 1.6rem; }
.extras { margin-top: 2rem; }
.extras h2 { margin-bottom: 2.2rem; }
.extras .fine { margin-top: 1.6rem; }

/* 6 steps + tilmelding */
.after-steps { margin-top: 3rem; }
.note h3 { margin-bottom: 1rem; }
.entry > .booking { margin-bottom: calc(-1 * clamp(3rem, 7vw, 5.5rem)); }

/* Kontakt */
.info ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.info li { margin-bottom: .3rem; }
.form-col div.wpforms-container, .form-col div.wpforms-container-full { margin: 0 !important; }
.form-col .wpforms-form .wpforms-field { padding: 0 0 1.1rem !important; }
.form-col .wpforms-form .wpforms-field-label {
  display: block; font-family: var(--display) !important; font-weight: 700 !important; font-size: .97rem !important;
  color: var(--ink) !important; margin: 0 0 .35rem !important;
}
.form-col .wpforms-form .wpforms-field input,
.form-col .wpforms-form .wpforms-field textarea {
  width: 100% !important; max-width: 100% !important; height: auto !important;
  font: inherit !important; color: var(--ink) !important;
  padding: .8rem .95rem !important; border: 1.5px solid #9aa08f !important; border-radius: 6px !important;
  background: #fff !important; box-shadow: none !important;
}
.form-col .wpforms-form .wpforms-field textarea { min-height: 9rem !important; }
.form-col .wpforms-form .wpforms-field input:focus,
.form-col .wpforms-form .wpforms-field textarea:focus { outline: 3px solid var(--green-pale) !important; border-color: var(--green) !important; }
.form-col .wpforms-form .wpforms-submit-container { padding: .3rem 0 0 !important; }
.form-col .wpforms-form button[type="submit"] {
  font: 700 1rem/1.2 var(--display) !important; padding: .85rem 1.6rem !important; height: auto !important;
  border-radius: 999px !important; border: 2px solid var(--green) !important;
  background: var(--green) !important; color: #fff !important; cursor: pointer;
}
.form-col .wpforms-form button[type="submit"]:hover { background: var(--green-dark) !important; border-color: var(--green-dark) !important; }

@media (max-width: 940px) {
  .nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .hero-photo { order: -1; }
}
@media (max-width: 560px) {
  .logo img, .logo .custom-logo { width: 190px; }
}
