/* ============================================
   Ledstrup Psykoterapi — Pixel-Perfect Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark-teal:   #243b4a;
  --mid-blue:    #586e7a;
  --cream:       #fcf4da;
  --dark-navy:   #1a2a36;
  --white:       #ffffff;
  --text-light:  #e8e0d0;
  --text-dark:   #333333;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dark-navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; }

/* --- Container --- */
.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(26, 42, 54, 0.92);
  padding: 14px 28px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.header-logo img {
  height: 42px;
  transition: height 0.35s;
}

.site-header.scrolled .header-logo img {
  height: 32px;
}

/* Hamburger */
.hamburger {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 110;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   FULL-SCREEN MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-teal);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay nav {
  text-align: center;
}

.menu-overlay nav a {
  display: block;
  color: var(--cream);
  font-size: 1.5rem;
  font-weight: 300;
  padding: 14px 0;
  letter-spacing: 0.04em;
  transition: opacity 0.25s;
}

.menu-overlay nav a:hover {
  opacity: 0.65;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 0 6vw 12vh;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 42, 54, 0.12) 0%,
    rgba(26, 42, 54, 0.40) 60%,
    rgba(36, 59, 74, 0.68) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-align: left;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tags span {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 60px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   WAVE DIVIDERS
   ============================================ */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section-dark {
  background: var(--dark-teal);
  color: var(--text-light);
  padding: 100px 0;
}

.section-mid {
  background: var(--mid-blue);
  color: var(--text-light);
  padding: 100px 0;
}

.section-cream {
  background: var(--cream);
  color: var(--text-dark);
  padding: 100px 0;
}

.section-navy {
  background: var(--dark-navy);
  color: var(--white);
  padding: 100px 0;
}

/* Section text */
.section-text {
  max-width: 620px;
}

.section-text h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 28px;
}

.section-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-text a.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.95;
}

.section-text a.inline-link:hover {
  opacity: 0.7;
}

/* --- CTA Links --- */
.cta-links {
  margin-top: 36px;
}

.cta-links a {
  display: inline-block;
  color: var(--cream);
  border-bottom: 1px solid rgba(252, 244, 218, 0.4);
  padding-bottom: 2px;
  margin-bottom: 10px;
  font-weight: 400;
  transition: border-color 0.25s, opacity 0.25s;
}

.cta-links a:hover {
  border-color: var(--cream);
  opacity: 0.8;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: var(--cream);
  color: var(--dark-navy);
  padding: 100px 0 120px;
}

.newsletter-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.newsletter-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.newsletter-text p:last-child {
  margin-bottom: 0;
}

.newsletter-image-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.newsletter-image-col img {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.signup-label {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 10px;
}

.signup-form {
  display: flex;
  width: 100%;
  max-width: 320px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #c5b98a;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  border-color: var(--dark-teal);
}

.signup-form button {
  padding: 12px 24px;
  background: var(--dark-teal);
  color: var(--cream);
  border: none;
  border-radius: 0 4px 4px 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.25s;
}

.signup-form button:hover {
  background: var(--dark-navy);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--dark-teal);
  padding: 140px 0 70px;
  color: var(--white);
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

/* ============================================
   ABOUT PAGE — grid
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: start;
}

.portrait-image {
  border-radius: 60px;
  overflow: hidden;
}

.portrait-image img {
  width: 100%;
  display: block;
}

/* ============================================
   RÅDGIVNING PAGE — grid
   ============================================ */
.raad-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: start;
}

.leaf-image {
  border-radius: 40px;
  overflow: hidden;
}

.leaf-image img {
  width: 100%;
  display: block;
}

/* ============================================
   BLOG ARCHIVE
   ============================================ */
.blog-list {
  max-width: 700px;
}

.blog-post {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-post h2 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}

.blog-post .meta {
  font-size: 13px;
  opacity: 0.5;
  margin-bottom: 18px;
}

.blog-post p {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.88;
  margin-bottom: 16px;
}

.blog-post .read-more {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.blog-post .read-more:hover {
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 60px 0 45px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 2;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-social {
  margin-top: 16px;
}

.footer-social a {
  display: inline-block;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.25s;
}

.footer-social a:hover svg {
  fill: var(--cream);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid,
  .raad-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait-image,
  .leaf-image {
    max-width: 340px;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding-bottom: 10vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-dark,
  .section-mid,
  .section-cream,
  .section-navy,
  .newsletter-section {
    padding: 60px 0;
  }

  .section-text h2 {
    font-size: 26px;
  }

  .page-hero {
    padding: 120px 0 50px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .site-header {
    padding: 18px 20px;
  }

  .hamburger {
    right: 20px;
  }

  .header-logo img {
    height: 32px;
  }

  .wave-divider svg {
    height: 45px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input[type="email"] {
    border-right: 1px solid #c5b98a;
    border-radius: 4px 4px 0 0;
  }

  .signup-form button {
    border-radius: 0 0 4px 4px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .container {
    padding: 0 5vw;
  }
}
