/* Oratis Blog - Design System */

:root {
  --primary: #004C2A;
  --primary-dark: #003319;
  --primary-light: #E6F2EC;
  --primary-soft: #D0E5D9;
  --accent: #007A44;
  --text: #0B1F15;
  --text-muted: #4B5A52;
  --text-light: #8A9A92;
  --bg: #FFFFFF;
  --bg-alt: #F6FAF7;
  --bg-dark: #002817;
  --border: #DCE8E1;
  --success: #10B981;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --max-width: 1200px;
  --content-width: 760px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin: 2rem 0 0.75rem; }
h4 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }

p { margin-bottom: 1.25rem; color: var(--text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a.active { color: var(--primary); }

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}
.lang-switcher a {
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 6px;
}
.lang-switcher a.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

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

/* Hero */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.hero .eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  background: linear-gradient(135deg, #0B1F15 0%, #004C2A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Article cards grid */
.section {
  padding: 4rem 1.5rem;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { margin-top: 0; }
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.article-card-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light) 0%, #F0F7F3 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.article-card-cover.variant-1 { background: linear-gradient(135deg, #E6F2EC 0%, #C7E0D1 100%); }
.article-card-cover.variant-2 { background: linear-gradient(135deg, #D8ECE0 0%, #A8D3B8 100%); }
.article-card-cover.variant-3 { background: linear-gradient(135deg, #EEF5F0 0%, #CFE3D6 100%); }
.article-card-cover.variant-4 { background: linear-gradient(135deg, #004C2A 0%, #007A44 100%); color: #E6F2EC; }
.article-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-category {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.article-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.article-card h3 a { color: inherit; }
.article-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

/* Article page */
.article-header {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #FFFFFF 100%);
}
.article-header .eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.article-header h1 { max-width: 840px; margin: 0 auto 1rem; }
.article-header .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta .dot { color: var(--border); }

.article-body {
  max-width: var(--content-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body p { margin-bottom: 1.5rem; color: #1E293B; }
.article-body h2 {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
  border-top: 3px solid var(--primary-light);
  padding-top: 2rem;
}
.article-body h2:first-child { margin-top: 0; border: none; padding-top: 0; }
.article-body h3 { margin-top: 2.5rem; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; }
.article-body ul li, .article-body ol li { margin-bottom: 0.6rem; color: #1E293B; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.1rem;
}
.article-body blockquote cite {
  display: block;
  font-style: normal;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.article-body .callout {
  background: linear-gradient(135deg, var(--primary-light) 0%, #F0F7F3 100%);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid var(--primary-soft);
}
.article-body .callout strong { color: var(--primary-dark); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-body th, .article-body td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body th { background: var(--bg-alt); font-weight: 700; color: var(--text); }
.article-body tr:last-child td { border-bottom: none; }

.article-body code {
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.toc-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.4rem; color: var(--text-muted); }
.toc li a { color: var(--text); }
.toc li a:hover { color: var(--primary); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
}
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}
.faq-item p { margin: 0; color: var(--text-muted); }

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem auto;
  max-width: var(--content-width);
}
.cta-box h2 { color: white; margin-top: 0; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 520px; margin: 0 auto 1.5rem; }
.cta-box .btn-primary { background: white; color: var(--primary); }
.cta-box .btn-primary:hover { background: #F0F7F3; color: var(--primary-dark); }

/* Related articles */
.related {
  background: var(--bg-alt);
  padding: 4rem 1.5rem;
}
.related .section-title h2 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #C7DBCF;
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: white; }
.footer-brand p { color: #9CB5A6; margin-top: 1rem; max-width: 340px; font-size: 0.95rem; }
.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #C7DBCF; font-size: 0.95rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #003319;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #8FAD9E;
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 0.5rem; color: var(--border); }

/* Language selector homepage */
.lang-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #FFFFFF 100%);
}
.lang-landing-inner { text-align: center; max-width: 820px; }
.lang-landing h1 { margin-bottom: 1rem; }
.lang-landing p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 3rem; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
.lang-card {
  padding: 1.75rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
  color: var(--text);
}
.lang-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}
.lang-card .flag { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.lang-card .lang-name { font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 0.25rem; }
.lang-card .lang-native { color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
  .hero { padding: 3rem 1.5rem; }
  .article-body h2 { margin-top: 2.5rem; padding-top: 1.25rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .lang-switcher { display: none; }
}
