/* ===================================================================
   Gymmet Sparreholm — stylesheet
   Palette: warm charcoal, cream, terracotta + moss accents
   =================================================================== */

/* fraunces-variable - latin (variable font: wght 100-900, opsz 9-144) */
@font-face {
  font-display: swap;
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  src: url("../fonts/fraunces-v38-latin-variable.woff2") format("woff2");
}
/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --charcoal: #2b2a25;
  --charcoal-soft: #46433a;
  --cream: #f8f4ea;
  --cream-soft: #efe7d5;
  --accent: #c1703f;
  --accent-soft: #e9cdb3;
  --accent-warm: #93a87c;
  --accent-calm: #b98b92;

  --text: var(--charcoal);
  --text-muted: #6b6558;
  --bg: var(--cream);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(43, 42, 37, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.9em;
}
.eyebrow-light {
  color: var(--accent-soft);
}

.section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
.section-tint {
  background: var(--cream-soft);
}
.section-head {
  position: relative;
  max-width: 620px;
  margin: 0 0 44px;
}
.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section-dark p {
  color: #cfc9ba;
}
.section-dark h2 {
  color: var(--cream);
}

.eyebrow-calm {
  color: var(--accent-calm);
}

/* Section glows */
.section-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  filter: blur(10px);
  pointer-events: none;
}
.section-glow--group {
  background: radial-gradient(
    50% 50% at 18% 25%,
    rgba(193, 112, 63, 0.16),
    transparent 70%
  );
}
.section-glow--healing {
  background: radial-gradient(
    55% 55% at 82% 30%,
    rgba(185, 139, 146, 0.28),
    transparent 70%
  );
}
.section-glow--gallery {
  background: radial-gradient(
    50% 50% at 25% 20%,
    rgba(147, 168, 124, 0.2),
    transparent 70%
  );
}
.section-glow--price {
  background: radial-gradient(
    50% 50% at 78% 22%,
    rgba(193, 112, 63, 0.14),
    transparent 70%
  );
}

/* Healing lotus mark */
.healing-mark {
  position: absolute;
  top: 30px;
  right: 28px;
  width: 340px;
  height: 340px;
  color: var(--accent-calm);
  opacity: 0.16;
  pointer-events: none;
}
@media (max-width: 900px) {
  .healing-mark {
    width: 220px;
    height: 220px;
    top: 18px;
    right: 16px;
  }
}

/* Section marks */
.section-mark {
  position: absolute;
  top: 30px;
  right: 28px;
  width: 150px;
  height: 150px;
  opacity: 0.14;
  pointer-events: none;
}
.group-mark {
  color: var(--accent);
}
.gallery-mark {
  color: var(--accent-warm);
}
.price-mark {
  color: var(--accent);
}
@media (max-width: 720px) {
  .section-mark {
    width: 100px;
    height: 100px;
    top: 18px;
    right: 16px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--charcoal-soft);
}
.btn-outline {
  border-color: rgba(43, 42, 37, 0.3);
  color: var(--charcoal);
}
.btn-outline:hover {
  border-color: var(--charcoal);
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 42, 37, 0.08);
  padding: 0 12px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.main-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 42, 37, 0.25);
  color: var(--charcoal);
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-icon:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}
.section-dark .social-icon {
  border-color: rgba(248, 244, 234, 0.35);
  color: var(--cream);
}
.section-dark .social-icon:hover {
  background: var(--cream);
  color: var(--charcoal);
}
.social-links-large {
  margin-top: 28px;
  gap: 14px;
}
.social-links-large .social-icon {
  width: auto;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(
      55% 55% at 25% 20%,
      rgba(193, 112, 63, 0.22),
      transparent 70%
    ),
    radial-gradient(
      45% 45% at 85% 10%,
      rgba(147, 168, 124, 0.28),
      transparent 70%
    );
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero-lede {
  font-size: 1.1rem;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Class list */
.class-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.class-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(43, 42, 37, 0.12);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.section-note {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.section-note p {
  margin: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid button:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: min(90vw, 720px);
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-prev {
  left: 16px;
}
.lightbox-next {
  right: 16px;
}
@media (max-width: 720px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* Priser */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.price-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.price-card h3 {
  margin-bottom: 20px;
}
.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(43, 42, 37, 0.12);
}
.price-card li:last-child {
  border-bottom: none;
}
.price-card .label {
  font-weight: 500;
}
.price-card .label small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}
.price-card .amount {
  font-family: var(--font-display);
  font-weight: 500;
  white-space: nowrap;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(248, 244, 234, 0.15);
  padding-bottom: 14px;
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
}
.contact-list a {
  text-decoration: none;
  font-size: 1.1rem;
}
.contact-list a:hover {
  color: var(--accent);
}
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-link {
  display: block;
}
.map-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 525;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}
.map-wrap:hover img {
  filter: brightness(0.96);
}
.map-pin {
  position: absolute;
  opacity: 1;
  left: 69%;
  top: 54%;
  width: 30px;
  height: auto;
  transform: translate(-50%, -100%);
  color: var(--accent);
  filter: drop-shadow(0 3px 4px rgba(43, 42, 37, 0.35));
  transition: opacity 0.2s ease;
}
.map-pin:hover {
  opacity: 0.4;
}
.map-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.map-disclaimer {
  position: absolute;
  right: 2px;
  bottom: 2px;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 400;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248, 244, 234, 0.12);
}
.site-footer .brand {
  color: var(--cream);
}
.footer-bottom {
  padding: 20px 0;
  font-size: 0.8rem;
  color: #a89f8c;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    max-width: 380px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(43, 42, 37, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(43, 42, 37, 0.1);
  }
  .nav-toggle {
    display: flex;
  }
  .class-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-actions .social-icon {
    display: none;
  }
  .brand {
    font-size: 1.1rem;
  }
  .price-card li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .price-card .amount {
    white-space: normal;
  }
}
