/* ==========================================================================
   Palle Rossil Hansen — Fysiurgisk massage
   Palette and type sampled from the printed A6 flyer.
   ========================================================================== */

/* --- Fonts: self-hosted variable woff2, latin subset (covers æ ø å) ------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/open-sans-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
  --sage:        #8a9b90;   /* flyer background                               */
  --plum:        #3e2936;   /* flyer headline + benefits circle               */
  --plum-deep:   #2e1e28;   /* body text on sage — 5.3:1, clears WCAG AA      */
  --cream:       #f5f2ec;   /* content sections                               */
  --cream-card:  #fffdf9;   /* cards lifted off --cream                       */
  --ink:         #34222d;   /* body text on cream                             */
  --ink-soft:    #5c4a54;   /* secondary text on cream                        */
  --rule:        #ddd6ca;   /* hairlines                                      */

  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
           'Helvetica Neue', Arial, sans-serif;

  --measure: 34rem;   /* comfortable line length for body copy */
  --gutter:  clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(3rem, 7vw, 5rem);
  --radius:  14px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- Shared layout -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section); }
.section--cream { background: var(--cream); }
.section--sage  { background: var(--sage); color: var(--plum-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  color: var(--plum);
  margin-bottom: 0.4em;
}
.section--sage .section-title { color: var(--plum-deep); }

.lede { max-width: var(--measure); }

/* Skip link — keyboard users shouldn't have to tab through the whole hero. */
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  padding: 0.7rem 1.1rem; border-radius: var(--radius);
  background: var(--plum); color: #fff; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; }

:where(a, button):focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--sage :where(a, button):focus-visible { outline-color: var(--plum-deep); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem;                 /* comfortable thumb target on phones */
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--plum);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }

.section--sage .btn { border-color: var(--plum-deep); }
.section--sage .btn--primary { background: var(--plum-deep); }
.section--sage .btn--ghost { color: var(--plum-deep); }
.section--sage .btn--ghost:hover { background: var(--plum-deep); color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--sage);
  color: var(--plum-deep);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero__title {
  font-size: clamp(2.9rem, 1.6rem + 6.4vw, 5.75rem);
  color: var(--plum);
  letter-spacing: -0.015em;
  margin-bottom: 0.15em;
}
.hero__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
}
.hero__text { max-width: 27rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Portrait + the flyer's overlapping plum badge */
.portrait { position: relative; justify-self: center; width: min(100%, 26rem); }
.portrait__img {
  width: 100%; height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 45px rgb(46 30 40 / 0.22);
}

.badge {
  background: var(--plum);
  color: #fff;
  text-align: center;
  font-family: var(--serif);
  line-height: 1.3;
}
.badge ul { display: grid; gap: 0.55rem; }
.badge li { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); }

/* Mobile / tablet: the badge is a card. Four lines of Danish inside a real
   circle at 390px wide either overflows or shrinks the type to unreadable. */
.badge--card {
  margin-top: 1.75rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
}

/* --- Behandlinger --------------------------------------------------------- */
.treatments { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--cream-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  color: var(--plum);
  margin-bottom: 0.6rem;
}
.card p { color: var(--ink-soft); }
.price-list {
  margin-top: auto;
  padding-top: 1.5rem;
  display: grid;
  gap: 0.1rem;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.price-list .dur { color: var(--ink-soft); }
.price-list .amt { font-weight: 600; color: var(--plum); white-space: nowrap; }

.note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* --- Om mig --------------------------------------------------------------- */
.about { background: var(--cream); }
.about__body { max-width: var(--measure); display: grid; gap: 1.1rem; }
.about__body p { color: var(--ink-soft); }

/* --- Kontakt -------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 2.5rem;
}
.contact dl { display: grid; gap: 1.4rem; margin: 0; }
.contact dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.contact dd { margin: 0; font-size: 1.15rem; }
.contact dd a { color: var(--plum-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact dd a:hover { text-decoration-thickness: 2px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.contact__cta {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ink);
}
.contact__cta h3 { font-size: 1.5rem; color: var(--plum); margin-bottom: 0.5rem; }
.contact__cta p { color: var(--ink-soft); }
.contact__cta .btn { border-color: var(--plum); }
.contact__cta .btn--primary { background: var(--plum); color: #fff; }
.contact__cta .btn--ghost { color: var(--plum); }
.contact__cta .btn--ghost:hover { background: var(--plum); color: #fff; }

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--plum);
  color: var(--cream);
  padding-block: 2.5rem;
  font-size: 0.92rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer a { color: inherit; text-underline-offset: 4px; }

/* --- Desktop -------------------------------------------------------------- */
@media (min-width: 48rem) {
  .hero__grid { grid-template-columns: 1fr minmax(0, 26rem); }
  .treatments { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1.1fr 1fr; align-items: start; }

  /* Editorial two-column: heading in the margin, prose beside it. Otherwise a
     34rem measure leaves half a 1440px screen empty. */
  .about__inner {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  .about__inner .section-title { margin-bottom: 0; }
  .about__body { max-width: 38rem; }

  /* Between 48rem and 62rem the card sits full width beneath hero text + portrait. */
  .badge--card { grid-column: 1 / -1; }
}

/* The flyer's signature circle. It only appears once the portrait column has
   actually reached its 26rem cap — below that the four Danish lines wrap far
   enough to burst the circle into an ellipse and overlap the hero text. */
.badge--circle { display: none; }

@media (min-width: 64rem) {
  .badge--card { display: none; }
  .badge--circle {
    position: absolute;
    display: grid;
    place-content: center;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    /* Hugs the portrait here: the text column is only just wide enough. */
    left: -14%;
    bottom: -14%;
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgb(46 30 40 / 0.28);
  }
}

/* Wide screens have room to swing the circle clear of the face, as on the flyer. */
@media (min-width: 75rem) {
  .badge--circle { left: -28%; bottom: -18%; }
}
