/* 
  VizEgyensuly - Romanian Lifestyle Hydration Portal
  Theme: Hidratarea Optimă pentru un Stil de Viață Echilibrat
  GEO: Romania (RO)
*/

:root {
  --primary-blue: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent-cyan: #38bdf8;
  --teal-soft: #0d9488;
  --teal-light: #ccfbf1;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ffffff 100%);
  --bg-accent-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(2, 132, 199, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.2;
}

.logo-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-blue);
  border-radius: var(--radius-full);
}

.btn-nav-cta {
  background: var(--bg-accent-gradient);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.25rem;
}

.nav-mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem 1.5rem;
}

.nav-mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile-drawer .nav-link {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.05rem;
}

/* Page Containers & Sections */
.main-content {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero-section {
  background: var(--bg-hero);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary-blue);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-accent-gradient);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-main);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.hero-card-visual {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.visual-metric-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.visual-metric-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.metric-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-blue);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.metric-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.metric-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Feature Grid / Cards */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Calculator Component */
.calculator-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.calc-result-card {
  background: var(--bg-hero);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.calc-number {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin: 0.75rem 0;
}

.calc-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Trigger Drinks & Comparison Tables */
.trigger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.trigger-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid #ef4444;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trigger-card.good {
  border-left-color: var(--teal-soft);
}

.trigger-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Compliance Disclaimer Box */
.compliance-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 2rem;
}

/* Quality Badges Grid */
.quality-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.quality-badge-item {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.badge-icon {
  font-size: 1.5rem;
  color: var(--teal-soft);
  flex-shrink: 0;
}

/* Order Form Styling */
.order-form-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  margin: 0 auto;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 0.2rem;
  accent-color: var(--primary-blue);
  width: 18px;
  height: 18px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.85rem;
}

/* Cookie Notice Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Responsiveness */
@media (max-width: 900px) {
  .hero-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
