/* khivanova.shop - Unique Brown Warm Lifestyle Blog Theme */
/* Completely original design: warm earthy brown palette, generous spacing, soft shadows, pill buttons, asymmetric creative layouts, modern typography */

:root {
  --primary: #5C4033;
  --primary-dark: #3E2A1F;
  --accent: #A67C52;
  --accent-light: #C17F59;
  --bg: #F8F1E3;
  --card-bg: #FFFFFF;
  --text: #3E2A1F;
  --text-light: #5C4033;
  --muted: #7A5C4A;
  --light-bg: #EDE0D0;
  --border: #D4C3B0;
  --shadow: 0 4px 20px rgba(92, 64, 51, 0.08);
  --shadow-hover: 0 12px 35px rgba(92, 64, 51, 0.12);
}

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

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
  color: var(--primary-dark);
}

h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; margin-top: 2.5rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; margin-top: 1.75rem; }

p {
  margin-bottom: 1.25rem;
}

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

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

/* Header & Navigation - Classic with modern twist, sticky */
header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(92, 64, 51, 0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

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

nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

nav a {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.85rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Hero Split Screen - Unique asymmetric split */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(92, 64, 51, 0.25);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(92, 64, 51, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

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

/* Right decorative panel in hero - color block with creative text */
.hero-visual {
  background: linear-gradient(135deg, var(--primary) 0%, #6B4423 100%);
  border-radius: 24px;
  padding: 3.5rem 2.75rem;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 140%;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transform: rotate(25deg);
}

.hero-visual .quote {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-visual .author {
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.35rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.15rem;
}

/* Asymmetric Grid for Featured Articles - Creative unique layout */
.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.asymmetric-grid .card {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .asymmetric-grid .card:nth-child(1) { grid-column: span 7; }
  .asymmetric-grid .card:nth-child(2) { grid-column: span 5; }
  .asymmetric-grid .card:nth-child(3) { grid-column: span 5; }
  .asymmetric-grid .card:nth-child(4) { grid-column: span 7; }
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

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

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

.card-content {
  padding: 1.75rem 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.875rem;
}

.category-badge {
  background: var(--light-bg);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-date {
  color: var(--muted);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.card p {
  color: var(--text-light);
  flex: 1;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.card .btn {
  align-self: flex-start;
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* About section - long text friendly */
.about-content {
  max-width: 820px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
}

/* Blog page specific - Magazine style with sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 280px 1fr;
  }
}

.sidebar {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light-bg);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.65rem;
}

.sidebar a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text-light);
  font-weight: 500;
}

.sidebar a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-card h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.article-card .category-badge {
  margin-right: 1rem;
}

.article-body {
  font-size: 1.05rem;
}

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

.article-body h3 {
  margin-top: 2rem;
}

/* Form styling - clean modern */
.form-container {
  max-width: 620px;
  margin: 0 auto;
}

form {
  background: var(--card-bg);
  padding: 2.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--primary-dark);
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.1);
}

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

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

/* Thank you page */
.thankyou-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 780px;
  margin: 0 auto;
}

.thankyou-hero h1 {
  font-size: 3rem;
  color: var(--primary-dark);
}

.thankyou-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #EDE0D0;
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: Georgia, serif;
}

.footer-col p, .footer-col a {
  color: #C9B8A8;
  font-size: 0.97rem;
  line-height: 1.7;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(237, 224, 208, 0.2);
  text-align: center;
  font-size: 0.9rem;
  color: #A38B72;
}

.footer-bottom a {
  color: #C9B8A8;
  margin: 0 0.5rem;
}

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

/* Utility & responsive */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }

.mt-2 { margin-top: 2rem; }

.mb-2 { margin-bottom: 2rem; }

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 4rem;
  }
  
  .hero-visual {
    min-height: 320px;
    padding: 2.5rem 2rem;
  }
  
  nav ul {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .asymmetric-grid .card {
    grid-column: span 12 !important;
  }
  
  h1 { font-size: 2.35rem; }
  
  .section {
    padding: 2.5rem 1.5rem;
  }
}

/* Print friendly & accessibility */
@media print {
  header, footer, .btn, .hero-visual { display: none; }
  body { background: white; color: black; }
}