/* Logopedklinikken Tromsø – stilark */
:root {
  --blue: #186ea9;
  --blue-dark: #12578a;
  --text: #464646;
  --bg: #fafcfd;
  --border: #dddddd;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Roboto', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 1.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

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

h1, h2, h3, h4, h5 { line-height: 1.3; }
h1, h2 { font-family: var(--serif); color: var(--blue); font-weight: 400; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.15rem; font-weight: 500; }
strong { font-weight: 500; }

.container {
  width: 100%;
  max-width: 1525px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Topp / logo ---------- */
.site-header { background: var(--bg); text-align: center; padding: 10px 0; }
.site-header a { display: inline-block; }
.site-header img { display: block; width: 546px; max-width: 100%; height: auto; margin: 0 auto; }

/* ---------- Meny ---------- */
.nav { background: var(--blue); }
.nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 2px;
  display: block;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.8); color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.nav .nav-mobile-logo { display: none; }

/* ---------- Forside-banner ---------- */
.hero {
  background: #fff url("/images/front-image.jpg") right center / auto 100% no-repeat;
  position: relative;
  min-height: 470px;
  padding: 140px 70px 60px;
  font-family: var(--serif);
}
.hero h2 { font-size: 48px; margin: 0 0 .3em; letter-spacing: 2px; }
.hero p { font-size: 36px; margin: 0; color: var(--text); letter-spacing: 2px; }
.hero p .dot {
  display: inline-block;
  width: .55em; height: .55em;
  border: .12em solid var(--text);
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  margin-right: .3em;
}
.hero p .dot::after {
  content: ""; position: absolute; inset: .1em; border-radius: 50%; background: var(--text);
}

/* ---------- Innhold ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 30px; margin: 40px auto; }
.layout.single { grid-template-columns: minmax(0, 1fr); }

.white { background: var(--white); border: 1px solid var(--border); padding: 50px; }

.entry-title {
  color: var(--blue);
  font-family: var(--serif);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 20px;
  margin-top: 0;
  font-weight: 400;
  font-size: 1.6em;
}
.text-center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }

.alignleft { float: left; margin: 0 20px 20px 0; }

/* Logopeder (forsiden) */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 10px; }
.team figure { margin: 0; text-align: center; }
.team img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; }
.team figcaption { font-weight: 500; font-size: 15px; margin-top: 8px; letter-spacing: 2px; }

/* Logopeder-siden */
.person {
  background: #eceeef;
  border-radius: 4px;
  padding: 1rem;
  margin: 2rem 0 1.5rem;
}
.person img { width: 207px; height: 207px; object-fit: cover; }
.person h2 { margin-top: 0; }
.person hr { border: 0; border-top: 1px solid #ccc; }

hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Sidepanel */
.sidebar .entry-title { text-align: center; font-size: 1.5em; letter-spacing: 3px; }
.sidebar h4 { text-transform: uppercase; margin: 1.5rem 0 .5rem; }
.sidebar h4 a { color: #212121; font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: 1px; text-decoration: none; }

.arrow::after { content: " \2192"; }

/* Kontakt */
.contact-list p { margin: 0; }
.contact-list .who { margin-bottom: 1.2rem; }
.map { position: relative; padding-bottom: 45%; height: 0; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Informasjon-liste */
.post-teaser { display: flex; gap: 20px; align-items: flex-start; }
.post-teaser img { flex: 0 0 105px; }

/* ---------- Bunntekst ---------- */
footer.site-footer { background: var(--blue); color: var(--white); font-size: 14px; padding: 10px 0 0; margin-top: 60px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer h4 { font-family: var(--serif); font-size: 1.2em; font-weight: 400; margin: 30px 0 10px; letter-spacing: 2px; }
footer a { color: var(--white); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 2.2em; columns: 2; }
footer .copy { border-top: 1px solid rgba(255,255,255,.2); margin-top: 30px; padding: 18px 0; text-align: center; font-size: 12px; font-weight: 500; }

/* ---------- Mobil / nettbrett ---------- */
@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .site-header { display: none; }
  .nav .container { flex-wrap: wrap; min-height: 60px; }
  .nav-toggle { display: block; }
  .nav .nav-mobile-logo { display: block; padding: 6px 0; border: 0; }
  .nav-mobile-logo img { display: block; height: 46px; width: auto; }
  .nav ul { display: none; flex-direction: column; gap: 0; width: 100%; padding: 8px 0 12px; }
  .nav.open ul { display: flex; }
  .nav a { font-size: 17px; }

  .hero {
    min-height: 0;
    padding: 50px 16px;
    background-position: 75% center;
    position: relative;
  }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.75); }
  .hero > * { position: relative; }
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 22px; }

  .white { padding: 20px 16px; }
  .alignleft { float: none; display: block; margin: 0 auto 16px; }
  .post-teaser { flex-direction: column; }
  footer .cols { grid-template-columns: 1fr; }
  .map { padding-bottom: 75%; }
}

/* Banner: lys tekstbakgrunn når bildet går inn under teksten */
@media (min-width: 768px) and (max-width: 1399px) {
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 55%, rgba(255,255,255,0) 80%); }
  .hero > * { position: relative; }
}
