/* Yoga By B – statisk version av yogabyb.se */

/* Typsnitt – lokalt hostade (latin-subset, täcker å ä ö) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lato-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lato-400-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lato-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lato-700-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 400;   /* variabelt typsnitt */
  font-display: swap;
  src: url(../fonts/montserrat.woff2) format('woff2');
}

:root {
  --red: #300a06;      /* mörk vinröd – rubriker, knappar, sidhuvud */
  --taupe: #735a5e;    /* länkar, footer, mörka sektioner */
  --rosa: #ddb8b8;     /* rosa sektioner, avdelare */
  --text: #333;
  --light: #f6f6f6;
  --container: 940px;
  --content: 900px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--taupe); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 300;
  color: var(--red);
  line-height: 1.3;
  margin: 0 0 .3em;
}
h1 { font-size: 40px; line-height: 1.2; }
h2 { font-size: 32px; padding-top: .5em; }
h3 { font-size: 26px; padding-top: .5em; }
h4 { font-size: 24px; line-height: 1.2; }

p { margin: 0 0 1.6em; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto; padding: 10px 16px;
  background: #fff; color: var(--red);
}

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

.center { text-align: center; }
.white, .white h2, .white h3 { color: #fff; }

/* ---------- Sidhuvud ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  color: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.branding { display: flex; align-items: center; gap: 16px; }
.branding .logo img { width: 100px; }
.site-title {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.1;
  color: #fff;
}
.site-title:hover { color: #fff; }
.site-description { margin: 0; font-size: 15px; line-height: 1.1; color: #fff; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li.current { background: rgba(0, 0, 0, .3); }
.main-nav a {
  display: block;
  padding: 0 20px;
  line-height: 70px;
  color: #fff;
}
.main-nav a:hover { color: var(--rosa); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: #fff;
  cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; fill: currentColor; display: block; }

/* Mobilmeny (off-canvas) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--red);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .menu-close {
  position: absolute;
  top: 0; right: 0;
  width: 52px; height: 52px;
  background: none;
  border: 1px dotted #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 60px 0 0; text-align: center; }
.mobile-menu a {
  display: block;
  padding: 0 20px;
  line-height: 44px;
  color: #fff;
  font-size: 15px;
}
.mobile-menu li.current a { background: #000; }
body.menu-open { overflow: hidden; }

/* ---------- Sidrubrik (hero på undersidor) ---------- */

.page-header {
  position: relative;
  background-color: var(--red);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 186px 20px 150px;   /* 86px sidhuvud + 100px */
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(48, 10, 6, .28);
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin: 0; }
.page-header.solid { padding: calc(86px + 5vw) 20px 5vw; }
.page-header.solid::after { display: none; }

/* Klass-sida */
.page-header.klass { padding: 170px 20px 110px; }
.page-header.klass::after { background: rgba(0, 0, 0, .3); }
.page-header.klass .klass-tid { font-size: 20px; margin-top: 8px; }
.page-header.klass .klass-plats a { color: #fff; text-decoration: underline; }

/* ---------- Startsida ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: url(../img/hero-yoga-i-solen.webp) center / cover no-repeat fixed;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(48, 10, 6, .2);
}
.hero > * { position: relative; z-index: 1; color: #fff; }
.hero h1 { margin-bottom: .5em; }
.hero h2 { font-size: 32px; padding: 0; }

/* iOS stöder inte background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll; }
}

/* ---------- Sektioner ---------- */

.section { padding: 70px 20px; }
.section > .inner { max-width: var(--content); margin: 0 auto; }
.section.narrow > .inner { max-width: 720px; }

.section.taupe,
.section.pink {
  color: #fff;
  margin: 50px 0;
  padding: 70px 60px;
}
.section.taupe { background: var(--taupe); }
.section.pink { background: var(--rosa); }
.section.taupe h2, .section.taupe h3,
.section.pink h2, .section.pink h3 { color: #fff; }
.section.taupe h2, .section.pink h2 { text-align: center; }

.section.klass-bg { background: var(--taupe); padding: 80px 20px 100px; }

.spacer-20 { height: 20px; }
.spacer-30 { height: 30px; }
.spacer-40 { height: 40px; }
.spacer-50 { height: 50px; }

figure { margin: 0 0 1em; }
figure.center img { margin: 0 auto; }

/* Prickad avdelare */
hr.dots {
  border: 0;
  background: none;
  text-align: center;
  height: auto;
  margin: 0 0 10px;
  line-height: 1;
}
hr.dots::before {
  content: "\00b7\00b7\00b7";
  color: var(--rosa);
  font-size: 64px;
  letter-spacing: 32px;
  padding-left: 32px;
  font-family: serif;
}

/* Kolumner */
.columns { display: flex; gap: 32px; margin-bottom: 1.75em; }
.columns > * { flex: 1 1 0; min-width: 0; }
.columns .col-33 { flex: 0 0 33.33%; }
.columns .col-66 { flex: 0 0 66.66%; }
.columns.v-center { align-items: center; }

/* Fördelar-rutor */
.features { padding: 20px; margin: 10px 0; }
.features .columns { gap: 32px; align-items: stretch; }
.features .columns > div {
  background: var(--rosa);
  color: #fff;
  padding: 25px 20px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.features h2 { color: var(--red); }

/* Kundlogotyper */
.kunder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px 40px;
  padding: 20px 0;
}
.kunder img { width: auto; }

/* Knappar */
.buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.buttons.left { justify-content: flex-start; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 30px;
  padding: 16px 30px;
  margin: 30px 0;
  line-height: 1;
  text-align: center;
  transition: background .2s;
}
.btn:hover { background: var(--taupe); color: #fff; }

/* Citat */
.quote-section { background: var(--rosa); padding: 70px 80px; margin: 0 auto; max-width: var(--container); }
.quote-section blockquote { margin: 0; color: #fff; }
.quote-section .quote-icon { width: 40px; height: 40px; fill: #fff; margin-bottom: 20px; }
.quote-section .quote-text { font-size: 18px; font-weight: 700; font-style: italic; line-height: 1.5; }
.quote-section cite { display: block; margin-top: 25px; font-weight: 700; }

/* Media + text (Om, Tack) */
.media-text {
  display: grid;
  grid-template-columns: 41% auto;
  align-items: start;
  background: #fff;
  max-width: 1000px;
  margin: 0 auto;
}
.media-text.narrow-media { grid-template-columns: 30% auto; }
.media-text .media img { width: 100%; }
.media-text .content { padding: 0 8%; }

/* ---------- Klasskort ---------- */

.section-title { text-align: center; margin-bottom: 40px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--light); }
.card .card-body { padding: 20px; }
.card h4 { color: var(--red); padding-bottom: 15px; margin: 0; }
.card h4 a { color: inherit; }
.card .btn {
  background: var(--taupe);
  padding: 16px 12px;
  margin: 0;
}
.card .btn:hover { background: var(--red); }

/* ---------- Kontaktformulär ---------- */

.form-box { padding: 30px; border: 1px solid #ddd; margin-top: 30px; }
.kontakt-section {
  border: 3px dashed var(--text);
  padding: 70px;
  max-width: 980px;
  margin: 0 auto 80px;
}
.kontakt-section h2 { padding-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-top: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #999;
  padding: 8px 0;
  font: inherit;
  line-height: 1.3;
  color: var(--text);
  background: #fff;
  border-radius: 0;
}
.form-grid textarea { resize: vertical; min-height: 38px; }
.form-grid input:focus,
.form-grid textarea:focus { outline: none; border-bottom-color: var(--taupe); }
.form-grid ::placeholder { color: #a39a9b; }
.form-grid .error { border-bottom-color: #c0392b; }
.form-error { color: #c0392b; font-size: 14px; margin-top: 4px; }
.hp-field { display: none; }
.form-message {
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 3px solid #c0392b;
  background: #fbeeee;
  color: #8e2a20;
}
.form-submit:disabled { opacity: .6; cursor: default; }
.form-submit {
  background: var(--taupe);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 16px 30px;
  margin: 10px 0;
  font: inherit;
  cursor: pointer;
}
.form-submit:hover { background: var(--red); }

/* ---------- Klass-sida (innehåll) ---------- */

.single-content { max-width: 726px; margin: 0 auto; padding: 85px 20px 100px; }
.single-content .emoji { width: 32px; height: 32px; }

/* ---------- Sidfot ---------- */

.site-footer { background: var(--taupe); color: #fff; padding: 60px 0 90px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-footer p { margin: 0; max-width: 400px; }
.site-footer a { color: var(--rosa); }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 40px; }
.social a { color: #fff; display: block; }
.social svg { width: 32px; height: 32px; fill: currentColor; display: block; }
.social a:hover { color: var(--rosa); }

/* ---------- Responsivt ---------- */

@media (max-width: 921px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header .container { min-height: 70px; }
  .branding .logo img { width: 60px; }
  .page-header { padding: 150px 20px 100px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  .hero h2 { font-size: 24px; }
  .section { padding: 50px 20px; }
  .section.taupe, .section.pink { padding: 50px 20px; margin: 30px 0; }
  .columns { flex-direction: column; gap: 0; }
  .columns .col-33, .columns .col-66 { flex-basis: auto; }
  .features .columns { gap: 20px; }
  .quote-section { padding: 50px 24px; }
  .kontakt-section { padding: 40px 20px; margin: 0 16px 60px; }
  .form-box { padding: 20px; }
  .single-content { padding: 50px 20px 70px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .media-text, .media-text.narrow-media { grid-template-columns: 100%; }
  .media-text .content { padding: 30px 8% 0; }
  .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-description { display: none; }
}
