/* ECOMEKEN — eco-tech visual style: dark graphite-green base, organic
   blurred shapes over a faint dot-grid, green/cyan accents.
   Fonts: Space Grotesk (headings), Manrope (body). */

:root {
  --bg: #0e1712;
  --bg-panel: #121d17;
  --bg-surface: #16221b;
  --border: rgba(233, 241, 233, 0.08);
  --border-strong: rgba(233, 241, 233, 0.16);
  --text-primary: #eef3ee;
  --text-secondary: rgba(238, 243, 238, 0.72);
  --text-tertiary: rgba(238, 243, 238, 0.52);
  --accent-green: #5fd98a;
  --accent-green-strong: #38b86a;
  --accent-cyan: #34d1c4;
  --accent-gradient: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.32);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Background texture: faint dot-grid + organic blurred blobs, fixed behind content */
.bg-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(233, 241, 233, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  background-color: var(--bg);
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.bg-blob--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--accent-green); }
.bg-blob--2 { width: 460px; height: 460px; bottom: 10%; left: -180px; background: var(--accent-cyan); opacity: 0.22; }
.bg-blob--3 { width: 380px; height: 380px; top: 55%; right: 10%; background: var(--accent-green-strong); opacity: 0.16; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 23, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; }
.brand img { height: 32px; width: auto; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #0e1712; font-weight: 700;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: var(--text-secondary); font-size: 0.95rem; transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text-primary); }

.lang-switch { display: flex; gap: 4px; margin-left: 8px; }
.lang-switch a {
  font-size: 0.8rem; font-weight: 600; padding: 4px 8px; border-radius: 6px;
  color: var(--text-tertiary); border: 1px solid transparent;
}
.lang-switch a.active { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-surface); }
.lang-switch a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-gradient); color: #0b140f; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-surface); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 820px;
  margin-left: auto; margin-right: auto;
  background: linear-gradient(120deg, var(--text-primary) 60%, var(--accent-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  max-width: 620px; margin: 0 auto 2.2em; color: var(--text-secondary); font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Two directions ---------- */
.two-directions { padding: 64px 0; }
.two-directions .section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.two-directions h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.two-directions .lede { color: var(--text-secondary); font-size: 1.05rem; }

.direction-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}
.direction-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.direction-card .eyebrow { color: var(--accent-green); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.direction-card h3 { font-size: 1.2rem; }
.direction-card p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }
.direction-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent-cyan); font-size: 1.6rem; }

/* ---------- Services ---------- */
.services { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--text-secondary); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(95, 217, 138, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-green);
}
.service-card h3 { font-size: 1.1rem; }
.service-card p.desc { color: var(--text-secondary); font-size: 0.92rem; flex-grow: 1; }
.service-meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 12px; font-size: 0.85rem; }
.service-meta .price { color: var(--accent-green); font-weight: 700; }
.service-meta .duration { color: var(--text-tertiary); }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 8px 0 72px; }
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.trust-item svg { color: var(--accent-cyan); flex-shrink: 0; }

/* ---------- Projects ---------- */
.projects { padding: 72px 0; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.project-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(52, 209, 196, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan);
}
.project-card h3 { font-size: 1.1rem; }
.project-card p.desc { color: var(--text-secondary); font-size: 0.92rem; flex-grow: 1; }
.project-status {
  display: inline-flex; align-self: flex-start;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-tertiary);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-green); font-weight: 600; font-size: 0.92rem;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.project-link:hover { color: var(--accent-cyan); }

/* ---------- Contact ---------- */
.contact { padding: 72px 0 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-info p.lede { color: var(--text-secondary); }
.contact-detail { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 0.98rem; }
.contact-detail .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent-green); flex-shrink: 0; }
.contact-detail .label { display: block; color: var(--text-tertiary); font-size: 0.78rem; }
.contact-detail .value { color: var(--text-primary); }
.contact-detail .placeholder { color: var(--text-tertiary); font-style: italic; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text-primary);
  font-family: inherit; font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent-green);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { position: absolute; left: -9999px; } /* honeypot */
.form-alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: 0.92rem; }
.form-alert.success { background: rgba(95, 217, 138, 0.12); color: var(--accent-green); border: 1px solid rgba(95, 217, 138, 0.3); }
.form-alert.error { background: rgba(217, 95, 95, 0.12); color: #e88; border: 1px solid rgba(217, 95, 95, 0.3); }

/* ---------- News ---------- */
.news-page { padding: 96px 0 96px; }
.news-page .section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.news-page .section-head h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.news-page .section-head p { color: var(--text-secondary); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 28px;
}
.back-link:hover { color: var(--accent-green); }

.news-empty { color: var(--text-secondary); text-align: center; padding: 40px 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.news-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.news-date { color: var(--accent-cyan); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.news-card h2 { font-size: 1.15rem; margin: 0; }
.news-card p.desc { color: var(--text-secondary); font-size: 0.92rem; flex-grow: 1; margin: 0; }
.news-readmore { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-green); font-weight: 600; font-size: 0.9rem; }

.news-article { max-width: 720px; margin: 0 auto; }
.news-article h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-top: 8px; }
.news-article .prose { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; margin-top: 24px; }
.news-article .prose p { margin: 0 0 1.3em; }
.news-source {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text-tertiary); font-size: 0.88rem;
}
.news-source a { color: var(--accent-green); }
.news-source a:hover { color: var(--accent-cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-tertiary); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; padding: 28px; }
  .direction-flow { grid-template-columns: 1fr; }
  .direction-arrow { transform: rotate(90deg); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; padding: 32px 24px; gap: 24px; transform: translateX(100%); transition: transform 0.2s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text-primary); cursor: pointer; }
  .header-actions .btn-primary.btn-sm { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  .contact-grid { padding: 22px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
