/* ============================================
   makumpa.com — Michel Makumpa
   Trauerbegleitung & Bestattungsreden
   ============================================ */

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

/* --- Tokens --- */
:root {
  --teal-dark:   #1a4a47;
  --teal:        #2d7a6e;
  --teal-mid:    #3d9e8f;
  --teal-light:  #7ecfc4;
  --teal-pale:   #e8f5f3;
  --teal-ghost:  #f3fbfa;
  --gold:        #c9a96e;
  --gold-light:  #f0e4cc;
  --text-dark:   #1c2b29;
  --text-body:   #3d4f4c;
  --text-muted:  #7a908d;
  --white:       #ffffff;
  --border:      #d4e8e5;

  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(26,74,71,0.08);
  --shadow-md:   0 8px 32px rgba(26,74,71,0.12);
  --shadow-lg:   0 20px 60px rgba(26,74,71,0.16);

  --max-width:   1100px;
  --section-gap: 100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: var(--section-gap) 0; }

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 20px 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
#navbar.scrolled .nav-logo { color: var(--teal-dark); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
#navbar.scrolled .nav-links a { color: var(--text-body); }
.nav-links a:hover { color: var(--teal-light); }
#navbar.scrolled .nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #b8954f !important; transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s;
}
#navbar.scrolled .nav-burger span { background: var(--teal-dark); }

/* --- Hero --- */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,45,42,0.72) 0%, rgba(15,45,42,0.45) 60%, rgba(15,45,42,0.7) 100%);
}
.hero-bg-slide.active {
  opacity: 1;
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s;
}
.hero-dot.active {
  background: rgba(255,255,255,0.95);
}
#hero .container {
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal-light);
}
#hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-style: italic;
}
#hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  border-left: 3px solid rgba(255,255,255,0.4);
  padding-left: 16px;
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,122,110,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.hero-scroll {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}
.hero-scroll:hover {
  color: rgba(255,255,255,1);
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
}

/* --- Section Labels --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.section-title { margin-bottom: 16px; }
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* --- About --- */
#about { background: var(--teal-ghost); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--border) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--teal-mid);
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.about-photo-placeholder svg { opacity: 0.5; }
.about-photo-placeholder span { font-size: 0.85rem; font-weight: 500; opacity: 0.7; }
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 3px solid var(--gold);
}
.about-badge-icon { font-size: 1.8rem; }
.about-badge-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
}
.about-badge-text span { font-size: 0.8rem; color: var(--text-muted); }

.about-text blockquote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--teal-dark);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.7;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.about-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.about-value::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-mid);
  flex-shrink: 0;
}

/* --- Services --- */
#services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--teal-ghost);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--white);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
.service-tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 5px 12px;
  border-radius: 50px;
}

/* Memory Card (wider) */
.service-card.wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 40px;
}
.service-card.wide .service-icon { flex-shrink: 0; }
.service-card.wide .service-body { }
.memory-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.memory-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}
.memory-item--soon {
  opacity: 0.75;
  border-style: dashed;
  position: relative;
}
.coming-soon-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-pale);
  padding: 2px 8px;
  border-radius: 20px;
}
.memory-item strong {
  display: block;
  color: var(--teal-dark);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* --- Process --- */
#process { background: var(--teal-dark); }
#process .section-label { color: var(--teal-light); }
#process .section-label::before { background: var(--teal-light); }
#process .section-title { color: var(--white); }
#process .section-intro { color: rgba(255,255,255,0.65); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.process-step { padding: 0 20px; text-align: center; }
.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-light);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.process-step h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
}
.process-step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* --- Testimonial / Quote section --- */
/* ===== GALLERY ===== */
#gallery {
  padding: 80px 0;
  background: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

#quote-section {
  background: var(--gold-light);
  padding: 80px 0;
  text-align: center;
}
.big-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--teal-dark);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}
.big-quote::before {
  content: '\201C';
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-attr {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* --- Contact --- */
#contact { background: var(--teal-ghost); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-detail-text span { font-size: 0.95rem; color: var(--text-dark); }

.contact-note {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 28px;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 8px; }
.contact-form .form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(61,158,143,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.label-hint {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input.invalid,
.form-group textarea.invalid,
.checkbox-group.invalid {
  border-color: #c0392b;
}
.checkbox-group.invalid { border: 1.5px solid #c0392b; border-radius: var(--radius); padding: 12px; }

.field-error {
  display: none;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 6px;
}
.field-error.show { display: block; }

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
}
.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--teal-dark);
}
.form-success svg { margin: 0 auto 16px; color: var(--teal); }
.form-success h4 { margin-bottom: 8px; font-size: 1.2rem; }
.form-success p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Footer --- */
footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: var(--white); font-size: 1.4rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; }
.footer-col h5 {
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--teal-light); }

/* --- Scroll animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile --- */
@media (max-width: 900px) {
  :root { --section-gap: 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { bottom: 16px; right: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .memory-items { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--teal-dark);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.3rem; color: var(--white) !important; }
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .memory-items { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
