/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a3d34;
  --primary-dark: #0f2821;
  --accent: #d97706;
  --accent-dark: #b45309;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #ffffff;
  --bg-alt: #f7f5f0;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 14px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1.25rem; color: var(--text-light); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}

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

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary) !important;
  letter-spacing: -0.01em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

.main-nav a:hover::after { width: 100%; }

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

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #1a3d34 0%, #0f2821 50%, #0a1915 100%);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(217,119,6,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(217,119,6,0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.45);
}

.btn-secondary {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.4);
}

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

/* ============ ARTICLE ============ */
.article-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg);
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.article-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.article-body h2 {
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-top: 3rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

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

.article-body strong {
  color: var(--text);
  font-weight: 700;
}

.article-cta {
  max-width: 800px;
  margin: 60px auto 0;
  background: linear-gradient(135deg, #1a3d34, #0f2821);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta h3 { color: #fff; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

/* ============ CONTACT ============ */
.contact-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.contact-link {
  color: var(--text) !important;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.contact-link:hover {
  color: var(--accent) !important;
}

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

/* ============ FOOTER ============ */
.site-footer {
  background: #0a1915;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p { color: rgba(255,255,255,0.6); }

.footer-contact p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 50;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active { max-height: 300px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    display: block;
    padding: 12px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .article-cta { padding: 30px 20px; }
  .contact-card { padding: 24px 16px; }
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}