/*
Theme Name: Skydeskole
Theme URI: https://skydeskole.dk
Author: Skydeskole.dk
Description: Custom one-page theme for Skydeskole.dk, converted from a static HTML/CSS design.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skydeskole
*/

  :root {
    --paper: #EEE8D9;
    --paper-soft: #E4DCC7;
    --ink: #1F2A20;
    --pine: #223526;
    --pine-deep: #172619;
    --pine-mid: #3C5641;
    --clay: #B24A2E;
    --clay-deep: #93381F;
    --brass: #9C7A3D;
    --line: rgba(31, 42, 32, 0.15);
    --line-on-dark: rgba(238, 232, 217, 0.22);
    --radius: 3px;
    --max: 1120px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.12;
    margin: 0;
    color: var(--pine-deep);
  }

  a { color: inherit; }
  img, svg { display: block; max-width: 100%; }

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

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

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: var(--max);
    margin: 0 auto;
  }
  .logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--pine-deep);
  }
  .logo span { color: var(--clay); }

  nav.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 34px;
    margin: 0;
    padding: 0;
  }
  nav.primary-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    color: var(--pine);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
  }
  nav.primary-nav a:hover { border-color: var(--clay); }

  .nav-cta {
    background: var(--clay);
    color: var(--paper) !important;
    padding: 9px 18px;
    border-radius: var(--radius);
    border-bottom: none !important;
    font-weight: 600;
  }
  .nav-cta:hover { background: var(--clay-deep); }

  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pine-deep);
    margin: 5px 0;
  }

  /* ---------- Hero ---------- */
  .hero {
    background: var(--pine-deep);
    color: var(--paper);
    position: relative;
    overflow: hidden;
  }
  .hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 76px 32px 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }
  .hero-eyebrow {
    font-size: 0.92rem;
    color: var(--paper-soft);
    opacity: 0.75;
    margin-bottom: 18px;
  }
  .hero h1 {
    color: var(--paper);
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    max-width: 15ch;
  }
  .hero h1 em {
    font-style: italic;
    color: #E4A084;
  }
  .hero p.lead {
    margin-top: 22px;
    font-size: 1.12rem;
    max-width: 46ch;
    color: var(--paper-soft);
  }
  .hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 13px 24px;
    border-radius: var(--radius);
    transition: transform 0.12s ease, background 0.15s ease;
  }
  .btn-primary {
    background: var(--clay);
    color: var(--paper);
  }
  .btn-primary:hover { background: var(--clay-deep); }
  .btn-ghost {
    border: 1px solid var(--line-on-dark);
    color: var(--paper);
  }
  .btn-ghost:hover { border-color: var(--paper); }
  .btn-ghost-light {
    border: 1px solid var(--line);
    color: var(--pine-deep);
  }
  .btn-ghost-light:hover { border-color: var(--pine-deep); }

  .clay-figure {
    position: relative;
    height: 320px;
  }
  .clay-figure svg { width: 100%; height: 100%; }

  #clay-disc {
    offset-path: path('M 20 260 C 90 40, 220 20, 300 130');
    offset-rotate: 0deg;
    animation: fly 2.6s cubic-bezier(.4,0,.2,1) 0.4s 1 both;
  }
  @keyframes fly {
    from { offset-distance: 0%; opacity: 0; }
    5% { opacity: 1; }
    to { offset-distance: 100%; opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    #clay-disc { animation: none; offset-distance: 100%; }
  }

  .trajectory-strip {
    border-top: 1px solid var(--line-on-dark);
    margin-top: 56px;
    padding: 18px 32px;
  }
  .trajectory-strip .wrap { display:flex; justify-content:center; }

  /* ---------- Divider motif ---------- */
  .arc-divider {
    display: flex;
    justify-content: center;
    padding: 6px 0 46px;
  }
  .arc-divider svg { width: 120px; height: 28px; }

  /* ---------- Section basics ---------- */
  section { padding: 84px 0 0; }
  .section-head {
    max-width: 62ch;
    margin-bottom: 46px;
  }
  .section-head .kicker {
    color: var(--clay);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  .section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
  }
  .section-head p {
    margin-top: 16px;
    color: var(--pine-mid);
    font-size: 1.05rem;
  }

  /* ---------- Udfordring ---------- */
  .challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 20px;
  }
  .challenge-grid p { color: var(--pine); }
  .challenge-grid .fact {
    border-left: 3px solid var(--clay);
    padding-left: 20px;
  }
  .fact .num {
    font-family: 'Fraunces', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--pine-deep);
    display: block;
  }
  .fact .num-label {
    color: var(--pine-mid);
    font-size: 0.95rem;
  }

  /* ---------- Forløbet (steps) ---------- */
  .steps-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .steps-table tr {
    border-top: 1px solid var(--line);
  }
  .steps-table tr:last-child {
    border-bottom: 1px solid var(--line);
  }
  .steps-table td {
    padding: 28px 0;
    vertical-align: top;
  }
  .steps-table td.step-num {
    width: 76px;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--clay);
    font-weight: 500;
    padding-right: 20px;
  }
  .steps-table td.step-body h3 {
    font-size: 1.18rem;
    margin-bottom: 6px;
  }
  .steps-table td.step-body p {
    margin: 0;
    color: var(--pine-mid);
  }

  /* ---------- Virtuel skydebane ---------- */
  .virtual-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clay);
    background: rgba(178,74,46,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
  }
  .virtual-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
    padding-bottom: 20px;
  }
  .virtual-diagram {
    background: var(--paper-soft);
    border-radius: var(--radius);
    padding: 28px;
  }
  .virtual-diagram svg { width: 100%; height: auto; }
  .virtual-copy p { color: var(--pine); margin: 0 0 20px; }
  .virtual-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
  }
  .virtual-list li {
    display: flex;
    gap: 12px;
    color: var(--pine);
    font-size: 0.98rem;
  }
  .virtual-list li::before {
    content: "";
    width: 6px; height: 6px;
    margin-top: 8px;
    background: var(--clay);
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ---------- Instruktør ---------- */
  .instructor {
    background: var(--paper-soft);
    padding: 56px;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 44px;
    align-items: center;
  }
  .portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--pine-mid);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .portrait svg { width: 84px; height: 84px; }
  .instructor h3 { font-size: 1.3rem; margin-bottom: 8px; }
  .instructor .role { color: var(--clay); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
  .instructor p { color: var(--pine); margin: 0 0 10px; }
  .credentials {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 0.92rem;
    color: var(--pine-mid);
  }
  .credentials li { display: flex; align-items: center; gap: 8px; }
  .credentials li::before {
    content: "";
    width: 5px; height: 5px;
    background: var(--clay);
    border-radius: 50%;
    display: inline-block;
  }

  /* ---------- Priser ---------- */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .price-card {
    border: 1px solid var(--line);
    padding: 32px 28px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
  }
  .price-card.highlight {
    border-color: var(--clay);
    background: var(--pine-deep);
    color: var(--paper);
  }
  .price-card.highlight .price-title,
  .price-card.highlight .price-desc { color: var(--paper-soft); }
  .price-card.highlight .price-amount { color: var(--paper); }
  .price-tag {
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clay);
    background: rgba(178,74,46,0.12);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
  }
  .price-card.highlight .price-tag {
    background: rgba(238,232,217,0.15);
    color: var(--paper);
  }
  .price-title { font-weight: 600; font-size: 1.05rem; color: var(--pine-deep); }
  .price-amount {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 14px 0 4px;
    color: var(--pine-deep);
  }
  .price-amount small { font-size: 0.95rem; font-weight: 400; color: var(--pine-mid); }
  .price-desc { color: var(--pine-mid); font-size: 0.95rem; margin: 8px 0 22px; flex-grow: 1; }
  .price-card .btn { text-align: center; }

  .practical {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--pine-mid);
    font-size: 0.98rem;
    padding-bottom: 10px;
  }
  .practical div strong { display:block; color: var(--pine-deep); margin-bottom: 4px; }

  /* ---------- Kontakt ---------- */
  .contact-section {
    background: var(--pine-deep);
    color: var(--paper);
    padding-bottom: 90px;
    margin-top: 90px;
  }
  .contact-section .section-head h2 { color: var(--paper); }
  .contact-section .section-head p { color: var(--paper-soft); }
  .contact-section .kicker { color: #E4A084; }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
  .contact-info dl {
    margin: 0;
  }
  .contact-info dt {
    font-size: 0.85rem;
    color: #E4A084;
    font-weight: 600;
    margin-top: 22px;
  }
  .contact-info dt:first-child { margin-top: 0; }
  .contact-info dd {
    margin: 4px 0 0;
    font-size: 1.05rem;
    color: var(--paper);
  }

  form {
    display: grid;
    gap: 18px;
  }
  .field { display: flex; flex-direction: column; gap: 7px; }
  label { font-size: 0.9rem; color: var(--paper-soft); }
  input, textarea {
    background: rgba(238,232,217,0.06);
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--paper);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
  }
  input::placeholder, textarea::placeholder { color: rgba(238,232,217,0.4); }
  textarea { resize: vertical; min-height: 110px; }
  input:focus, textarea:focus { border-color: var(--clay); }

  form .btn-primary {
    justify-self: start;
    border: none;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
  }

  .form-note {
    font-size: 0.85rem;
    color: var(--paper-soft);
    opacity: 0.75;
  }
  .confirm-msg {
    display: none;
    background: rgba(178,74,46,0.15);
    border: 1px solid var(--clay);
    padding: 16px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
  }
  .confirm-msg.show { display: block; }

  /* ---------- Footer ---------- */
  footer {
    background: var(--pine-deep);
    color: var(--paper-soft);
    border-top: 1px solid var(--line-on-dark);
    padding: 30px 0;
    font-size: 0.88rem;
  }
  footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 860px) {
    nav.primary-nav { display: none; }
    .menu-toggle { display: block; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
    .clay-figure { height: 200px; order: -1; }
    .challenge-grid, .pricing-grid, .contact-grid, .virtual-grid { grid-template-columns: 1fr; }
    .instructor { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
    .instructor .credentials { justify-content: center; }
    .portrait { margin: 0 auto; }
    section { padding-top: 60px; }
    .wrap, .header-row { padding-left: 22px; padding-right: 22px; }
  }
  @media (max-width: 520px) {
    .steps-table td.step-num { width: 40px; font-size: 1.2rem; }
    .practical { gap: 24px; }
  }
