@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

@font-face {
  font-family: 'Dalime';
  src: url('fonts/Dalime.woff2') format('woff2'),
       url('fonts/Dalime.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dalime';
  src: url('fonts/Dalime Italic.woff2') format('woff2'),
       url('fonts/Dalime Italic.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* Exakta värden från fogdaldigital.se (Wix-temat) */
:root {
  --beige: #E7D8C9;
  --brown: #65432A;
  --brown-dark: #50271D;
  --pink: #D24B64;
  --orange: #EF7557;

  --white: #FFFDFA;
  --cream: #F9F4EF;
  --sand: #F2EBE3;

  --ink: var(--brown);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Dalime', serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-wrap: balance;
  margin: 0 0 0.6em;
  color: var(--pink);
  text-align: center;
}

h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.25; }
h2 { font-size: clamp(23px, 3.5vw, 30px); }
h3 { font-size: 20px; }

em, .kursiv { font-style: italic; }

a { color: var(--pink); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--orange); }

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

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.wrap.narrow { max-width: 820px; }

/* ---------- Pain section: text + faded photo ---------- */
.pain { position: relative; overflow: hidden; }

.pain .wrap { position: relative; }

.pain-text { max-width: 620px; text-align: left; }
.pain-text h2 { text-align: center; }
.pain-text h3 { text-align: center; }

.pain-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right bottom;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.92) sepia(0.06);
}

.pain-text { position: relative; z-index: 1; }

@media (max-width: 899px) {
  .pain-photo { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
  width: 100%;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 2.25rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-inner .site-logo { justify-self: start; }
.header-inner .main-nav { justify-self: center; }

.site-logo {
  display: block;
  width: 145px;
}

.site-logo img {
  display: block;
  width: 145px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
  font-family: 'Dalime', serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a { color: var(--brown); }
.main-nav a:hover { color: var(--orange); }
.main-nav a[aria-current="page"] { color: var(--orange); }

.nav-toggle { display: none; }

.site-header.floating {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: transparent;
}

@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr; justify-items: center; padding: 0.9rem 1.25rem; }
  .main-nav { gap: 1.1rem; font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  min-width: 220px;
  padding: 0.85rem 2.6rem;
  border-radius: 0;
  background: var(--orange);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 17px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover { background: var(--pink); color: var(--white); transform: translateY(-1px); }

.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--pink); }

.btn-pink { background: var(--pink); }
.btn-pink:hover { background: var(--orange); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover { background: var(--orange); color: var(--white); }

/* ---------- Hero: blek shoreline-video (som Wix) ---------- */
.hero {
  padding: 4.5rem 0 1.5rem;
  margin-bottom: -4px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--white);
}

.hero:has(video) {
  background: #FCF5ED;
}

.site-header.floating + .hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
  padding-bottom: 7rem;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}

.hero:has(video) h1 {
  font-size: clamp(32px, 5.5vw, 54px);
}

.hero .btn { margin-top: 20px; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.hero:not(:has(video)) + section { padding-top: 1.5rem; }
section.white { background: var(--white); }
section.cream { background: var(--cream); }
section.sand { background: var(--sand); }

.lead { font-size: 23px; }

.section-title { max-width: 40rem; margin: 0 auto 1.5rem; text-align: center; }
.section-title .eyebrow, p.eyebrow {
  display: block;
  font-family: 'Dalime', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 22px;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
p.eyebrow.center { text-align: center; margin-bottom: 2.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--sand);
  padding: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.card h3 { text-align: center; }
.card p { flex-grow: 1; }
.card .btn { margin-top: 1rem; align-self: center; }

/* ---------- Two-column with photo ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.col-text { max-width: none; }

.grid-2.reverse { grid-template-columns: 1fr 480px; }
.grid-2.reverse .col-media { order: 2; }
.grid-2.reverse .col-text { order: 1; }

.col-media img {
  width: 100%;
  max-width: 480px;
  margin: 12px auto 0;
  display: block;
  box-shadow: 12px -12px 0 0 rgba(101, 67, 42, 0.55);
  filter: saturate(0.92) sepia(0.06);
}

@media (max-width: 760px) {
  .grid-2, .grid-2.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2.reverse .col-media { order: 0; }
  .grid-2.reverse .col-text { order: 0; }
  .col-media img { max-width: 320px; box-shadow: 8px -8px 0 0 rgba(101, 67, 42, 0.55); }
}

/* ---------- Facts list ---------- */
.facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.facts li {
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---------- CTA row ---------- */
.cta-row { margin-top: 2rem; text-align: center; }

.ready { margin-top: 1.5rem; }

/* ---------- Testimonial: rosa slideshow-panel ---------- */
.testimonial-band {
  background: var(--pink);
  color: var(--white);
  min-height: 419px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}

.testimonial-band .wrap { max-width: 760px; text-align: left; }
.testimonial-band .eyebrow { text-align: center; }

.testimonial-band .eyebrow {
  font-family: 'Dalime', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.testimonial-band figure { margin: 0; }

.testimonial-band blockquote {
  margin: 0 0 1.25rem;
  font-style: italic;
}

.testimonial-band .quote-lead {
  font-size: 25px;
  margin-bottom: 0.8em;
}

.testimonial-band blockquote p:not(.quote-lead) {
  font-size: 20px;
  line-height: 1.5;
}

.testimonial-band figcaption {
  font-family: 'Dalime', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
}

.testimonial-band .slide { display: none; }
.testimonial-band .slide.is-active { display: block; }

.slide-nav {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 1.5rem;
}

.slide-prev { left: 0.5rem; }
.slide-next { right: 0.5rem; }

.slide-dots { display: flex; gap: 0.6rem; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.dot.is-active { background: var(--orange); }

/* ---------- Steps (Drömkundsintensiv page) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 3rem;
  max-width: 68rem;
  margin: 0 auto;
}
.step-card h3 { text-align: center; }
.step-card p { text-align: left; font-size: 17px; }

.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-3 { grid-template-columns: repeat(3, 1fr); max-width: 54rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Timeline (Om page) ---------- */
.timeline { display: flex; flex-direction: column; gap: 2.25rem; max-width: 34rem; margin: 0 auto; }
.timeline .step .eyebrow {
  font-family: 'Dalime', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--pink);
  margin-bottom: 0.3rem;
  display: block;
}

/* ---------- Form ---------- */
form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 30rem; margin: 0 auto; }
label { font-weight: 400; display: block; margin-bottom: 0.3rem; }
input, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--beige);
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
  border-color: var(--pink);
}
textarea { resize: vertical; min-height: 6rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; }
.checkbox-row input { width: auto; }
form .btn { align-self: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--brown);
  padding: 3rem 0 2rem;
}

.footer-columns {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 16px;
}

.footer-nav a, .footer-contact a, .site-footer a { color: var(--pink); }
.footer-nav a:hover, .footer-contact a:hover, .site-footer a:hover { color: var(--orange); }

.social-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.social-links a { color: var(--pink); }
.social-links a:hover { color: var(--orange); }

.footer-bottom {
  font-size: 14px;
  opacity: 0.75;
  margin-top: 1.75rem;
  text-align: center;
}

@media (max-width: 640px) {
  section { padding: 2.75rem 0; }
  .hero { padding: 3.25rem 0 3.75rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
