/* ============================================================
   Sino Nexvia — design tokens
   Palette: deep pine + clean paper + water teal accent
   ============================================================ */
:root {
  --ink:        #0f1f1a;   /* deep pine, near-black green */
  --pine:       #163a2e;   /* primary brand green */
  --pine-soft:  #2a5a48;
  --paper:      #f6f4ee;   /* warm off-white */
  --paper-2:    #ece8dd;
  --water:      #1ba6a0;   /* teal water accent */
  --water-deep: #0e7a76;
  --line:       #d8d2c4;
  --muted:      #5c6b63;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--water-deep);
  margin-bottom: 1rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(246,244,238,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
}
.wordmark-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--water);
  margin: 0 2px 0 3px;
  transform: translateY(2px);
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem); }
.nav a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--pine); }
.nav-cta {
  border: 1px solid var(--pine);
  color: var(--pine) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--pine); color: var(--paper) !important; }

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 6vw, 4rem); }
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  margin-bottom: 1.5rem;
  color: var(--pine);
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--water-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--pine); }
.btn-ghost:hover { border-color: var(--pine); }

/* Hero visual — stylized drip irrigation line */
.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drip-system {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 300px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(27,166,160,0.16), transparent 60%),
    var(--pine);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,31,26,0.5);
}
.drip-system .line {
  position: absolute;
  top: 38px; left: 0; right: 0;
  height: 4px;
  background: var(--water);
  opacity: 0.85;
}
.drip-system .line::before,
.drip-system .line::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px;
  background: var(--water);
}
.drip-system .line::before { left: 22%; }
.drip-system .line::after  { left: 72%; }
.drop {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--water);
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  opacity: 0;
  animation: drip 3.2s infinite ease-in;
}
.d1 { left: 22%; animation-delay: 0s; }
.d2 { left: 47%; animation-delay: 0.8s; }
.d3 { left: 72%; animation-delay: 1.6s; }
.d4 { left: 47%; top: 0; animation-delay: 2.4s; }
@keyframes drip {
  0%   { top: 44px; opacity: 0; }
  15%  { opacity: 1; }
  80%  { top: 250px; opacity: 1; }
  100% { top: 260px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .drop { animation: none; opacity: 0.6; top: 140px; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 220px; }
  .drip-system { height: 220px; }
}

/* ============================================================
   Strip
   ============================================================ */
.strip {
  background: var(--pine);
  color: var(--paper);
  padding: 1rem var(--gutter);
}
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.strip .sep { color: var(--water); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 40ch; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); color: var(--pine); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -25px rgba(15,31,26,0.4); }
.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--water-deep);
  display: block;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--ink); }
.card p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   Partner
   ============================================================ */
.partner { }
.partner-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
}
.partner-grid h2 { color: var(--paper); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
.partner-grid .eyebrow { color: var(--water); }
.partner-copy p { color: rgba(246,244,238,0.78); max-width: 52ch; }
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}
.facts li {
  font-size: 1.05rem;
  font-weight: 500;
}
.facts li span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--water);
  margin-bottom: 0.3rem;
}
.partner-mark { display: flex; justify-content: center; }
.mark-ring {
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px solid var(--water);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mark-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(27,166,160,0.4);
}
.mark-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--water);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .partner-grid { grid-template-columns: 1fr; text-align: left; }
  .partner-mark { order: -1; justify-content: flex-start; }
}

/* ============================================================
   Team
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.member {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
}
.member-initials {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.member h3 { font-size: 1.4rem; color: var(--ink); }
.member .role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--water-deep);
  margin-bottom: 1rem;
}
.member a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  transition: color 0.2s;
  word-break: break-word;
}
.member a:hover { color: var(--pine); }

@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }

/* ============================================================
   Contact
   ============================================================ */
.contact { }
.contact-inner {
  background: linear-gradient(135deg, var(--pine), var(--water-deep));
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.contact-inner .eyebrow { color: rgba(246,244,238,0.85); }
.contact-inner h2 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 3rem); }
.contact-lede {
  max-width: 44ch;
  margin: 1rem auto 2rem;
  color: rgba(246,244,238,0.85);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.contact .btn-primary { background: var(--paper); color: var(--pine); }
.contact .btn-primary:hover { background: #fff; }
.contact .btn-ghost { border-color: rgba(246,244,238,0.5); color: var(--paper); }
.contact .btn-ghost:hover { border-color: var(--paper); }

/* ============================================================
   Impressum — compact site note
   ============================================================ */
.impressum-note {
  max-width: var(--maxw);
  margin: 1.25rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}
.impressum-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--water-deep);
  margin-right: 0.5rem;
}
.impressum-note a { color: var(--muted); transition: color 0.2s; }
.impressum-note a:hover { color: var(--pine); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
}
.footer-meta { font-size: 0.82rem; color: var(--muted); }

/* Focus visibility */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
}
