/* ============================================================
   EJENDOMSPAS.DK — style.css
   ============================================================ */

/* 1. Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --color-bg:             #FAFAF8;
  --color-surface:        #F3F2EE;
  --color-dark:           #141412;
  --color-text-primary:   #181816;
  --color-text-muted:     #6B6B63;
  --color-accent:         #2D6A4F;
  --color-accent-light:   #52B788;
  --color-accent-pale:    #D8F3DC;
  --color-border:         #E4E3DE;
  --color-announcement:   #EAF4EE;
  --color-white:          #FFFFFF;

  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.75rem;
  --text-5xl:   3.5rem;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --line-height-tight:  1.15;
  --line-height-normal: 1.6;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.10), 0 8px 32px rgba(0,0,0,0.06);
}

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

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

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* 3. Layout
   ============================================================ */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* 4. Shared Typography Utilities
   ============================================================ */
.section-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.section-subtext {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: var(--line-height-normal);
}

/* 5. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease, border-color 0.18s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--sm  { height: 34px; padding: 0 14px; font-size: var(--text-sm); }
.btn--lg  { height: 48px; padding: 0 24px; font-size: var(--text-base); }

.btn--primary {
  background: var(--color-text-primary);
  color: var(--color-white);
  border-color: var(--color-text-primary);
}
.btn--primary:hover { background: #2e2e2b; border-color: #2e2e2b; }

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
.btn--ghost:hover { background: var(--color-surface); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--accent:hover { background: #235c42; border-color: #235c42; }

/* 6. Announcement Bar
   ============================================================ */
.announcement-bar {
  background: var(--color-announcement);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-6);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.announcement-bar strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.announcement-bar a {
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}
.announcement-bar a:hover { text-decoration-color: var(--color-accent); }

/* 7. Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 4px;
  flex-shrink: 0;
}

.logo-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--color-text-primary); }

/* 8. Hero
   ============================================================ */
.hero {
  background: var(--color-bg);
  padding: var(--space-24) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(82, 183, 136, 0.08), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero__badge {
  display: inline-block;
  background: var(--color-accent-pale);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__headline {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  max-width: 780px;
}

.hero__subtext {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-16);
}

/* Hero Mockup Window */
.hero__mockup {
  width: 100%;
  max-width: 700px;
}

.mockup-window {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 8px 24px rgba(0,0,0,0.07),
    0 32px 64px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: left;
}

.mockup-topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup-body {
  padding: var(--space-8);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.mockup-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mockup-grade {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-progress-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.mockup-progress-label {
  width: 80px;
  flex-shrink: 0;
}

.mockup-bar {
  flex: 1;
  height: 6px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mockup-bar-fill {
  height: 100%;
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
}

.mockup-bar-fill--warn {
  background: #f6c344;
}

.mockup-progress-pct {
  width: 32px;
  text-align: right;
  flex-shrink: 0;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.mockup-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.mockup-tag {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  background: var(--color-accent-pale);
  color: var(--color-accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 9. Value Props
   ============================================================ */
.value-props {
  background: var(--color-surface);
  padding: var(--space-24) 0;
}

.value-props__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.value-props__header .section-subtext {
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

/* 10. Status Section
   ============================================================ */
.status-section {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}

.status-section__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.status-section__heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.status-section__body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-12);
}

.status-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 var(--space-4);
}

/* Connecting line between dots */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 1px;
  background: var(--color-border);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-border);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item--done .timeline-dot {
  background: var(--color-accent);
}

.timeline-item--active .timeline-dot {
  background: var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4); }
  50%       { box-shadow: 0 0 0 7px rgba(45, 106, 79, 0); }
}

.timeline-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: center;
}

.timeline-item--done .timeline-label,
.timeline-item--active .timeline-label {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

/* 11. CTA / Newsletter Section
   ============================================================ */
.cta-section {
  background: var(--color-dark);
  padding: var(--space-24) 0;
}

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

.cta-section__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-4);
}

.cta-section__heading {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__subtext {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.55);
  max-width: 440px;
  margin: 0 auto var(--space-10);
  line-height: var(--line-height-normal);
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form__row {
  display: flex;
  gap: var(--space-3);
}

.newsletter-form__input {
  flex: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  padding: 0 var(--space-4);
  font-size: var(--text-base);
  transition: border-color 0.15s ease;
  min-width: 0;
}

.newsletter-form__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form__input:focus {
  outline: none;
  border-color: var(--color-accent-light);
}

.newsletter-form__input.input--error {
  border-color: #e05252;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.newsletter-form__disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--space-4);
  text-align: center;
}

.newsletter-success {
  padding: var(--space-8);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.newsletter-success svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-accent-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter-success p {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
}

/* 12. Footer
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--space-10) 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.site-footer .nav__logo .logo-text {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__nav {
  display: flex;
  gap: var(--space-6);
}

.site-footer__nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s ease;
}
.site-footer__nav a:hover { color: rgba(255, 255, 255, 0.8); }

.site-footer__legal {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* 13. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__headline { font-size: var(--text-4xl); }
  .cta-section__heading { font-size: var(--text-3xl); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }

  .hero { padding: var(--space-16) 0; }
  .hero__headline { font-size: var(--text-3xl); }
  .hero__subtext { font-size: var(--text-base); }

  .cards-grid { grid-template-columns: 1fr; }

  .status-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    max-width: 280px;
    margin: 0 auto;
  }

  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 6px;
    bottom: calc(-1 * var(--space-6));
    width: 1px;
    height: auto;
    right: auto;
    background: var(--color-border);
  }

  .timeline-dot {
    margin-bottom: 0;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .timeline-label { text-align: left; }

  .newsletter-form__row { flex-direction: column; }
  .newsletter-form__input { width: 100%; }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__nav { justify-content: center; }
}
