/* ==========================================
   optimanet.app – minimalist stylesheet
   ========================================== */

:root {
  --accent: #1a73e8;
  --accent-dark: #1558b0;
  --text: #202124;
  --text-muted: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e8eaed;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--bg-alt); }

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  height: 2rem;
  width: auto;
  display: block;
}

.logo span { color: var(--text); font-weight: 400; }

/* ---- Language switcher ---- */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---- Services ---- */
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- About / Contact ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-grid h2, .contact-col h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-grid p { color: var(--text-muted); margin-bottom: 0.5rem; }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.nip-badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text);
  margin-top: 0.2rem;
}

/* ---- Footer ---- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
}

footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .sep { margin: 0 0.5rem; opacity: 0.4; }

/* ---- Privacy page ---- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.prose .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 0.6rem; color: var(--accent); }
.prose p, .prose li { color: var(--text-muted); margin-bottom: 0.5rem; }
.prose ul { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.3rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }

/* ---- Utility ---- */
[lang-content] { display: none; }
[lang-content].visible { display: contents; }
