/* ============================================
   SABINE DUWE — Global Stylesheet
   Aesthetic: Refined editorial, warm & musical
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400;500;600&display=swap');

:root {
  --cream: #f7f3ee;
  --warm-white: #faf8f5;
  --charcoal: #1c1c1c;
  --mid: #5a5248;
  --light: #a09890;
  --accent: #8b4a3b;
  --accent-light: #c27a68;
  --line: rgba(90,82,72,0.18);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--warm-white);
  color: var(--charcoal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVIGATION ────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-logo {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo em {
  
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-social a {
  color: var(--light);
  transition: color 0.2s;
  display: flex;
}

.nav-social a:hover { color: var(--accent); }

.nav-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 12s ease forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,28,28,0.08) 0%,
    rgba(28,28,28,0.0) 40%,
    rgba(28,28,28,0.55) 100%
  );
}

.hero-content {
  position: relative;
  padding: 0 56px;
  animation: fadeUp 1.2s 0.3s both;
}

.hero-content h1 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-content h1 em {
  
  color: rgba(255,255,255,0.75);
}

.hero-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}

/* ── PAGE HEADER (non-home) ─────────────────── */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  margin-top: 0;
}

.page-hero .hero-img { animation: none; transform: scale(1); }

.page-hero-content {
  position: relative;
  padding: 0 56px;
  animation: fadeUp 0.9s 0.1s both;
}

.page-hero-content h1 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
}

.page-hero-content .hero-subtitle {
  margin-top: 10px;
}

/* ── CONTENT WRAPPER ────────────────────────── */
.content {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 48px;
  width: 100%;
}

.content-wide {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  width: 100%;
}

/* ── SECTION HEADINGS ──────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2.section-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 28px;
}

h2.section-title em {  color: var(--accent); }

p.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 640px;
}

p { line-height: 1.75; color: var(--mid); margin-bottom: 1em; }

/* ── DIVIDER ─────────────────────────────────── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 32px 0;
}

/* ── TIMELINE ───────────────────────────────── */
.timeline {
  position: relative;
  padding: 8px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s both;
}

.timeline-year {
  flex: 0 0 80px;
  text-align: right;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  
  color: var(--accent);
  padding-top: 2px;
}

.timeline-dot {
  flex: 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 6px;
}

.timeline-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.timeline-body {
  flex: 1;
}

.timeline-body strong {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  display: block;
  margin-bottom: 2px;
}

.timeline-body p {
  font-size: 0.88rem;
  color: var(--light);
  margin: 0;
}

/* ── LINK LIST ───────────────────────────────── */
.link-list {
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.link-list li:first-child { border-top: 1px solid var(--line); }

.link-list a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s, gap 0.2s;
}

.link-list a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.link-list a:hover { color: var(--accent); gap: 18px; }
.link-list a:hover::before { transform: translateX(4px); }

/* ── CARDS ───────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--cream);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card:hover::before { transform: scaleX(1); }

.card h3 {
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.card p { font-size: 0.88rem; color: var(--mid); margin: 0; }

/* ── PHOTO GRID ────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 40px;
}

.photo-grid .photo-item {
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}

.photo-grid .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.photo-grid .photo-item:hover img { transform: scale(1.06); }

/* ── CONTACT FORM ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Jost', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-detail svg {
  width: 18px; height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail span { font-size: 0.92rem; line-height: 1.6; color: var(--mid); }

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

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

.btn-send {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.btn-send:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  background: #eef7f0;
  border: 1px solid #9ec9a8;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #3a7a47;
  margin-top: 16px;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 48px;
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--accent-light); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }

  .nav-links, .nav-social { display: none; }

  .hamburger { display: flex; }

  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--warm-white);
    padding: 28px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 22px;
    z-index: 99;
    animation: fadeUp 0.2s both;
  }

  /* nav-social is moved inside nav-links by JS on mobile — no separate positioning needed */

  .hero-content, .page-hero-content { padding: 0 24px; }

  .content, .content-wide { padding: 56px 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

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

  .timeline::before { left: 68px; }
  .timeline-year { flex: 0 0 60px; font-size: 0.78rem; }
}

/* ── TRANSPARENT NAV OVERRIDES ───────────────── */
/* Logo & links appear white over hero photos */
nav:not(.scrolled) .nav-logo          { color: rgba(255,255,255,0.92); }
nav:not(.scrolled) .nav-logo em       { color: rgba(255,255,255,0.7); }
nav:not(.scrolled) .nav-links a       { color: rgba(255,255,255,0.8); }
nav:not(.scrolled) .nav-links a:hover { color: #fff; }
nav:not(.scrolled) .nav-links a::after{ background: rgba(255,255,255,0.7); }
nav:not(.scrolled) .nav-social a      { color: rgba(255,255,255,0.6); }
nav:not(.scrolled) .nav-social a:hover{ color: #fff; }
nav:not(.scrolled) .hamburger span    { background: #fff; }

/* ── MOBILE OPEN STATE: always solid, regardless of hero/scroll ── */
@media (max-width: 768px) {
  nav.open {
    background: rgba(250,248,245,0.98) !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  }
  nav.open .nav-logo                    { color: var(--charcoal) !important; }
  nav.open .nav-logo em                 { color: var(--accent) !important; }
  nav.open .hamburger span              { background: var(--charcoal) !important; }
  nav.open .nav-links a                 { color: var(--mid) !important; }
  nav.open .nav-links a:hover           { color: var(--charcoal) !important; }
  nav.open .nav-links a::after          { background: var(--accent) !important; }
  nav.open .nav-social a                { color: var(--light) !important; }
  nav.open .nav-social a:hover          { color: var(--accent) !important; }
}
