/* ============================================
   Dubbad & Döpt 24/7
   Premium ceremonial landing page
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bone: #F7F3ED;
  --color-linen: #CBBCA9;
  --color-taupe: #A38F7C;
  --color-espresso: #2E241D;
  --color-gold: #C8A96B;
  --color-lavender: #BDAFC8;
  --color-white: #FFFFFF;
  --color-gray: #E8E2DA;
  --color-deep: #1A150F;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  --max-content: 1200px;
  --max-text: 680px;
  --max-text-wide: 720px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-espresso);
  background-color: var(--color-bone);
}

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

a {
  color: var(--color-espresso);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 24px;
  font-weight: 500;
}

p {
  margin-bottom: var(--space-md);
}

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

em {
  font-style: italic;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.text-center {
  text-align: center;
}

.text-narrow {
  max-width: var(--max-text);
  margin-left: auto;
  margin-right: auto;
}

.text-wide {
  max-width: var(--max-text-wide);
  margin-left: auto;
  margin-right: auto;
}

/* --- Section Base --- */
.section {
  padding: var(--space-3xl) 0;
}

.section--tight {
  padding: var(--space-2xl) 0;
}

.section--spacious {
  padding: var(--space-4xl) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-espresso);
}

.btn--primary:hover {
  background-color: #b8994f;
  opacity: 1;
}

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

.btn--secondary:hover {
  background-color: var(--color-gray);
  opacity: 1;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
/* Static header — scrolls with content, not sticky (per spec) */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background-color: transparent;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 224px;
  width: auto;
  margin-top: 40px;
}

.header__nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-espresso);
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-espresso);
  position: absolute;
  left: 4px;
  transition: all 0.3s ease;
}

.header__hamburger span:nth-child(1) { top: 10px; }
.header__hamburger span:nth-child(2) { top: 16px; }
.header__hamburger span:nth-child(3) { top: 22px; }

.header__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg);
  top: 16px;
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 16px;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bone);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  transition: right 0.4s ease;
}

.mobile-nav.is-open {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-espresso);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 210px;
  padding-bottom: var(--space-3xl);
  background-color: var(--color-bone);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  max-width: 540px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-taupe);
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-espresso);
  margin-bottom: var(--space-xl);
}

.hero__micro {
  font-size: 14px;
  color: var(--color-taupe);
  margin-top: var(--space-sm);
}

.hero__image {
  display: flex;
  justify-content: flex-end;
}

.hero__image img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
}

/* ============================================
   ABOUT / KALLELSEN
   ============================================ */
.about {
  background-color: var(--color-bone);
}

.about .container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image {
  position: relative;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about__content {
  max-width: 580px;
}

.about__content p {
  font-size: 18px;
  line-height: 1.75;
}

/* ============================================
   SERVICES / CEREMONIER
   ============================================ */
.services {
  background-color: var(--color-bone);
}

.services__header {
  text-align: center;
  max-width: var(--max-text);
  margin: 0 auto var(--space-2xl);
}

.services__intro {
  font-size: 18px;
  color: var(--color-espresso);
  margin-top: var(--space-sm);
}

.services__image {
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}

.services__image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 60%;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  padding: var(--space-xl);
}

.service-card--featured {
  border-top: 3px solid var(--color-gold);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-espresso);
}

.service-card__list {
  margin-top: var(--space-md);
  padding: 0;
  list-style: none;
}

.service-card__list li {
  font-size: 15px;
  color: var(--color-taupe);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-gray);
}

.service-card__list li:last-child {
  border-bottom: none;
}

.service-card__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-taupe);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

/* ============================================
   PROCESS / SÅ GÅR DET TILL
   ============================================ */
.process {
  background-color: var(--color-bone);
}

.process__steps {
  max-width: 560px;
  margin: 0 auto;
}

.process__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-gray);
}

.process__step:last-child {
  border-bottom: none;
}

.process__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-linen);
  line-height: 1;
  padding-top: 4px;
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.process__step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-espresso);
  margin-bottom: 0;
}

/* ============================================
   WHY SARAH / VARFÖR SARAH
   ============================================ */
/* padding-top: 0 — full-width image sits flush; preceding section provides gap */
.why-sarah {
  background-color: var(--color-bone);
  padding-top: 0;
}

.why-sarah__image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: var(--space-3xl);
}

.why-sarah__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 35%;
}

.why-sarah__content {
  max-width: var(--max-text);
  margin: 0 auto;
  text-align: center;
}

.why-sarah__content p {
  font-size: 18px;
  line-height: 1.75;
}

.why-sarah__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-espresso);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray);
}

/* ============================================
   TESTIMONIALS / OMDÖMEN
   ============================================ */
.testimonials {
  background-color: var(--color-bone);
}

.testimonials__grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.testimonial {
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-gold);
}

.testimonial__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-espresso);
  margin-bottom: var(--space-sm);
}

.testimonial__attribution {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-taupe);
}

/* ============================================
   FAQ / VANLIGA FRÅGOR
   ============================================ */
.faq {
  background-color: var(--color-bone);
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/source/linen-texture.webp');
  background-size: 400px;
  opacity: 0.05;
  pointer-events: none;
}

.faq .container {
  position: relative;
  z-index: 1;
}

.faq__list {
  max-width: var(--max-text-wide);
  margin: 0 auto;
}

.faq__item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-gray);
}

.faq__item:first-child {
  padding-top: 0;
}

.faq__question {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-espresso);
  margin-bottom: var(--space-xs);
}

.faq__answer {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-espresso);
}

/* ============================================
   PRICING / PRISER
   ============================================ */
.pricing {
  background-color: var(--color-bone);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-top: 3px solid var(--color-gold);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: var(--space-md);
}

.pricing-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-espresso);
  flex-grow: 1;
}

.pricing__micro {
  text-align: center;
  font-size: 14px;
  color: var(--color-taupe);
  max-width: var(--max-text);
  margin: 0 auto var(--space-xl);
}

.pricing__cta {
  text-align: center;
}

.pricing__certificate {
  text-align: center;
  margin-top: var(--space-2xl);
}

.pricing__certificate-img {
  max-width: 280px;
  margin: 0 auto;
  transform: rotate(-2deg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background-color: var(--color-bone);
  text-align: center;
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--color-gray);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: var(--space-md);
}

.final-cta__body {
  font-size: 18px;
  line-height: 1.7;
  max-width: var(--max-text);
  margin: 0 auto var(--space-xl);
}

.final-cta__micro {
  font-size: 14px;
  color: var(--color-taupe);
  margin-top: var(--space-lg);
  max-width: var(--max-text);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BOOKING MODAL
   ============================================ */
.booking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 21, 15, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  background: var(--color-bone);
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
}

.booking-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-taupe);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-espresso);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-espresso);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group__hint {
  font-size: 13px;
  color: var(--color-taupe);
  margin-top: 4px;
}

.form-submit {
  margin-top: var(--space-lg);
}

.form-submit .btn {
  width: 100%;
  text-align: center;
}

.form-disclaimer {
  font-size: 13px;
  color: var(--color-taupe);
  margin-top: var(--space-md);
  line-height: 1.5;
}

/* Confirmation state */
.booking-confirmation {
  text-align: center;
  padding: var(--space-xl) 0;
  display: none;
}

.booking-confirmation.is-visible {
  display: block;
}

.booking-confirmation h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.booking-confirmation p {
  font-size: 16px;
  line-height: 1.65;
}

.booking-form.is-hidden {
  display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-deep);
  color: var(--color-bone);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.footer__brand h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-bone);
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-linen);
  max-width: 360px;
}

.footer__nav {
  display: flex;
  justify-content: flex-end;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 15px;
  color: var(--color-linen);
}

.footer__links a:hover {
  color: var(--color-bone);
  opacity: 1;
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(203, 188, 169, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: 13px;
  color: var(--color-taupe);
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--color-taupe);
  font-style: italic;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray);
  padding: var(--space-md) var(--space-lg);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--color-espresso);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-banner__btn--accept {
  background: var(--color-espresso);
  color: var(--color-bone);
}

.cookie-banner__btn--accept:hover {
  background: var(--color-deep);
}

.cookie-banner__btn--info {
  background: transparent;
  color: var(--color-taupe);
  border: 1px solid var(--color-gray);
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.divider {
  width: 80px;
  height: 1px;
  background-color: var(--color-gray);
  margin: 0 auto;
}

/* --- Reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE — TABLET (< 1200px)
   ============================================ */
@media (max-width: 1199px) {
  .pricing__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================ */
@media (max-width: 767px) {
  :root {
    --space-3xl: 64px;
    --space-4xl: 80px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Header */
  .header {
    height: 56px;
  }

  .header__logo-img {
    height: 140px;
    margin-top: 16px;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 180px;
    padding-bottom: var(--space-2xl);
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__image {
    justify-content: center;
  }

  .hero__image img {
    max-height: 50vh;
  }

  .btn-group {
    justify-content: center;
  }

  /* About */
  .about .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__content {
    order: -1;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__image img {
    max-height: 280px;
  }

  /* Process */
  .process__step {
    grid-template-columns: 36px 1fr;
  }

  .process__number {
    font-size: 28px;
  }

  /* Why Sarah */
  .why-sarah__image {
    max-height: none;
  }

  .why-sarah__image img {
    height: auto;
    object-fit: contain;
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__nav {
    justify-content: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  /* Booking modal */
  .booking-modal {
    padding: var(--space-xl) var(--space-md);
    width: 95%;
  }
}
