/* ========================================
   TRANSILVA | Sergiu Lupu
   Unique Modern Magazine Blog Style
   Sage & Warm Sand Palette | Clean Typography | Generous Spacing
   Fully Responsive | No Images | Google Ads Safe
   ======================================== */

:root {
  --bg: #F8F5F0;
  --bg-alt: #F1EDE4;
  --surface: #FFFFFF;
  --text: #2C2825;
  --text-light: #5A5248;
  --accent: #5E7C4F;
  --accent-dark: #4A633F;
  --sand: #E8DFD0;
  --sand-dark: #D4C5B0;
  --border: #D9D0C3;
  --shadow-sm: 0 1px 3px rgba(44, 40, 37, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 40, 37, 0.08);
  --shadow-lg: 0 10px 25px rgba(44, 40, 37, 0.10);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --max-w: 1280px;
  --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;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 3.2rem; letter-spacing: -0.02em; }
h2 { font-size: 2.1rem; letter-spacing: -0.015em; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ========== HEADER & NAV ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo-text {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-accent {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  padding-left: 0.35rem;
  border-left: 2px solid var(--accent);
}

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

.nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.35rem 0;
  position: relative;
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
}

/* ========== HERO SPLIT (Unique Asymmetric) ========== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 78vh;
  align-items: center;
  gap: 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: 4.5rem 0 4.5rem 1.75rem;
  max-width: 620px;
}

.hero-right {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width=%22600%22 height=%22600%22 viewBox=%220 0 600 600%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cg fill-rule=%22evenodd%22%3E%3Cpath fill=%22%234A633F%22 fill-opacity=%220.15%22 d=%22M300 300l150-150v300L300 300zm-150 0l150 150H0l150-150z%22/%3E%3C/g%3E%3C/svg%3E') center/cover;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.hero h1 {
  font-size: 3.65rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.18rem;
  color: var(--text-light);
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-right-content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 320px;
}

.hero-right-content .big-letter {
  font-family: Georgia, serif;
  font-size: 7.5rem;
  font-weight: 700;
  line-height: 0.85;
  opacity: 0.25;
  margin-bottom: -1.5rem;
  display: block;
}

.hero-right-content p {
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* ========== BUTTONS (Unique Pill + Subtle) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.1rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.75rem 1.85rem;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-small {
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.75rem;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ========== INTRO TEXT (Long readable) ========== */
.intro {
  max-width: 820px;
  margin: 0 auto 4rem;
  font-size: 1.12rem;
  color: var(--text-light);
}

.intro strong {
  color: var(--text);
  font-weight: 600;
}

/* ========== ARTICLE GRID (Magazine Style Asymmetric) ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.85rem;
}

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

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand-dark);
}

.card-accent {
  height: 5px;
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
}

.card-content {
  padding: 1.65rem 1.65rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.tag {
  background: var(--sand);
  color: var(--text);
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.75rem;
}

.card-content h3 {
  font-size: 1.32rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.card-content .excerpt {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.35rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  margin-top: auto;
}

.read-more:hover {
  gap: 0.65rem;
  color: var(--accent-dark);
}

/* ========== SIDEBAR / EXPLORE (Unique) ========== */
.explore-section {
  background: var(--bg-alt);
  padding: 3.5rem 0;
  margin: 3rem 0;
  border-radius: var(--radius-lg);
}

.explore-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
}

.category-pill:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== MODAL (Unique Reading Experience) ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(44, 40, 37, 0.65);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
}

.modal-header h2 {
  font-size: 1.65rem;
  margin: 0;
  padding-right: 2rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
  line-height: 1.85;
  font-size: 1.05rem;
  color: var(--text);
}

.modal-body p {
  margin-bottom: 1.35rem;
}

.modal-body h3 {
  margin: 1.8rem 0 0.9rem;
  color: var(--accent);
}

/* ========== CONTACT FORM (Unique Clean) ========== */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  transition: var(--transition);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 124, 79, 0.1);
}

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

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

/* ========== FOOTER ========== */
.footer {
  background: var(--text);
  color: #D9D0C3;
  padding: 3.75rem 0 2.5rem;
  font-size: 0.95rem;
}

.footer a {
  color: #D9D0C3;
}

.footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.footer-col p, .footer-col li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(217, 208, 195, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ========== THANK YOU PAGE ========== */
.thankyou-hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

.thankyou-hero h1 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.thankyou-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-right {
    min-height: 420px;
    padding: 4rem 2rem;
  }
  .hero-left {
    padding: 3.5rem 1.75rem 2.5rem;
  }
  h1 { font-size: 2.85rem; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem 1.75rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    max-height: 95vh;
  }
  .modal-body {
    padding: 1.75rem 1.5rem;
  }
}

/* ========== UTILITIES & ACCESSIBILITY ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-light { color: var(--text-light); }
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}