/* ----------------------------------
   GLOBAL STYLE – Sørsia Fysioterapi
-----------------------------------*/

/* COLOR SYSTEM (Blue + Green clinic theme) */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;

  --green: #0f766e;
  --green-light: #ccfbf1;

  --text: #1e293b;        /* mørk blå-grå */
  --muted: #64748b;       /* grå for paragraf */
  --bg: #f8fafc;          /* lys klinikk-bakgrunn */
  --white: #ffffff;

  --border: #e2e8f0;

  --radius: 12px;
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.06);

  --max-width: 1150px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* BASIC ELEMENTS */
a {
  color: var(--blue);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--blue-dark);
}

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SECTION SPACING */
.section-padding {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.4rem;
  color: var(--text);
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--blue-light);
}

/* GRID SYSTEM */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* CARDS */
.service-card,
.therapist-card,
.feature-item,
.value-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.service-card h3,
.therapist-card h3 {
  margin-bottom: 0.5rem;
}

/* HERO */
.hero {
  padding: 4rem 0;
  background: linear-gradient(to right, var(--blue-light), var(--green-light));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 320px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*om oss bilde*/

.about-image{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 320px;        /* samme høyde som hero */
  overflow: hidden;     /* viktig for rundinger */
}

.about-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;    /* viktig */
  display: block;
   filter: brightness(1.05) contrast(1.05);
}

/*front about image*/
.front-about-image {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;          /* viktig for runde hjørner */
  max-height: 380px;
}

.front-about-image img {
  width: 100%;
  height: 100%;
  display: block;            /* fjerner rare mellomrom */
  object-fit: cover;         /* gjør at det ser proft ut */
}


/* PAGE HERO */
.page-hero {
  padding: 4rem 0;
  background: var(--blue-light);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* ABOUT PLACEHOLDER */
.about-placeholder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
}

/* CHECKLIST */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: var(--blue-light);

}
/* HERO USP-linje */
.hero-usps {
  display: flex;
  gap: 2rem;
  margin-top: 1.6rem;
   margin-bottom: 1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-usps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.hero-usps .icon {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  stroke-width: 2;
}
/* Global image safety */
img {
  max-width: 100%;
  height: auto;
  display: block;
}



/* =========================================================
   MOBIL – GLOBAL TILPASNING
   ========================================================= */
@media (max-width: 768px) {

  /* ---------- CONTAINER ---------- */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* ---------- TYPOGRAFI ---------- */
  h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* ---------- SEKSJONER ---------- */
  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  /* ---------- GRID ---------- */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  /* ---------- HERO ---------- */
  .hero {
    padding: 4rem 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-usps {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  /* ---------- KORT ---------- */
  .service-card,
  .therapist-card,
  .feature-item,
  .value-item {
    padding: 1.6rem;
  }

  /* ---------- TERAPEUTKORT ---------- */
  .therapist-card {
    text-align: left;
  }

  .therapist-card .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .phone-link {
    font-size: 1.1rem;
  }

  /* ---------- KNAPPER ---------- */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
  }

  /* ---------- PROFILSIDE ---------- */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .profile-img {
    max-width: 280px;
    margin: 0 auto;
  }

  .profile-content {
    padding: 3rem 1rem;
  }

  .profile-content h2 {
    text-align: left;
  }

  /* ---------- KONTAKT ---------- */
  .contact-card {
    padding: 2.5rem 1.8rem;
  }

  /* ---------- FOOTER ---------- */
  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    margin-top: 2rem;
  }
}

/* =========================================================
   MOBIL – EKSTRA SMÅ SKJERMER
   ========================================================= */
@media (max-width: 480px) {

  h1 {
    font-size: 1.75rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 3.5rem 0;
  }
}
