/* =========================================================
   Everyday Elements — Brand Site
   CI: Montserrat · #6AB392 (green) · #3C5C5E (petrol) · #F4A261 (orange)
   ========================================================= */

@import url('../fonts/fonts.css');

:root {
  --green:        #6AB392;
  --green-dark:   #589a7c;
  --petrol:       #3C5C5E;
  --petrol-deep:  #2f494b;
  --orange:       #F4A261;
  --orange-deep:  #e08c46;
  --grey-light:   #C7C7C7;
  --grey:         #737473;
  --ink:          #2b3a3b;
  --cream:        #FBFAF6;
  --cream-2:      #F4F1E9;
  --white:        #ffffff;

  --radius:       18px;
  --radius-lg:    28px;
  --radius-pill:  999px;
  --shadow-sm:    0 4px 16px rgba(60,92,94,.07);
  --shadow:       0 14px 40px rgba(60,92,94,.12);
  --maxw:         1180px;
  --font:         'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--petrol); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--petrol); margin: 0 0 .5em; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(244,162,97,.35); }
.btn-primary:hover { background: var(--orange-deep); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--petrol); border-color: rgba(60,92,94,.25); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,246,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(60,92,94,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 1; min-width: 0; text-decoration: none; }
.brand-emblem { height: 56px; width: auto; display: block; flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--font); letter-spacing: .12em; }
.brand-wordmark .bw-everyday { color: var(--petrol); font-weight: 600; font-size: 1.05rem; }
.brand-wordmark .bw-elements { color: var(--green);  font-weight: 600; font-size: 1.05rem; margin-top: 6px; }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(60,92,94,.14);
  border-radius: var(--radius-pill);
  padding: 7px 12px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .85rem; color: var(--petrol);
  box-shadow: var(--shadow-sm);
}
.lang-toggle img { height: 16px; width: 24px; border-radius: 3px; }
.lang-toggle .chev { transition: transform .2s ease; opacity:.55; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid rgba(60,92,94,.12);
  border-radius: 14px; box-shadow: var(--shadow);
  min-width: 180px; padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .18s ease; overflow: hidden;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.lang-menu a:hover { background: var(--cream-2); color: var(--petrol); }
.lang-menu a img { height: 15px; width: 22px; border-radius: 3px; }
.lang-menu a.active { font-weight: 700; color: var(--green-dark); }
.lang-menu .soon { opacity: .5; cursor: default; pointer-events: none; }
.lang-menu .soon::after { content: 'bald'; margin-left: auto; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(244,162,97,.16), transparent 60%),
    radial-gradient(900px 520px at 8% 12%, rgba(106,179,146,.18), transparent 60%),
    var(--cream);
}
.hero .container { position: relative; z-index: 2; }
.launch-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--petrol);
  border: 1px solid rgba(106,179,146,.4);
  padding: 8px 16px 8px 12px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .82rem; letter-spacing: .03em;
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.launch-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(244,162,97,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,162,97,.55); }
  70% { box-shadow: 0 0 0 10px rgba(244,162,97,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,162,97,0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -.01em;
  max-width: 14ch;
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--green); }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--grey);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero grid: emblem left, text right */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 56px;
  align-items: center;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(60,92,94,.18));
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-text { min-width: 0; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Section base ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--grey); font-size: 1.08rem; }

/* ---------- Purpose band (image left, text right) ---------- */
.purpose {
  background: var(--petrol);
  color: #eaf2f0;
}
.purpose .container.purpose-grid {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 56px;
  align-items: center;
}
.purpose-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  aspect-ratio: 4/3;
  background: #2f494b;
}
.purpose-art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.2s ease;
}
.purpose-art:hover img { transform: scale(1.04); }
.purpose-text { text-align: left; }
.purpose-text h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 .4em; }
.purpose-text p { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.purpose .tag { color: var(--orange); font-weight: 700; letter-spacing: .04em; font-size: 1.25rem; }
.purpose .purpose-tag-line { text-align: center; margin-top: 32px; }

/* ---------- Values ---------- */
.values-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
.value-card {
  position: relative;
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(60,92,94,.06);
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
  isolation: isolate;
  
}

/* Additive fade-in: cards stay visible if JS fails; JS toggles fade-pending */
.value-card.fade-pending { opacity: 0; transform: translateY(28px); }
.value-card.in-view {
  opacity: 1; transform: translateY(0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.value-card.in-view {
  opacity: 1; transform: translateY(0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.value-card.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: .18;
  z-index: -2;
  transition: opacity .4s ease, transform 1.2s ease;
}
.value-card.has-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.97) 60%, #fff 100%);
  z-index: -1;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card.has-image:hover::before { opacity: .35; transform: scale(1.05); }
.value-card.has-image:hover::after {
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.92) 70%, rgba(255,255,255,.98) 100%);
}
.value-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.value-icon svg { width: 28px; height: 28px; }
.v-green { background: rgba(106,179,146,.20); color: var(--green-dark); }
.v-orange { background: rgba(244,162,97,.22); color: var(--orange-deep); }
.v-petrol { background: rgba(60,92,94,.15); color: var(--petrol); }
.value-card h3 { font-size: 1.18rem; position: relative; }
.value-card p { color: var(--grey); font-size: .96rem; margin: 0; position: relative; }
@media (prefers-reduced-motion: reduce) {
  .value-card { opacity: 1; transform: none; transition: none; }
}

/* ---------- USP ---------- */
.usp { background: var(--cream-2); }
.usp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.usp-pills { display: grid; gap: 18px; }
.usp-pill {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.usp-pill .num {
  flex: 0 0 auto; width: 56px; height: 56px;
  display: grid; place-items: center;
  background: transparent;
}
.usp-pill .num.laurel img { width: 56px; height: 56px; display: block; }
.usp-pill h4 { margin: 2px 0 4px; font-size: 1.05rem; }
.usp-pill p { margin: 0; color: var(--grey); font-size: .94rem; }
.usp-claim h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- Animated slogan rotator ---------- */
.usp-claim .slogan {
  display: inline-flex; align-items: baseline; gap: .35em;
  margin-top: 18px; font-weight: 700; color: var(--green); font-size: 1.25rem;
  line-height: 1.3;
}
.slogan-rotator .sr-static { color: var(--green); font-weight: 700; }
.slogan-rotator .sr-stack {
  position: relative; display: inline-block;
  height: 1.3em;
  min-width: 11ch;
  overflow: hidden;
  vertical-align: bottom;
}
.slogan-rotator .sr-word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  color: var(--green);
  opacity: 0;
  transform: translateY(100%);
  animation: sr-rotate 6s infinite cubic-bezier(.65,.05,.36,1);
}
.slogan-rotator .sr-word:nth-child(1) { animation-delay: 0s; }
.slogan-rotator .sr-word:nth-child(2) { animation-delay: 2s; }
.slogan-rotator .sr-word:nth-child(3) { animation-delay: 4s; }
.slogan-rotator .sr-dot { color: var(--green); font-weight: 700; }
@keyframes sr-rotate {
  0%   { opacity: 0; transform: translateY(100%); color: var(--green); }
  6%   { opacity: 1; transform: translateY(0);     color: var(--orange); }
  28%  { opacity: 1; transform: translateY(0);     color: var(--orange); }
  34%  { opacity: 0; transform: translateY(-100%); color: var(--orange); }
  100% { opacity: 0; transform: translateY(-100%); color: var(--green); }
}
@media (prefers-reduced-motion: reduce) {
  .slogan-rotator .sr-word { animation: none; opacity: 1; position: static; }
  .slogan-rotator .sr-word + .sr-word::before { content: ", "; }
}

/* ---------- Purpose section: standalone centered tag line ---------- */
.purpose { text-align: center; }
.purpose-tag-line {
  margin-top: 28px;
  text-align: center;
}
.purpose-tag-line .tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .01em;
}

/* ---------- Animated slogan rotator (JS-driven, robust) ---------- */
.usp-claim .slogan {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1.4;
}
.slogan-rotator .sr-static {
  color: var(--green);
  margin-right: .35em;
}
.slogan-rotator .sr-current {
  color: var(--orange);
  display: inline-block;
  min-width: 1ch;
  transition: opacity .35s ease, transform .35s ease;
}
.slogan-rotator .sr-current.sr-out {
  opacity: 0;
  transform: translateY(-12px);
}
.slogan-rotator .sr-current.sr-in {
  animation: sr-slide-in .4s ease both;
}
@keyframes sr-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .slogan-rotator .sr-current { transition: none; animation: none; }
}

/* ---------- Newsletter / Signup ---------- */
.signup {
  background:
    radial-gradient(700px 320px at 85% 20%, rgba(106,179,146,.16), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(244,162,97,.14), transparent 60%),
    var(--cream-2);
  padding: 96px 0;
}
.signup-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(60,92,94,.06);
}
.signup-card h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.signup-card p { color: var(--grey); margin-bottom: 24px; }
.signup-form {
  display: flex;
  gap: 10px;
  background: var(--cream);
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(60,92,94,.1);
  margin: 20px 0 10px;
}
.signup-form input[type=email] {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 12px 18px;
  font: inherit; font-size: 1rem;
  color: var(--ink);
}
.signup-form input::placeholder { color: var(--grey); }
.signup-form .btn { white-space: nowrap; }
.form-msg {
  display: none;
  color: var(--green-dark);
  font-weight: 600;
  margin: 12px 0 0;
}
.signup-note { font-size: .82rem; color: var(--grey); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol);
  color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--orange); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand img { height: 80px; width: auto; margin-bottom: 18px; display: block; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .92rem; margin: 0 0 18px; max-width: 36ch; }
.haendlerbund {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
}
.haendlerbund img { height: 40px; width: auto; display: block; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: .95rem; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}


/* Haendlerbund logo: needs white background for visibility on dark footer */
.footer-brand a[href*="haendlerbund"] {
  display: inline-block; padding: 0; margin-top: 14px;
}
.footer-brand a[href*="haendlerbund"] img { display: block; height: 56px; width: auto; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(220px, 320px) 1fr; gap: 32px; }
  .purpose .container.purpose-grid { grid-template-columns: 1fr; gap: 32px; }
  .purpose-art { max-width: 520px; margin: 0 auto; }
  .purpose-text { text-align: center; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; max-width: 70%; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-emblem { height: 44px; }
  .brand-wordmark .bw-everyday, .brand-wordmark .bw-elements { font-size: .82rem; }
  .header-inner { min-height: 72px; }
  .signup-card { padding: 32px 22px; }
  .signup-form { flex-direction: column; padding: 14px; }
  .signup-form .btn { width: 100%; justify-content: center; }
  .footer-brand img { height: 64px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
