/* GoGrün — Premium sustainability site */

body {
  color: #374151;
}

h1, h2, h3, h4, h5, h6 {
  color: #1f2937;
}

p {
  color: #374151;
}

strong {
  color: #1f2937;
}

/* ── Premium site base ── */
.premium-site {
  background: linear-gradient(180deg, #f8f7f4 0%, #f3f2ee 50%, #f8f7f4 100%);
}

.section-premium {
  position: relative;
}

.section-dark {
  position: relative;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}

/* Default: over dark hero — white text */
#navbar .nav-logo-text {
  color: #fff;
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

#navbar .nav-link:hover {
  color: #fff;
}

#navbar .nav-menu-icon {
  color: #fff;
}

/* Scrolled or past hero — dark readable text */
#navbar.nav-solid {
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(22, 58, 45, 0.08);
  box-shadow: 0 4px 32px -8px rgba(15, 31, 24, 0.08);
}

#navbar.nav-solid .nav-logo-text {
  color: #1a4635;
}

#navbar.nav-solid .nav-link {
  color: #374151;
}

#navbar.nav-solid .nav-link:hover {
  color: #1a4635;
}

#navbar.nav-solid .nav-menu-icon {
  color: #1a4635;
}

#navbar.nav-solid #menu-btn:hover {
  background: rgba(22, 58, 45, 0.06);
}

#navbar nav {
  min-height: 3.5rem;
}

/* ── Section labels & accents ── */
.section-label {
  letter-spacing: 0.08em;
  font-variant: small-caps;
}

.accent-line {
  width: 3rem;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4da96a, #348a62);
}

/* ── Hero ── */
.hero-premium {
  padding-bottom: 0;
}

.hero-fullwidth {
  width: 100%;
}

.hero-shell {
  box-shadow: none;
  border-radius: 0;
  min-height: auto;
}

@media (max-width: 1023px) {
  .hero-shell {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero-inner {
    min-height: calc(100svh - 1rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-shell {
    min-height: min(85svh, 720px);
  }
}

@media (min-width: 1024px) {
  .hero-shell {
    min-height: min(92vh, 860px);
    align-items: center;
  }
}

.hero-picture {
  display: block;
}

.hero-picture img {
  display: block;
}

.hero-bg-img {
  transition: transform 0.1s linear;
  object-position: center center;
}

@media (min-width: 1024px) {
  .hero-bg-img {
    object-position: center 30%;
  }
}

.hero-grain {
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

.hero-glow {
  animation: hero-pulse 8s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* ── Glass & premium cards ── */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 24px 64px -16px rgba(0, 0, 0, 0.35);
}

.premium-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-2px);
}

.premium-cta {
  position: relative;
  overflow: hidden;
}

.premium-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 169, 106, 0.3), transparent);
}

/* ── Buttons ── */
.btn-premium {
  position: relative;
  overflow: hidden;
}

.btn-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* ── About section ── */
.about-section {
  position: relative;
  background: linear-gradient(180deg, #f8f7f4 0%, #fff 40%, #f8f7f4 100%);
}

.about-lead {
  max-width: 36rem;
}

.about-image-frame {
  position: relative;
  padding: 0 0 0 1.5rem;
}

.about-image-accent {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 2rem;
  bottom: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #dceee4 0%, #b8ddc9 100%);
  z-index: 0;
}

@media (min-width: 1024px) {
  .about-image-accent {
    border-radius: 2rem;
  }
}

.about-image-main {
  position: relative;
  z-index: 1;
  box-shadow:
    0 4px 40px -8px rgba(15, 31, 24, 0.15),
    0 0 0 1px rgba(22, 58, 45, 0.04);
}

.about-image-main img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-visual:hover .about-image-main img {
  transform: scale(1.03);
}

.about-highlight {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -12px rgba(15, 31, 24, 0.12);
}

.about-tag {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f5840;
  background: #f0f7f4;
  border: 1px solid #dceee4;
}

@media (max-width: 640px) {
  .about-image-frame {
    padding-left: 0.75rem;
  }
}

/* ── Service cards ── */
.service-card .service-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 31, 24, 0.15) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-img-wrap::after {
  opacity: 1;
}

/* ── Mission ── */
.mission-visual {
  box-shadow:
    0 4px 40px -8px rgba(15, 31, 24, 0.12),
    0 0 0 1px rgba(22, 58, 45, 0.04);
}

/* ── Contact ── */
.contact-form-card {
  position: relative;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 169, 106, 0.2), transparent);
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  box-shadow: 0 2px 8px -2px rgba(15, 31, 24, 0.06);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-social:hover {
  border-color: #4da96a;
  color: #1a4635;
  background: #f0f7f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px -4px rgba(77, 169, 106, 0.2);
}

/* ── Footer ── */
footer {
  background: linear-gradient(180deg, #0b2019 0%, #0f1f18 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04) inset;
  color: #f3f4f6;
}

footer p,
footer a,
footer li {
  color: #f3f4f6;
}

footer a:hover {
  color: #fff;
}

/* ── Dark section text ── */
.text-on-dark h1,
.text-on-dark h2,
.text-on-dark h3,
.text-on-dark h4,
.text-on-dark p,
.text-on-dark blockquote p,
.text-on-dark {
  color: inherit;
}

.text-on-dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Selection ── */
::selection {
  background-color: #b8ddc9;
  color: #163a2d;
}

/* ── Animation targets ── */
.reveal,
.service-card,
.contact-card,
.hero-content > *,
.hero-visual,
.hero-card,
.hero-float,
.about-visual,
.mission-visual,
.mission-cta,
.contact-form {
  will-change: transform, opacity;
}

.service-img-wrap img,
.mission-visual img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-img-wrap img,
.mission-visual:hover img {
  transform: scale(1.05);
}

.service-img-wrap {
  position: relative;
  overflow: hidden;
}

/* ── Focus states ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #5cb87a;
  outline-offset: 2px;
}

/* ── Form inputs (boxed) ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid #dceee4;
  background: #fff;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:hover {
  border-color: #b8ddc9;
}

.form-input:focus {
  border-color: #5cb87a;
  box-shadow: 0 0 0 3px rgba(92, 184, 122, 0.15);
  outline: none;
}

/* ── Contact form underline inputs ── */
.contact-form-card h3 {
  color: #1f2937;
}

.contact-form-card p {
  color: #374151;
}

.form-input-underline {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.form-input-underline::placeholder {
  color: #9ca3af;
}

.form-input-underline:hover {
  border-bottom-color: #9ca3af;
}

.form-input-underline:focus {
  border-bottom-color: #1a4635;
  color: #1f2937;
  outline: none;
  box-shadow: none;
}

.form-select-underline {
  appearance: none;
  cursor: pointer;
  color: #9ca3af;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1.25rem;
  padding-right: 1.75rem;
}

.form-select-underline:valid,
.form-select-underline:focus {
  color: #374151;
}

.form-select-underline option {
  color: #374151;
  background: #fff;
}

/* ── Form status ── */
.form-status.success {
  background: #f0f7f4;
  color: #1f5840;
  border: 1px solid #b8ddc9;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow {
    animation: none;
  }

  .service-img-wrap img,
  .mission-visual img,
  .premium-card {
    transition: none;
  }

  .premium-card:hover {
    transform: none;
  }
}
