/* Fridens Hälsa — designsystem. Tokens länkar till Blocksy Customizer-paletten. */
:root{
  --color-primary: var(--theme-palette-color-1);
  --color-primary-dark: var(--theme-palette-color-2);
  --color-text: var(--theme-palette-color-3);
  --color-heading: var(--theme-palette-color-4);
  --color-border: var(--theme-palette-color-5);
  --color-surface-alt: var(--theme-palette-color-6);
  --color-surface: var(--theme-palette-color-7);
  --color-text-inverse: hsl(45 33% 98%);
  --color-accent: hsl(20 49% 53%);
  --color-accent-hover: hsl(19 47% 45%);
  --color-gold: hsl(39 47% 60%);
  --color-muted: hsl(60 5% 40%);
  --spacing-xs: .5rem; --spacing-sm: 1rem; --spacing-md: 1.75rem; --spacing-lg: 3.5rem; --spacing-xl: 4.5rem;
  --font-sm: .875rem; --font-base: 1.0625rem; --font-lg: 1.25rem; --font-xl: 1.6rem;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px;
  --shadow-sm: 0 1px 3px hsl(139 21% 26% / .08);
  --shadow-md: 0 6px 24px hsl(139 21% 26% / .10);
  --grid-min: 16rem; --container-lg: 72rem;
  --font-serif: 'Newsreader', Georgia, serif;
}

/* ===== Sektioner ===== */
.fh-section{padding:var(--spacing-xl) var(--spacing-md)}
.fh-section--tight{padding:var(--spacing-lg) var(--spacing-md)}
.fh-section--sand{background:var(--color-surface-alt)}
.fh-section--forest{background:var(--color-primary-dark);color:var(--color-text-inverse)}
.fh-section--forest h2,.fh-section--forest h3{color:var(--color-text-inverse)}
.fh-center{text-align:center}

/* ===== Typografi-hjälpare ===== */
.fh-overline{font-size:var(--font-sm);letter-spacing:.14em;text-transform:uppercase;color:var(--color-accent);font-weight:700;margin:0 0 var(--spacing-sm)}
.fh-section--forest .fh-overline{color:var(--color-gold)}
.fh-lede{font-size:var(--font-lg);line-height:1.65;color:var(--color-muted);max-width:46rem;margin:var(--spacing-sm) 0 0}
.fh-section--forest .fh-lede{color:hsl(40 32% 89%)}
.fh-center .fh-lede{margin-inline:auto}
h1 .fh-italic, h2 .fh-italic{font-style:italic;color:var(--color-primary)}
.fh-note{font-size:var(--font-sm);color:var(--color-muted)}

/* ===== Knappar ===== */
.fh-btn{display:inline-block;background:var(--color-accent);color:#fff;padding:.85rem 1.75rem;border-radius:var(--radius-sm);font-weight:700;text-decoration:none;transition:background .2s}
.fh-btn:hover{background:var(--color-accent-hover);color:#fff}
.fh-btn--ghost{background:transparent;color:var(--color-primary-dark);box-shadow:inset 0 0 0 2px var(--color-primary)}
.fh-btn--ghost:hover{background:var(--color-primary);color:#fff}
.fh-section--forest .fh-btn--ghost{color:var(--color-text-inverse);box-shadow:inset 0 0 0 2px var(--color-gold)}
.fh-btn-row{display:flex;gap:var(--spacing-sm);flex-wrap:wrap;margin-top:var(--spacing-md)}
.fh-center .fh-btn-row{justify-content:center}

/* ===== Hero ===== */
.fh-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:var(--spacing-lg);align-items:center}
.fh-hero h1{margin:0 0 var(--spacing-sm)}
.fh-hero__media{display:grid;grid-template-columns:2fr 1fr;gap:var(--spacing-sm)}
.fh-hero__media figure{margin:0}
.fh-hero__media img{border-radius:var(--radius-lg);object-fit:cover;width:100%;height:100%;aspect-ratio:3/4}
.fh-hero__side{display:grid;gap:var(--spacing-sm);grid-template-rows:1fr 1fr;height:100%;min-height:0}
.fh-trust{display:flex;gap:var(--spacing-md);flex-wrap:wrap;margin-top:var(--spacing-md);font-size:var(--font-sm);color:var(--color-muted)}
.fh-stars{color:var(--color-gold);letter-spacing:.1em}

/* ===== Grid & kort ===== */
.fh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--grid-min),1fr));gap:var(--spacing-md);margin-top:var(--spacing-lg)}
.fh-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:var(--spacing-md);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:.6rem}
.fh-card:hover{box-shadow:var(--shadow-md)}
.fh-card h3{margin:0}
.fh-card p{margin:0;color:var(--color-muted)}
.fh-card__tag{font-size:var(--font-sm);color:var(--color-accent);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.fh-card__meta{margin-top:auto;font-weight:700;color:var(--color-primary-dark)}
.fh-card__link{color:var(--color-accent);font-weight:700;text-decoration:none}
.fh-card__link:hover{color:var(--color-accent-hover)}
.fh-card img{border-radius:var(--radius-sm);width:100%;height:12rem;object-fit:cover}

/* ===== Prislista ===== */
.fh-price-list{margin-top:var(--spacing-lg);display:grid;gap:0}
.fh-price-row{display:grid;grid-template-columns:1fr auto;gap:var(--spacing-sm);align-items:baseline;padding:var(--spacing-sm) 0;border-bottom:1px solid var(--color-border)}
.fh-price-row h3{margin:0;font-size:var(--font-lg)}
.fh-price-row p{margin:.25rem 0 0;color:var(--color-muted);font-size:var(--font-base)}
.fh-price-row__right{text-align:right;display:grid;gap:.4rem;justify-items:end}
.fh-price{font-weight:700;color:var(--color-primary-dark);white-space:nowrap}

/* ===== Split (bild + text) ===== */
.fh-split{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-lg);align-items:center;margin-top:var(--spacing-lg)}
.fh-split figure{margin:0}
.fh-split img{border-radius:var(--radius-lg);width:100%;object-fit:cover;aspect-ratio:4/3}

/* ===== FAQ ===== */
.fh-faq{margin-top:var(--spacing-lg);max-width:46rem}
.fh-faq details{border-bottom:1px solid var(--color-border);padding:var(--spacing-sm) 0}
.fh-faq summary{font-weight:700;font-size:var(--font-lg);cursor:pointer;color:var(--color-heading)}
.fh-faq p{color:var(--color-muted)}

/* ===== Tabell / schema ===== */
.fh-table{width:100%;border-collapse:collapse;margin-top:var(--spacing-md)}
.fh-table th{text-align:left;font-size:var(--font-sm);text-transform:uppercase;letter-spacing:.08em;color:var(--color-muted);padding:.6rem .8rem;border-bottom:2px solid var(--color-border)}
.fh-table td{padding:.8rem;border-bottom:1px solid var(--color-border)}

/* ===== Statistik ===== */
.fh-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:var(--spacing-md);margin-top:var(--spacing-lg);text-align:center}
.fh-stat strong{display:block;font-family:var(--font-serif);font-size:2.6rem;color:var(--color-primary);line-height:1.1}
.fh-stat span{color:var(--color-muted)}
.fh-section--forest .fh-stat strong{color:var(--color-gold)}
.fh-section--forest .fh-stat span{color:hsl(40 32% 89%)}

/* ===== Team ===== */
.fh-team-card{text-align:center}
.fh-team-card img{height:14rem}

/* ===== Citat ===== */
.fh-quote{max-width:40rem;margin:0 auto;text-align:center}
.fh-quote blockquote{font-family:var(--font-serif);font-style:italic;font-size:var(--font-xl);line-height:1.5;margin:var(--spacing-sm) 0;color:var(--color-heading)}

/* ===== Kontaktkort ===== */
.fh-place-card address{font-style:normal;color:var(--color-muted);line-height:1.7}

/* ===== Checklista ===== */
.fh-check-list{list-style:none;padding:0;margin:var(--spacing-md) 0 0;display:grid;gap:.6rem}
.fh-check-list li{padding-left:1.75rem;position:relative}
.fh-check-list li::before{content:'';position:absolute;left:0;top:.35rem;width:1rem;height:1rem;border-radius:50%;background:var(--color-primary);mask:none;clip-path:polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)}

/* ===== Responsivt ===== */
@media (max-width: 960px){
  .fh-hero,.fh-split{grid-template-columns:1fr}
  .fh-section{padding:var(--spacing-lg) var(--spacing-sm)}
}
@media (max-width: 600px){
  .fh-price-row{grid-template-columns:1fr}
  .fh-price-row__right{justify-items:start;text-align:left}
  .fh-hero__media{grid-template-columns:1fr 1fr}
}

/* ===== Justeringar v2 ===== */
.fh-pagehero{text-align:center}
.fh-pagehero .fh-lede{margin-inline:auto}
.fh-pagehero .fh-btn-row{justify-content:center}
.fh-steps{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:var(--spacing-md);box-shadow:var(--shadow-sm);display:grid;gap:var(--spacing-sm)}
.fh-steps h3{margin:0}
.fh-step{display:grid;grid-template-columns:2.4rem 1fr;gap:var(--spacing-sm);align-items:start}
.fh-step__num{width:2.2rem;height:2.2rem;border-radius:50%;background:var(--color-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:var(--font-serif)}
.fh-step p{margin:0;color:var(--color-muted)}
.fh-step strong{color:var(--color-heading)}

.fh-hero__side figure{display:contents}
.fh-hero__side img{aspect-ratio:auto;height:100%;min-height:0;object-fit:cover}
.fh-hero__media > figure:first-child img{height:auto}

.fh-hero__media{align-items:stretch}
@media (max-width:600px){.fh-hero__side{grid-template-rows:none;grid-template-columns:1fr 1fr;height:auto}.fh-hero__side img{aspect-ratio:1/1;height:auto}}

/* ===== Sidbredd: sektioner fullbredd, innehåll begränsat ===== */
[data-unbk-section] > [data-unbk-container]{width:100%;max-width:var(--container-lg);margin-inline:auto}

/* ===== Header: sticky + frostat glas + meny-CTA ===== */
#header{position:sticky;top:0;z-index:80}
#header [data-row]{background:hsl(45 33% 98% / .88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid hsl(40 30% 88%)}
.admin-bar #header{top:32px}
#header .custom-logo{max-height:44px;width:auto}
li.fh-menu-cta > a{background:var(--color-accent);color:#fff !important;border-radius:var(--radius-sm);padding:.55rem 1.2rem !important;font-weight:700}
li.fh-menu-cta > a:hover{background:var(--color-accent-hover)}

/* ===== Footer ===== */
.fh-footer{background:var(--color-primary-dark);color:hsl(100 12% 78%)}
.fh-footer a{color:hsl(100 12% 78%)}
.fh-footer a:hover{color:#fff}
.fh-footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:var(--spacing-lg);padding:var(--spacing-lg) 0 var(--spacing-md)}
.fh-footer__brand{font-family:var(--font-serif);font-size:1.3rem;color:hsl(45 33% 98%)}
.fh-footer__about{color:hsl(100 12% 68%);max-width:34ch}
.fh-footer h4{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:hsl(110 13% 61%);margin:0 0 1rem;font-weight:700}
.fh-footer nav,.fh-footer address{display:grid;gap:.65rem;font-style:normal;font-size:.92rem}
.fh-footer__gold{display:inline-block;background:var(--color-gold);color:var(--color-primary-dark) !important;font-weight:700;font-size:.85rem;padding:.55rem 1.1rem;border-radius:999px;justify-self:start}
.fh-footer__bottom{border-top:1px solid hsl(135 15% 34%);padding:1.1rem 0;font-size:.82rem;color:hsl(110 13% 61%);display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
@media (max-width:900px){.fh-footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.fh-footer__grid{grid-template-columns:1fr}}

/* ===== Mobil sticky-CTA ===== */
.fh-sticky-cta{display:none}
@media (max-width:700px){
  .fh-sticky-cta{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:90;gap:1px;box-shadow:0 -4px 16px hsl(139 21% 26% / .18)}
  .fh-sticky-cta a{flex:1;text-align:center;padding:.95rem .5rem;font-weight:700;color:#fff;background:var(--color-accent)}
  .fh-sticky-cta a:last-child{background:var(--color-primary-dark)}
  body{padding-bottom:3.2rem}
}

/* ===== Team-avatarer & faktachips ===== */
.fh-avatar{width:4.2rem;height:4.2rem;border-radius:50%;background:var(--color-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:1.4rem;margin:0 auto .35rem}
.fh-facts{display:flex;gap:var(--spacing-sm);flex-wrap:wrap;margin:var(--spacing-sm) 0}
.fh-fact{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:.6rem .9rem;font-size:.85rem}
.fh-fact strong{display:block;color:var(--color-heading);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}
/* Header-finlir */
#header .site-title-container{display:none}
li.fh-menu-cta{display:flex;align-items:center}
li.fh-menu-cta > a{margin-block:auto;line-height:1.2;height:auto !important}

/* Blocksy footer-wrapper: matcha skogsgrönt, ingen ljus rand */
footer:has(.fh-footer){background:var(--color-primary-dark);padding:0;margin:0}
footer:has(.fh-footer) > .ct-container, footer:has(.fh-footer) [data-row]{background:transparent}
.fh-footer{margin:0}
