@font-face {
  font-family: "Windsor Pro";
  src: url("fonts/WindsorProRg.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #33302c;
  --muted: #6b6660;
  --accent: #7c9885;
  --accent-dark: #5f7a68;
  --border: #e6e0d6;
  --content-width: 1200px;
  --gutter: max(24px, calc((100vw - var(--content-width)) / 2));
}

* { box-sizing: border-box; }

/* Reserve scrollbar space on every page so short and long pages line up */
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Windsor Pro", serif;
  line-height: 1.6;
}

.amp {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
}

h1, h2 {
  font-weight: 400;
  color: var(--text);
  margin-top: 0;
}

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  gap: 16px;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 44px;
}

.kontakt-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  white-space: nowrap;
}

.kontakt-btn:hover {
  background: var(--accent-dark);
}

.kontakt-btn.active {
  background: var(--accent-dark);
}

.tabs a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.tabs a:hover {
  color: var(--accent-dark);
}

.tabs a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.page-wrap {
  padding-top: 56px;
  padding-bottom: 72px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  min-height: 50vh;
}

/* Same size and line height as .hero-name so all page headings line up */
.page-wrap h1 {
  font-size: 2rem;
  line-height: 1.15;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 640px;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 56px;
  padding-left: var(--gutter);
  padding-right: 60px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  max-width: 58%;
  aspect-ratio: 857 / 1200;
}

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

@media (min-width: 761px) {
  :root {
    --gutter: max(48px, calc((100vw - var(--content-width)) / 2));
  }
  .hero-image-wide {
    width: 58%;
    aspect-ratio: auto;
  }
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(250, 247, 242, 0) 34%);
}

.hero-name {
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.hero-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 24px 0 18px;
}

.treatments p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 18px;
}

.treatment-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.treatment-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.treatment-item:first-child {
  border-top: none;
  padding-top: 0;
}

.treatment-item h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.treatment-item p {
  margin: 0;
}

.contact .email {
  font-size: 1.2rem;
  margin-top: 24px;
}

.contact .email a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.contact .email a:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (max-width: 760px) {
  /* Two rows on mobile: brand on top, all four links on one row below */
  .header-inner {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand brand"
      "tabs  kontakt";
    justify-content: space-between;
    align-items: center;
    row-gap: 12px;
    column-gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .left-group {
    display: contents;
  }
  .brand {
    grid-area: brand;
  }
  .kontakt-btn {
    grid-area: kontakt;
    padding: 6px 14px;
  }
  .tabs {
    grid-area: tabs;
    gap: 18px;
  }
  .page-wrap {
    padding-top: 32px;
  }
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  .hero-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 340px;
  }
  .hero-image img {
    object-position: top center;
  }
  /* Om mig: show the whole portrait (box follows the photo's 857x1200 ratio) */
  .hero-image:not(.hero-image-wide) {
    height: auto;
  }
  .hero-image::after {
    background: linear-gradient(to bottom, var(--bg) 0%, rgba(250, 247, 242, 0) 22%);
  }
  .hero-text {
    max-width: 100%;
    padding: 32px 24px 48px;
  }
}

@media (max-width: 400px) {
  .header-inner { font-size: 0.9rem; column-gap: 8px; }
  .tabs { gap: 12px; }
  .kontakt-btn { padding: 5px 10px; }
  .brand { font-size: 1.15rem; }
}

@media (max-width: 350px) {
  .header-inner { font-size: 0.82rem; column-gap: 6px; }
  .tabs { gap: 10px; }
  .kontakt-btn { padding: 5px 8px; }
}
