/* Estrahu - Unique Nordic Sage & Ice Blog Theme */
:root {
  --sage: #2E5A4A;
  --ice: #6B9AC4;
  --cream: #F7F5EF;
  --graphite: #1A2529;
  --light-sage: #E8EDE8;
  --warm: #E5E2D8;
}

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

body {
  font-family: 'Inter', system_ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--graphite);
  line-height: 1.7;
  font-size: 17px;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.65rem; }

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

/* Header */
header {
  background: rgba(247, 245, 239, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--warm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--sage);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links a {
  color: var(--graphite);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2E5A4A 0%, #3D6B5A 100%);
  color: white;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27100%27 height=%27100%27%3E%3Cpath fill=%27%23ffffff%27 fill-opacity=%27006%27 d=%27M0 0h100v100H0V0zm50 50l25-25v50l-25-25z%27/%3E%3C/svg%27') repeat;
  opacity: 0.08;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.05;
  margin-bottom: 24px;
  color: white;
}

.hero p {
  font-size: 1.35rem;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  background: white;
  color: var(--sage);
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 30px -15px rgba(46, 90, 74, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(46, 90, 74, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Main Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 80px 0;
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Articles Masonry */
.articles-grid {
  column-count: 2;
  column-gap: 28px;
}

@media (max-width: 768px) {
  .articles-grid {
    column-count: 1;
  }
}

.article-card {
  background: white;
  border: 1px solid var(--warm);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 28px;
  break-inside: avoid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px -8px rgba(26, 37, 41, 0.08);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(46, 90, 74, 0.12);
}

.article-card h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--sage);
}

.article-card p {
  color: #4A5558;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #6B7A7E;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: white;
  border: 1px solid var(--warm);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px -6px rgba(26, 37, 41, 0.06);
}

.sidebar-card h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--sage);
}

.category-list {
  list-style: none;
}

.category-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--warm);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  color: #4A5558;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  transition: color 0.2s;
}

.category-list a:hover {
  color: var(--sage);
}

/* Long intro text */
.intro-text {
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto 60px;
  text-align: center;
  color: #4A5558;
}

/* Footer */
footer {
  background: #1A2529;
  color: #C9C5B8;
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.footer-links a {
  color: #C9C5B8;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.legal {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #3A4549;
}

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

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

input, textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--warm);
  border-radius: 14px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--ice);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Thank you page */
.thankyou-hero {
  background: linear-gradient(135deg, #2E5A4A 0%, #3D6B5A 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.thankyou-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0;
}

.disclaimer-box {
  background: #F0EDE5;
  border-left: 5px solid var(--sage);
  padding: 24px 28px;
  border-radius: 0 16px 16px 0;
  margin: 40px 0;
  font-size: 0.98rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  h1 { font-size: 2.6rem; }
  .hero { padding: 90px 0 70px; }
}