/* ═══════════════════════════════════════════════
   Benedict Neuner – Landing Page
   Editorial-Style, Anti-Template Design
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --color-bg: #ffffff;
  --color-text: #0a1628;
  --color-text-muted: #555;
  --color-text-light: #888;
  --color-accent: #1a7a6d;
  --color-accent-hover: #15665b;
  --color-dark: #0a1628;

  --font-headline: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container-max: 1280px;
  --container-px: clamp(24px, 5vw, 80px);

  --nav-height: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ── Label (uppercase section markers) ── */
.label {
  display: block;
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.label--petrol {
  color: var(--color-accent);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth), background 200ms var(--ease-smooth), color 200ms var(--ease-smooth);
  border: none;
  text-align: center;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  padding: 16px 36px;
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 20px rgba(26, 122, 109, 0.25);
}

.btn--outline {
  padding: 16px 36px;
  background: transparent;
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--nav {
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
}

.btn--nav:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 2px 12px rgba(26, 122, 109, 0.2);
}

.btn--large {
  padding: 20px 44px;
  font-size: 16px;
}

.btn--on-dark {
  background: #fff;
  color: var(--color-dark);
}

.btn--on-dark:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}


/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  transition: box-shadow 300ms var(--ease-smooth);
}

.nav--scrolled {
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  position: relative;
  transition: color 200ms var(--ease-smooth);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 300ms var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

/* Burger */
.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform 300ms var(--ease-out), opacity 200ms;
}

.nav__burger span:first-child { top: 4px; }
.nav__burger span:last-child { bottom: 4px; }

.nav__burger.is-active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav__burger.is-active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-smooth);
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-overlay__link {
  font-family: var(--font-headline);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.mobile-overlay__link:hover {
  color: var(--color-accent);
}


/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.hero__left {
  padding-top: 40px;
}

.hero__headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(44px, 5.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  position: relative;
  display: inline-block;
  font-size: 1.15em;
}

.hero__underline {
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  width: 0;
  border-radius: 2px;
}

.hero__underline.is-drawn {
  animation: drawLine 800ms 600ms var(--ease-out) forwards;
}

@keyframes drawLine {
  to { width: 100%; }
}

.hero__subtitle {
  font-family: var(--font-headline);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.7;
}

.hero__right {
  padding-top: 56px;
}

.hero__desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.hero__desc--muted {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero__image-wrap {
  margin-top: auto;
  padding-top: 80px;
}

.hero__image {
  width: 100%;
  max-width: 1100px;
  border-radius: 4px 4px 0 0;
  filter: saturate(0.85) brightness(1.02);
  object-fit: cover;
  max-height: 420px;
}


/* ═══════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════ */

.features {
  padding-top: clamp(80px, 10vw, 160px);
}

.feature {
  padding: clamp(60px, 8vw, 120px) 0;
}

.feature__grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.feature__grid--reversed {
  grid-template-columns: 4fr 5fr;
}

.feature__headline {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.feature__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.feature__body:last-child {
  margin-bottom: 0;
}

.feature__img {
  border-radius: 4px;
  filter: saturate(0.85) brightness(1.02);
  width: 100%;
  object-fit: cover;
  max-height: 400px;
}

/* Thin separator line between features */
.feature + .feature {
  border-top: 1px solid rgba(10, 22, 40, 0.06);
}


/* ═══════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════ */

.testimonials {
  padding: clamp(80px, 10vw, 160px) 0;
  border-top: 1px solid rgba(10, 22, 40, 0.06);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}

.testimonial {
  border: none;
}

.testimonial__text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
}

.testimonial__text::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 20px;
  border-radius: 2px;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
}

.testimonial__role {
  font-size: 13px;
  color: var(--color-text-light);
}


/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */

.about {
  padding: clamp(80px, 10vw, 160px) 0;
  border-top: 1px solid rgba(10, 22, 40, 0.06);
}

.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__portrait {
  border-radius: 4px;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
  filter: saturate(0) brightness(1.05) contrast(1.05);
}

.about__secondary {
  border-radius: 4px;
  width: 70%;
  max-height: 280px;
  object-fit: cover;
  filter: saturate(0.5);
}

.about__headline {
  font-family: var(--font-headline);
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 28px;
}

.about__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(60px, 8vw, 120px) 0 40px;
}

.footer__top {
  text-align: center;
  padding-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: clamp(40px, 5vw, 60px);
}

.footer__headline {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.footer__sub {
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer__label {
  display: block;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  transition: color 200ms;
}

.footer__link:hover {
  color: #fff;
}

.footer__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.footer__bottom {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}


/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }


/* ═══════════════════════════════════════════════
   RESPONSIVE – TABLET (≤ 960px)
   ═══════════════════════════════════════════════ */

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__right {
    padding-top: 0;
  }

  .feature__grid,
  .feature__grid--reversed {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* On reversed layout, put text first on mobile */
  .feature__grid--reversed {
    direction: ltr;
  }

  .feature__grid--reversed .feature__visual {
    order: 2;
  }

  .feature__grid--reversed .feature__text {
    order: 1;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__images {
    flex-direction: row;
    align-items: start;
  }

  .about__portrait {
    flex: 1;
    max-height: 360px;
  }

  .about__secondary {
    width: auto;
    flex: 0 0 40%;
    max-height: 360px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE – MOBILE (≤ 640px)
   ═══════════════════════════════════════════════ */

@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    min-height: auto;
  }

  .hero__headline {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero__ctas {
    width: 100%;
  }

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

  .hero__image {
    max-height: 260px;
  }

  .about__images {
    flex-direction: column;
  }

  .about__secondary {
    width: 60%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
