/* ==========================================================
   PUREALS — style.css
   Natural Pain Relief Clinic | pureals.dk
   ========================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #F3EFEB;
  --bg-secondary: #E3D0C5;
  --text: #605752;
  --text-light: #8a8279;
  --accent: #B4A9A1;
  --cta: #946954;
  --cta-hover: #7d5845;
  --sage: #8F9C8B;
  --slate: #8A939E;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(96,87,82,.06);
  --shadow-md: 0 4px 20px rgba(96,87,82,.08);
  --shadow-lg: 0 8px 32px rgba(96,87,82,.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: .3s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: .5em;
  color: var(--text);
}
.section-intro {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: .02em;
}
.btn-cta {
  background: var(--cta);
  color: var(--white);
}
.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(243,239,235,.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img {
  height: 44px;
  width: auto;
}
.nav-list {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cta);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cta);
}

/* Header CTA */
.header-cta {
  padding: 10px 22px;
  font-size: .85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('assets/PurealsKlinik.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(243,239,235,.92) 0%,
    rgba(243,239,235,.75) 40%,
    rgba(243,239,235,.3) 70%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-top: 72px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: .6em;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 480px;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
  padding: 6rem 0;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.04);
}
.service-body {
  padding: 1.75rem 1.5rem 2rem;
  text-align: left;
}
.service-body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: .6em;
}
.service-body p {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1.25rem;
}
.service-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--cta);
  transition: color var(--transition);
}
.service-link:hover {
  color: var(--cta-hover);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  padding: 6rem 0;
  background: var(--bg-primary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 10 / 16;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.about-text .section-title {
  text-align: left;
}
.about-tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--cta);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-text strong {
  color: var(--text);
}
.about-text em {
  color: var(--sage);
  font-style: italic;
}

/* ==========================================================
   PRICING / SPECIAL OFFER
   ========================================================== */
.pricing {
  padding: 6rem 0;
  background: var(--bg-secondary);
  text-align: center;
}
.pricing .section-title {
  color: var(--text);
}
.pricing-intro {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}
.pricing-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.pricing-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.pricing-prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.price-old {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: line-through;
}
.price-new {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--cta);
}
.pricing-note {
  color: var(--text-light);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  padding: 6rem 0;
  text-align: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .25rem;
}
.testimonial-card p {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--cta);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: .9rem;
}
.testimonial-author span {
  font-size: .8rem;
  color: var(--accent);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo {
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}
.site-footer h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a,
.footer-contact a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
}
.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: .7;
}
.footer-cta-col {
  text-align: center;
}
.footer-cta-col .btn {
  margin-top: .5rem;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer-bottom-cta {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--white);
  letter-spacing: .02em;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -4px 0 24px rgba(0,0,0,.1);
    transition: right var(--transition);
    padding: 90px 32px 32px;
    z-index: 999;
  }
  .main-nav.open { right: 0; }
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  .nav-link { font-size: 1rem; }
  .header-cta { display: none; }

  /* Hero */
  .hero { min-height: 90vh; }
  .hero-content { padding-top: 100px; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-text .section-title {
    text-align: center;
  }
  .about-tagline {
    text-align: center;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-contact li {
    justify-content: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
