:root {
  --primary-color: #8b5a3c;
  --secondary-color: #d4927c;
  --accent-color: #c17b4f;
  --text-dark: #2c1810;
  --text-light: #6b4423;
  --text-muted: #8a7265;
  --bg-light: #faf8f6;
  --bg-white: #ffffff;
  --border-color: #e8ddd4;
  --shadow-sm: 0 2px 8px rgba(139, 90, 60, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 90, 60, 0.12);
  --shadow-lg: 0 8px 32px rgba(139, 90, 60, 0.16);
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: var(--text-light);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--accent-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(139, 90, 60, 0.05) 0%, rgba(212, 146, 124, 0.05) 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-image {
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--accent-color);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary-color);
}

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

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

section {
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.blog-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--text-dark);
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-post-featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.blog-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.blog-post-content ul,
.blog-post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Author Box */
.author-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 8px;
}

.author-box-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-box-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.author-box-info p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.author-box-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.author-box-social a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.related-posts h3 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* FAQ */
.faq-item {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.1);
}

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

/* References */
.references {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.references h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.references ol {
  margin-left: 1.5rem;
}

.references li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--bg-light);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--bg-light);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 146, 124, 0.2);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

/* Sitemap */
.sitemap-section {
  margin-bottom: 3rem;
}

.sitemap-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.sitemap-section ul {
  list-style: none;
  margin-left: 1rem;
}

.sitemap-section li {
  margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .blog-post-title {
    font-size: 2rem;
  }

  .author-box-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  main {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .card-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    padding: 0.75rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

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

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

.highlight {
  background: linear-gradient(120deg, rgba(212, 146, 124, 0.2) 0%, rgba(212, 146, 124, 0.2) 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 90%;
  padding: 0 0.25rem;
}
