/* DigDiscover - Professional Gardening Website */
:root {
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-pale: #d8f3dc;
  --accent: #74c69d;
  --text: #1b1b1b;
  --text-muted: #555;
  --bg: #f9f9f7;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 26px; height: 26px; fill: white; }

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--green);
  font-family: 'Georgia', serif;
  letter-spacing: -0.5px;
}

nav { display: flex; gap: 8px; align-items: center; }

nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  background: var(--green-pale);
  color: var(--green);
}

.nav-cta {
  background: var(--green) !important;
  color: white !important;
  font-weight: bold;
}
.nav-cta:hover { background: var(--green-light) !important; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  line-height: 1.25;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.hero-btn {
  display: inline-block;
  background: white;
  color: var(--green);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== MAIN CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.9rem;
  color: var(--green);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: Arial, sans-serif;
  margin-bottom: 40px;
}

/* ===== BLOG GRID ===== */
.blog-section { padding: 70px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.card-body { padding: 24px; }

.card-tag {
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.card h3 a { text-decoration: none; color: var(--text); }
.card h3 a:hover { color: var(--green); }

.card p { font-size: 0.93rem; color: var(--text-muted); font-family: Arial, sans-serif; margin-bottom: 18px; }

.read-more {
  display: inline-block;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.read-more:hover { color: var(--green-light); }

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--green-pale);
  padding: 70px 0;
}
.about-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.about-inner h2 { font-size: 1.9rem; color: var(--green); margin-bottom: 16px; }
.about-inner p { color: var(--text-muted); font-family: Arial, sans-serif; margin-bottom: 14px; }

/* ===== FOOTER ===== */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 24px 24px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.85rem;
}

.footer-col p { font-size: 0.9rem; line-height: 1.7; font-family: Arial, sans-serif; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-col address {
  font-style: normal;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
}

.disclosure {
  background: #111;
  color: #888;
  text-align: center;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  padding: 60px 24px 50px;
  text-align: center;
}
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); max-width: 800px; margin: 0 auto 16px; }
.article-header .meta {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  opacity: 0.85;
}

.article-body {
  max-width: 780px;
  margin: 50px auto;
  padding: 0 24px;
}
.article-body img {
  width: 100%;
  border-radius: 10px;
  margin: 28px 0;
  height: 400px;
  object-fit: cover;
}
.article-body h2 { font-size: 1.5rem; color: var(--green); margin: 36px 0 14px; }
.article-body h3 { font-size: 1.2rem; color: var(--green-light); margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; font-family: Arial, sans-serif; color: #333; }
.article-body ul, .article-body ol { margin: 16px 0 18px 28px; font-family: Arial, sans-serif; color: #333; }
.article-body li { margin-bottom: 8px; }

.affiliate-box {
  background: var(--green-pale);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}
.affiliate-box h3 { color: var(--green); font-size: 1.3rem; margin-bottom: 10px; }
.affiliate-box p { font-family: Arial, sans-serif; font-size: 0.95rem; color: var(--text-muted); margin-bottom: 18px; }
.affiliate-btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  transition: background 0.2s;
}
.affiliate-btn:hover { background: var(--green-light); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 30px;
}
.back-link:hover { text-decoration: underline; }

/* ===== CONTACT PAGE ===== */
.page-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; }
.page-header p { font-family: Arial, sans-serif; margin-top: 10px; opacity: 0.9; }

.contact-section { padding: 70px 24px; }
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 { font-size: 1.5rem; color: var(--green); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-item .icon {
  background: var(--green-pale);
  color: var(--green);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item .detail strong { display: block; font-family: Arial, sans-serif; color: var(--green); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item .detail p { font-family: Arial, sans-serif; font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.contact-form { background: white; padding: 36px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-form h2 { font-size: 1.4rem; color: var(--green); margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: bold; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea { height: 130px; resize: vertical; }

.form-submit {
  background: var(--green);
  color: white;
  border: none;
  padding: 13px 32px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--green-light); }

/* ===== STATIC PAGES ===== */
.static-content {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px;
}
.static-content h2 { font-size: 1.4rem; color: var(--green); margin: 36px 0 12px; }
.static-content h3 { font-size: 1.1rem; color: var(--green-light); margin: 24px 0 8px; }
.static-content p { font-family: Arial, sans-serif; color: #444; margin-bottom: 14px; }
.static-content ul { margin: 12px 0 16px 28px; font-family: Arial, sans-serif; color: #444; }
.static-content li { margin-bottom: 6px; }
.last-updated { background: var(--green-pale); border-radius: 6px; padding: 10px 16px; font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--green); display: inline-block; margin-bottom: 28px; }

/* ===== SUCCESS / 404 ===== */
.center-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.center-page h1 { font-size: 2.5rem; color: var(--green); margin-bottom: 16px; }
.center-page p { font-family: Arial, sans-serif; color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; }
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--green-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  nav a { padding: 7px 10px; font-size: 0.85rem; }
  .blog-grid { grid-template-columns: 1fr; }
}
