/* ============================================================
   SalonMalene — Nordisk salon
   Palette: tåge-hvid · grangrøn · messing/honning
   Type: Fraunces (display) + Hanken Grotesk (brød)
   ============================================================ */

:root {
  --fog:        #ECEEE8;  /* baggrund — kølig, blød paper */
  --cream:      #F7F6F1;  /* kort/flader — en anelse varmere */
  --spruce:     #263A33;  /* dyb grangrøn — blæk & mørke sektioner */
  --spruce-2:   #33473F;  /* blødere grøn */
  --sage:       #7E8E82;  /* dæmpet salvie — labels, dæmpet tekst */
  --brass:      #B0823B;  /* varm messing — accent */
  --brass-2:    #C79A54;  /* lysere messing — hover */
  --line:       #D7DAD0;  /* hårfine linjer */

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--spruce);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ---------- Typografi ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--spruce);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 40, "SOFT" 30; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--spruce); color: var(--cream);
  padding: 0.6rem 1rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.72em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brass-2); outline-offset: 3px; }

.btn--solid  { background: var(--spruce); color: var(--cream); }
.btn--solid:hover { background: var(--spruce-2); }
.btn--ghost  { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.btn--ghost:hover { background: var(--spruce); color: var(--cream); }
.btn--outline { background: transparent; color: var(--spruce); border-color: var(--line); }
.btn--outline:hover { border-color: var(--spruce); }
.btn--lg { padding: 0.85em 1.7em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; margin-top: 1.25rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--fog) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 40, "SOFT" 20;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  color: var(--spruce);
}
.wordmark span { color: var(--brass); }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 0.98rem;
  color: var(--spruce-2); position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--brass);
  transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.topbar__actions { display: flex; align-items: center; gap: 1.25rem; }
.link-phone { text-decoration: none; font-weight: 600; color: var(--spruce); white-space: nowrap; }
.link-phone:hover { color: var(--brass); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--spruce);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem clamp(20px, 5vw, 48px) 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}
.mobile-nav a { text-decoration: none; font-weight: 500; padding: 0.6rem 0; color: var(--spruce); }
.mobile-nav .btn { margin-top: 0.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__lead {
  font-size: 1.2rem; color: var(--spruce-2);
  max-width: 30ch; margin: 1.5rem 0 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Signatur — live åben/lukket-status */
.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 1.75rem 0 0;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px;
}
.status__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
}
.status[data-status="open"]   .status__dot { background: #4B8B5C; box-shadow: 0 0 0 4px rgba(75,139,92,.18); }
.status[data-status="closed"] .status__dot { background: #B4553F; box-shadow: 0 0 0 4px rgba(180,85,63,.16); }
.status[data-status="open"]   .status__text { color: #2F6B3E; }
.status[data-status="closed"] .status__text { color: #93402E; }
.status--card { margin: 0; padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* Foto-flader (med elegant fallback hvis billedet mangler) */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--brass) 22%, var(--cream)) 0%, transparent 55%),
    linear-gradient(150deg, var(--spruce-2), var(--spruce));
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 5; }
.photo--portrait { aspect-ratio: 4 / 5; max-width: 420px; }

/* Når billedet mangler: vis en pæn placeholder med caption */
.photo--empty img { display: none; }
.photo--empty::after {
  content: attr(data-caption) " — tilføj foto";
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 1.25rem;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  font-size: 0.85rem; letter-spacing: 0.02em;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip {
  background: var(--spruce); color: var(--cream);
}
.strip__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.9rem 1.4rem; padding: 1.1rem 0;
  font-size: 0.95rem; text-align: center;
}
.strip__item { font-weight: 500; }
.strip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass-2); }

/* ============================================================
   YDELSER
   ============================================================ */
.services { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head__lead { font-size: 1.1rem; color: var(--spruce-2); margin: 1rem 0 0; }

.service-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.service-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.service-list li:hover { padding-left: 1rem; }
.service-list__name {
  font-family: var(--font-display); font-size: 1.4rem;
  font-variation-settings: "opsz" 40, "SOFT" 25;
}
.service-list__note { color: var(--sage); font-size: 0.95rem; text-align: right; }

.services__note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  margin: 2.5rem 0 0; color: var(--spruce-2); font-size: 1.02rem;
}

/* ============================================================
   OM MALENE
   ============================================================ */
.about { background: var(--cream); padding: clamp(4rem, 9vw, 7rem) 0; }
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about__figure { display: flex; justify-content: center; }
.about__text p { color: var(--spruce-2); margin: 1.1rem 0 0; max-width: 54ch; }
.about__text h2 { margin-top: 0.5rem; }
.about__sign {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; color: var(--brass) !important; margin-top: 1.5rem !important;
}

/* ============================================================
   BESØG OS
   ============================================================ */
.visit { padding: clamp(4rem, 9vw, 7rem) 0; }
.visit__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.visit__lead { font-size: 1.1rem; color: var(--spruce-2); margin: 1rem 0 2rem; max-width: 42ch; }

.contact { display: grid; gap: 1.25rem; margin: 0 0 2rem; }
.contact dt {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 0.2rem;
}
.contact dd { margin: 0; font-size: 1.1rem; }
.contact a { color: var(--spruce); text-decoration: none; }
.contact a:hover { color: var(--brass); }

.visit__links { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hours-card {
  background: var(--spruce); color: var(--cream);
  border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem);
}
.hours-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.hours-card__head h3 { color: var(--cream); }
.hours-card .status--card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.hours-card .btn--solid { background: var(--brass); color: #22322B; }
.hours-card .btn--solid:hover { background: var(--brass-2); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.75rem; border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 1rem;
}
.hours li:last-child { border-bottom: none; }
.hours__closed { color: color-mix(in srgb, var(--cream) 55%, transparent); }
.hours li.is-today {
  background: rgba(199,154,84,.18);
  border-bottom-color: transparent;
}
.hours li.is-today span:first-child { font-weight: 700; color: var(--brass-2); }

/* ============================================================
   BOOK TID (Timma-embed)
   ============================================================ */
.book { background: var(--cream); padding: clamp(4rem, 9vw, 7rem) 0; }
.book .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.book .section-head__lead a { color: var(--spruce); text-decoration: underline; text-underline-offset: 3px; }
.book .section-head__lead a:hover { color: var(--brass); }
.book__frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 18px 50px -30px rgba(38, 58, 51, 0.4);
}
.book__frame iframe {
  display: block; width: 100%; border: 0;
  min-height: 880px;
}
@media (max-width: 640px) { .book__frame iframe { min-height: 1040px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--spruce); color: var(--cream); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.wordmark--footer { font-size: 1.6rem; color: var(--cream); }
.wordmark--footer span { color: var(--brass-2); }
.footer__meta { margin: 0; color: color-mix(in srgb, var(--cream) 78%, transparent); font-size: 0.95rem; }
.footer__copy { margin: 0; color: color-mix(in srgb, var(--cream) 55%, transparent); font-size: 0.9rem; }

/* ============================================================
   REVEAL-ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav, .topbar__actions { display: none; }
  .nav-toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .photo--hero { aspect-ratio: 16 / 10; }
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; }
  .visit__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .service-list li { flex-direction: column; gap: 0.2rem; }
  .service-list__note { text-align: left; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
