@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #f7f8fa;
  --fg: #1a1f2e;
  --card: #ffffff;
  --primary: #0e6e82;
  --primary-fg: #ffffff;
  --secondary: #e8a820;
  --muted: #6b7280;
  --accent-bg: #e0f2f6;
  --accent-fg: #0a5a6b;
  --border: #e2e5ea;
  --radius: 12px;
  --shadow: 0 4px 24px -4px rgba(26,31,46,0.08);
  --shadow-hover: 0 8px 32px -4px rgba(26,31,46,0.14);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', system-ui, sans-serif; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #1a3a5c);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.logo-sub { font-size: 0.7rem; color: var(--muted); display: block; }

.nav { display: flex; gap: 1.5rem; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--fg); }

/* Hero */
.hero {
  position: relative; color: white; padding: 5rem 0; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; background: rgba(14,110,130,0.7);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  font-weight: 500; border-radius: var(--radius); font-size: 0.9rem;
  transition: opacity 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: white; color: var(--fg); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn:hover { opacity: 0.85; }

/* Features */
.features { padding: 4rem 0; background: var(--card); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature { text-align: center; padding: 1.5rem; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.4rem; color: var(--accent-fg);
}
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature p { font-size: 0.875rem; color: var(--muted); }

/* Articles Grid */
.articles { padding: 4rem 0; }
.articles-header { text-align: center; margin-bottom: 3rem; }
.articles-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.articles-header p { color: var(--muted); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-img {
  height: 192px; overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.badge {
  font-size: 0.7rem; font-weight: 500; padding: 0.25rem 0.75rem;
  border-radius: 999px; background: var(--accent-bg); color: var(--accent-fg);
}
.card-meta span { font-size: 0.75rem; color: var(--muted); }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.card h3 a:hover { color: var(--primary); }
.card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.read-more { font-size: 0.875rem; font-weight: 500; color: var(--primary); }

/* CTA */
.cta { padding: 4rem 0; background: var(--accent-bg); text-align: center; }
.cta h2 { font-size: 1.6rem; font-weight: 700; color: var(--accent-fg); margin-bottom: 1rem; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-cta { background: var(--primary); color: white; }

/* Footer */
.footer { background: var(--fg); color: white; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { font-size: 0.875rem; opacity: 0.7; transition: opacity 0.2s; }
.footer a:hover { opacity: 1; }
.footer p { font-size: 0.875rem; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; opacity: 0.6; }

/* Article Page */
.article-page { padding: 3rem 0; }
.article-page .back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.article-page .back:hover { color: var(--fg); }
.article-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.article-page .hero-img {
  height: 256px; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem;
}
.article-page .hero-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-content h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }
.article-content p { color: var(--muted); margin-bottom: 1rem; }
.article-content ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--fg); }

/* Legal Pages */
.legal-page { padding: 4rem 0; }
.legal-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.legal-page .date { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-page h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-page p { color: var(--muted); margin-bottom: 1rem; }
.legal-page ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.25rem; }
.legal-page strong { color: var(--fg); }
.legal-page a { color: var(--primary); text-decoration: underline; }
.info-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.info-box p { margin-bottom: 0.25rem; }

/* Cookie table */
.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1rem 0; }
.cookie-table th { background: var(--accent-bg); color: var(--accent-fg); text-align: left; padding: 0.75rem; font-weight: 500; }
.cookie-table td { padding: 0.75rem; border-top: 1px solid var(--border); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.5rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.875rem;
  background: var(--card); color: var(--fg);
}
.form-group textarea { resize: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,110,130,0.15); }
.btn-submit { width: 100%; background: var(--primary); color: white; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item p { font-size: 0.875rem; }
.contact-item .label { font-weight: 500; color: var(--fg); }
.contact-item .value { color: var(--muted); white-space: pre-line; }

/* About features */
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.about-feature { text-align: center; padding: 1rem; background: var(--accent-bg); border-radius: var(--radius); }
.about-feature .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.about-feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.about-feature p { font-size: 0.8rem; color: var(--muted); }

/* Cookie Consent */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1rem; box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cookie-inner p { font-size: 0.875rem; color: var(--muted); flex: 1; }
.cookie-inner a { color: var(--primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-decline { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-accept { background: var(--primary); color: white; }

@media (max-width: 768px) {
  .nav { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
