/* ==========================================================================
   Nesttuntorget Fysioterapi & Manuellterapi — shared stylesheet (design v2)
   ========================================================================== */

:root {
  --color-primary: #0f5c50;
  --color-primary-dark: #0a3a32;
  --color-accent: #1f9a82;
  --color-bg: #faf6f0;
  --color-bg-alt: #f1e7da;
  --color-card: #ffffff;
  --color-text: #262220;
  --color-text-light: #6b6259;
  --color-border: #e6dcce;

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;

  --max-width: 1120px;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(15, 92, 80, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
}

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

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 10px;
}

/* ---- Header / nav ---- */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* ---- Hero ---- */
.hero {
  background: var(--color-bg-alt);
  padding: 64px 0 56px;
}

/* Wide variant: full-width text, photo recedes into the background instead of
   sitting in its own column — gives the headline room to stay on 1–2 lines. */
.hero--wide {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero--wide .container {
  position: relative;
  z-index: 1;
}

.hero--wide .hero-text {
  max-width: 760px;
}

.hero--wide h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 820px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  mask-image: linear-gradient(to left, black 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to left, black 0%, transparent 60%);
}

.hero h1 .amp {
  font-family: var(--font-main);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin: 0 0 12px;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 0 28px;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 380px;
}

.hero-image {
  flex: 1 1 320px;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 22px;
  right: -22px;
  bottom: -22px;
  left: 22px;
  background: var(--color-accent);
  opacity: 0.45;
  border-radius: var(--radius);
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  box-shadow: var(--shadow);
}

.trust-badge .check {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* ---- Generic section ---- */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--color-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 0 32px;
}

/* ---- Om oss / intro text block ---- */
.intro-block p {
  max-width: 720px;
  color: var(--color-text-light);
}

/* ---- Helfo info box ---- */
.helfo-box {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.helfo-box img {
  width: 130px;
  flex-shrink: 0;
}

.helfo-box p {
  margin: 0;
  color: var(--color-text-light);
}

@media (max-width: 640px) {
  .helfo-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .helfo-box img {
    width: 110px;
  }
}

/* ---- Vi tilbyr cards ---- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.offer-card .icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: inline-block;
}

.offer-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.offer-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  background: var(--color-bg-alt);
  text-align: center;
  padding: 12px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Therapist cards (Våre fysioterapeuter) ---- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.staff-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.staff-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.staff-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.staff-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.staff-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.staff-contact li {
  margin-bottom: 4px;
}

.staff-card p.bio {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---- Spørsmål (FAQ) ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.15rem;
}

.faq-item p {
  margin: 0;
  color: var(--color-text-light);
}

/* ---- Contact grid + map (Slik finner du oss) ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: #ede4d8;
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #cbbfae;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-col {
  min-width: 200px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #9c8f7c;
}

/* ---- Placeholder text marker ---- */
.placeholder {
  color: var(--color-accent);
  font-style: italic;
}
