/* Kun index.php */
/* GLOBALT BAGGRUNDSBILLEDE TIL FORSIDEN */
body.index-page {
 /* background: linear-gradient(to bottom, rgba(255,255,255,0.75), rgba(255,255,255,0.70)), url('/assets/img/hero-1920.webp') center/cover no-repeat fixed; */
 background: var(--green);
}


.layout{
  display:grid;
  grid-template-columns: 220px 1fr;  /* venstre menu + indhold */
  gap: 0;
  min-height: calc(100dvh - var(--navH));
}

h1 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  white-space: nowrap;      /* Én linje på brede skærme */
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Når skærmen er for lille */
@media (max-width: 600px) {
  h1 {
    white-space: normal;    /* Tillad linjeskift */
    text-align: center;     /* Ser pænere ud på mobil */
    font-size: clamp(20px, 5vw, 26px);
  }
}

/* VENSTRE SIDEBANE */
.side{
  position:relative;
  overflow:hidden;
  background:
    /* svag base */
    linear-gradient(to bottom, color-mix(in oklch, var(--green) 30%, transparent), transparent 40%),
    var(--bg);
}

/* “Yin-yang” snoning – vi bruger en gentaget SVG som bånd */
.side::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='120' height='240' viewBox='0 0 120 240'>\
        <defs>\
          <radialGradient id='g1' cx='50%' cy='30%' r='40%'>\
            <stop offset='0%' stop-color='%23CBE2D6'/>\
            <stop offset='100%' stop-color='transparent'/>\
          </radialGradient>\
          <radialGradient id='g2' cx='50%' cy='70%' r='40%'>\
            <stop offset='0%' stop-color='%23E8E6DF'/>\
            <stop offset='100%' stop-color='transparent'/>\
          </radialGradient>\
        </defs>\
        <rect width='120' height='240' fill='none'/>\
        <circle cx='60' cy='60' r='42' fill='url(%23g1)'/>\
        <circle cx='60' cy='180' r='42' fill='url(%23g2)'/>\
        <path d='M10,120 C40,30 80,210 110,120' fill='none' stroke='%235F5144' stroke-opacity='.12' stroke-width='6'/>\
      </svg>");
  background-repeat: repeat-y;
  background-size: 120px 240px;
  background-position: left center;
  opacity:.9;
  pointer-events:none;
}

/* Menulinks der flytter sig lidt mod venstre ned ad siden */
.snake-menu{
  position:relative;
  padding: 26px 18px 26px 40px;
  display:grid; gap: 10px;
}
.snake-menu a{
  display:block;
  background:#fff;
  border:1px solid var(--gray);
  border-radius:14px;
  padding:10px 12px;
  box-shadow:var(--shadow);
  transform: translateX(calc(var(--shift, 0%)* -1));
  transition: transform .2s ease, background-color .15s ease;
  
}

.snake-menu{ justify-items: start; }      /* så elementernes egen bredde respekteres */
.snake-menu a{ inline-size: 160px; }      /* = width: 220px; */

.snake-menu a:hover{ background: color-mix(in oklch, white 95%, var(--green)); }

/* HØJRE LÆRRED */
.stage{ display:grid; align-items:start; }
.blank{ padding: 32px; }

/* Responsiv */
@media (max-width: 980px){
  .layout{ grid-template-columns: 260px 1fr; }
}
@media (max-width: 720px){
  .layout{ grid-template-columns: 1fr; }
  .side{ min-height: 380px; }
  .snake-menu a{ transform:none; }
}

/* --- SVÆVENDE BOOK-KNAP (desktop basis) --- */
.floating-book {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 14px;
  border:2px solid var(--gray);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  text-decoration: none;
  font-size: 1rem;
  z-index: 2000;
  transition: all .25s ease;
}

/* --- SVÆVENDE TELEFON-KNAP (desktop basis) --- */
.floating-phone {
  position: fixed;
  right: 160px;          /* Ligger til venstre for Book */
  bottom: 30px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 14px;
  border:2px solid var(--gray);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  text-decoration: none;
  font-size: 1rem;
  z-index: 1999;
  transition: all .25s ease;
}

/* Hover (desktop) */
.floating-book:hover,
.floating-phone:hover {
  transform: translateY(-3px);
  filter: brightness(.92);
}

/* --- MOBIL: Ens knapper på små skærme --- */
@media (max-width: 640px) {

  .floating-book,
  .floating-phone {
    bottom: 14px;

    background: var(--red);
    color: #fff;
    font-weight: 600;

    padding: 12px 18px;     /* ENS på mobil */
    font-size: 0.95rem;     /* ENS */
    border: 2px solid var(--gray);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);

    display: inline-flex;
    align-items: center;
  }

  .floating-book {
    right: 14px;
  }

  .floating-phone {
    right: 120px;
  }
}


.treatments-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.t-card {
  display: flex;
  flex-direction: column;
  gap: 6px; /* mellem icon, h3, subtekst */
  padding-bottom: 10px;
}

.t-card h3 {
  margin-top: 6px;
}

.t-card .sub {
  margin-top: auto;  /* skubber bunden ned så alle bliver ens */
}

/* HERO FOTO OVER INTRO */
.hero-photo {
  margin-top: 20px; 
  margin-bottom: 40px; /* giver luft til intro */
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;    /* rundede hjørner */
}

.hero-container img {
  width: 100%;
  height: 450px;          /* perfekt start-højde – kan justeres */
  object-fit: cover;      /* gør billedet elegant */
  display: block;
}

/* Mobil-version */
@media (max-width: 768px) {
  .hero-container img {
    height: 240px;        /* lidt lavere på mobil */
  }
}

.service-list {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-box {
  display: block;
  background: var(--green);
  padding: 24px 24px;
  border-radius: 16px;
  border: 2px solid rgba(0,0,0,0.08);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .20s ease, box-shadow .20s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.service-box h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: var(--brown);
}

.service-box p {
  margin: 0;
  font-size: 1rem;
}

/* HERO-TOP */
.front-main {
  padding-bottom: 80px;
}

.front-hero {
  padding: 80px 20px 40px;
}

.front-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.front-hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 10px;
  color: var(--brown);
}

.front-hero-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* SMÅ KASSER ØVERST (TEASER-KORT) */
.front-teaser-section {
  padding: 10px 20px 40px;
}

.front-teaser-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.front-teaser-card {
  display: block;
  background: var(--green);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.front-teaser-card h2 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  color: var(--brown);
}

.front-teaser-card p {
  margin: 0;
  font-size: 0.95rem;
}

.front-teaser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  background: #d6eadf; /* en anelse lysere end var(--green) */
}

/* SEKTIONER MED MEDIUM BESKRIVELSER */
.front-section {
  padding: 40px 20px;
}

.front-section.alt {
  background: rgba(255,255,255,0.7);
}

.front-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.front-section h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--brown);
}

.front-section p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.front-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: filter .18s ease, transform .18s ease;
}

.front-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* FLYDENDE KNAPPER NEDERST HØJRE */
.front-floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.fab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  color: #fff;
}

.fab span {
  white-space: nowrap;
}

/* Evt. forskellige farver */
.fab-call {
  background: #3b8f5b; /* grønlig */
}

.fab-mail {
  background: var(--brown);
}

.fab:hover {
  filter: brightness(0.95);
}

/* Mobil: lidt mindre margin fra bund/højre */
@media (max-width: 600px) {
  .front-floating-actions {
    right: 10px;
    bottom: 10px;
  }

  .front-hero {
    padding-top: 60px;
  }
}

/* =========================================
   3 behandlingstyper – index.php
   ========================================= */

.treatments {
  max-width: var(--shell-max-width);
  margin: 35px auto;
  padding: 0 var(--shell-x-pad);
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Gør hele boksen til et link */
.treatment-box {
  display: flex;
  flex-direction: column;

  background: var(--bg);
  border: 2px solid rgba(0,0,0,0.08);
  border-color: var(--red);
  border-radius: 14px;
  padding: 18px 28px 28px;   /* TOP ned fra 28 → 18 */
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);

  text-decoration: none;    /* fjern link-stil */
  color: var(--text);

  transition: background 0.15s ease, box-shadow 0.15s ease;
  height: 100%;             /* Ens højde */
}

/* Overskrift */
.treatment-box h3 {
  color: var(--brown);
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;       /* tidligere 12px → lidt strammere */

}

/* Tekst */
.treatment-box p {
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
  margin: 0;
}

/* Meget blid hover */
.treatment-box:hover {
  background: var(--gray);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.intro-center {
  text-align: center;
  margin-bottom: 30px;
}

/* Bokse skal være venstrestillet som før */
.treatments {
  max-width: var(--shell-max-width);
  margin: 40px auto 60px;
  padding: 0 var(--shell-x-pad);
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.treatment-box {
  text-align: left; /* ekstra sikkerhed */
}
.about-photo {
  float: right;
  width: 3000px;          /* lidt større */
  max-width: 40%;        /* mere fleksibelt */
  margin: -2.5rem 0 1.0rem 4rem; /* skub længere ind mod midten */
  border-radius: 14px;
  object-fit: cover;
}

/* Mobil: pænt centreret */
@media (max-width: 720px) {
  .about-photo {
    float: none;
    display: block;
    max-width: 75%;
    margin: 0 auto 1.2rem auto;
  }
}
