/* Valedorului Blog - Unique Modern Magazine Style */
/* Color Palette: Nordic Sage & Teal - Fresh green-blue tones, clean and contemporary */
:root {
  --primary: #2D6A4F;
  --primary-light: #40916C;
  --accent: #2A9D8F;
  --accent-dark: #1E6F5C;
  --dark: #1B4332;
  --text: #264653;
  --text-light: #5C6B73;
  --bg: #F1FAEE;
  --bg-alt: #E8F5E9;
  --card: #FFFFFF;
  --border: #D8F3DC;
  --shadow: 0 6px 20px rgba(45, 106, 79, 0.08);
  --shadow-hover: 0 12px 30px rgba(45, 106, 79, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - Classic with modern twist, subtle border */
.header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}

.nav a:hover {
  color: var(--primary);
}

.nav a.active {
  color: var(--primary);
}

.nav a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* Hero - Full width, gradient sage to teal, large typography */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #FFFFFF;
  padding: 110px 0 95px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.06);
  transform: rotate(25deg);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3.35rem;
  margin-bottom: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.hero p {
  font-size: 1.22rem;
  opacity: 0.95;
  margin-bottom: 34px;
  max-width: 620px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  color: var(--primary);
}

.btn-accent {
  background: var(--accent-dark);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Main content layout - Magazine style with sidebar */
.main-content {
  padding: 70px 0 90px;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar - Sticky, clean categories */
.sidebar {
  position: sticky;
  top: 100px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-list li {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-list li:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.category-list li.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.category-list li[data-category] {
  position: relative;
}

/* Article Grid - Magazine inspired, 3 columns */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  height: 8px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.card-body {
  padding: 26px 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: var(--bg-alt);
  color: var(--primary);
  margin-bottom: 14px;
  align-self: flex-start;
}

.article-card h3 {
  font-size: 1.28rem;
  margin-bottom: 14px;
  line-height: 1.3;
  color: var(--dark);
}

.excerpt {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-dark);
  text-decoration: none;
  margin-top: auto;
}

.read-more:hover {
  gap: 12px;
  color: var(--primary);
}

.read-more::after {
  content: '→';
  transition: var(--transition);
}

/* Featured long text section - for depth and reading time */
.featured-section {
  margin: 70px 0 50px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.featured-section h2 {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.featured-section h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 55px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.featured-content {
  font-size: 1.05rem;
  max-width: 860px;
}

.featured-content p {
  margin-bottom: 18px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #D8F3DC;
  padding: 55px 0 35px;
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 50px;
}

.footer h4 {
  color: #FFFFFF;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer a {
  color: #A8D5C2;
  display: block;
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.footer a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid rgba(216, 243, 220, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.company-info {
  line-height: 1.6;
}

/* Contact page specific */
.contact-form {
  max-width: 620px;
  margin: 40px auto;
  background: var(--card);
  padding: 42px 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: #FAFBFA;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.08);
  background: #FFFFFF;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* Thank you page */
.thankyou-content {
  max-width: 780px;
  margin: 60px auto;
  text-align: center;
}

.thankyou-content h1 {
  color: var(--primary);
  margin-bottom: 18px;
}

.thankyou-box {
  background: var(--card);
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 35px 0;
  text-align: left;
}

/* Legal pages */
.legal-content {
  max-width: 860px;
  margin: 50px auto;
  background: var(--card);
  padding: 55px 60px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-content h1 {
  margin-bottom: 12px;
}

.legal-content .update {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 35px;
}

.legal-content h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--primary);
}

.legal-content p, .legal-content li {
  margin-bottom: 14px;
  font-size: 1.01rem;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.legal-content strong {
  color: var(--dark);
}

/* Responsive - Mobile first adjustments */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .sidebar {
    position: static;
    order: -1;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.55rem;
  }
  
  .hero {
    padding: 75px 0 65px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .container {
    padding: 0 18px;
  }
  
  .legal-content, .contact-form, .featured-section {
    padding: 32px 26px;
  }
}

/* Extra polish for modern feel */
.section-title {
  font-size: 1.85rem;
  margin-bottom: 28px;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 3px;
}

/* Subtle animation for cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-card {
  animation: fadeInUp 0.4s ease forwards;
}

.article-card:nth-child(2) { animation-delay: 60ms; }
.article-card:nth-child(3) { animation-delay: 120ms; }
.article-card:nth-child(4) { animation-delay: 180ms; }
.article-card:nth-child(5) { animation-delay: 240ms; }
.article-card:nth-child(6) { animation-delay: 300ms; }
.article-card:nth-child(7) { animation-delay: 360ms; }
.article-card:nth-child(8) { animation-delay: 420ms; }
.article-card:nth-child(9) { animation-delay: 480ms; }