/* ═══════════════════════════════════════════════
   Mike Timber's Tree Removal - Custom Theme
   Rugged, earthy, premium tree service aesthetic
   ═══════════════════════════════════════════════ */

/* Override shared color palette */
:root {
  --green-dark: #1b2a1f;
  --green-medium: #2e4a35;
  --green-light: #4a7c5c;
  --gold: #c8915a;
  --gold-light: #dba876;
  --off-white: #f5f2ed;
  --gray-light: #e2ddd6;
  --text: #2c2c2c;
  --bark: #3d2b1f;
  --bark-light: #5c3d2e;
  --cream: #faf8f4;
  --shadow: 0 2px 12px rgba(27,42,31,0.12);
  --shadow-lg: 0 8px 32px rgba(27,42,31,0.18);
}

/* Typography upgrade */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: var(--cream);
  color: var(--text);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif !important;
}

/* ─── Header ─── */
.site-header {
  background: var(--green-dark) !important;
  border-bottom: 3px solid var(--gold);
}

.header-logo span {
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-phone {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  border-radius: 4px !important;
  font-family: 'Source Sans 3', sans-serif !important;
  letter-spacing: 0.5px;
}

.header-phone:hover {
  background: var(--gold-light) !important;
}

.header-contact {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 4px !important;
  font-family: 'Source Sans 3', sans-serif !important;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  letter-spacing: 1px;
}

.header-contact:hover {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
}

/* ─── Navigation ─── */
.site-nav {
  background: var(--green-medium) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-nav li a {
  font-family: 'Source Sans 3', sans-serif !important;
  text-transform: uppercase;
  font-size: 0.82rem !important;
  letter-spacing: 1.2px;
  font-weight: 600 !important;
  border-bottom-width: 2px !important;
}

/* Dropdown Navigation */
.site-nav ul { flex-wrap: wrap; }
.has-children { position: relative; }

.has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  min-width: 220px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 4px 4px;
  padding: 8px 0;
  border-top: 2px solid var(--gold);
}

.has-children:hover > .sub-menu {
  display: flex;
  flex-direction: column;
}

.sub-menu li a {
  padding: 10px 20px !important;
  font-size: 0.8rem !important;
  border-bottom: none !important;
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
}

.sub-menu li a:hover {
  background: rgba(200,145,90,0.15);
  color: var(--gold) !important;
}

/* ─── Hero / Sections ─── */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, #243a2a 50%, var(--bark) 100%) !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-family: 'Source Sans 3', sans-serif;
}

.section {
  position: relative;
}

.section h2 {
  font-weight: 800 !important;
  color: var(--green-dark) !important;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}

.section h3 {
  color: var(--bark) !important;
  font-weight: 700 !important;
}

.section-alt {
  background: var(--off-white) !important;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

/* ─── CTA Sections ─── */
.cta-section {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--bark) 100%) !important;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
  pointer-events: none;
}

.cta-section h3, .cta-section h4 {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px;
}

.cta-phone {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  border-radius: 4px !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.2rem !important;
  box-shadow: 0 4px 16px rgba(200,145,90,0.3);
}

.cta-phone:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 6px 24px rgba(200,145,90,0.4);
}

/* ─── Contact Form ─── */
.contact-form-wrapper {
  background: var(--cream) !important;
  border: 1px solid var(--gray-light) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.form-group label {
  color: var(--bark) !important;
  font-family: 'Source Sans 3', sans-serif !important;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  letter-spacing: 1px;
  font-weight: 700 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--gray-light) !important;
  border-radius: 4px !important;
  background: white !important;
  font-family: 'Source Sans 3', sans-serif !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(200,145,90,0.15) !important;
}

.form-submit {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  border-radius: 4px !important;
  font-family: 'Source Sans 3', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(200,145,90,0.25);
  transition: all 0.2s !important;
}

.form-submit:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 6px 20px rgba(200,145,90,0.35);
  transform: translateY(-2px) !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Service Highlights ─── */
.service-highlights li {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  color: var(--text);
}

.service-highlights li::before {
  content: '●' !important;
  color: var(--gold) !important;
  font-size: 0.7rem;
}

/* ─── Services Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.service-card {
  display: block;
  background: white;
  padding: 28px;
  border-radius: 4px;
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--gold);
  text-decoration: none;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.25s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--bark);
  color: var(--bark);
}

.service-card h2 {
  font-size: 1.15rem !important;
  font-family: 'Source Sans 3', sans-serif !important;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.service-card h2::after { display: none !important; }

.service-card p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  margin: 0;
}

/* ─── Service Badges ─── */
.service-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.service-badges span {
  background: var(--green-dark);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(200,145,90,0.3);
}

/* ─── Areas List ─── */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.areas-list li {
  background: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  color: var(--green-dark);
  border: 1px solid var(--gray-light);
  transition: all 0.2s;
}

.areas-list li:hover {
  border-color: var(--gold);
  background: var(--off-white);
}

.areas-list a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 600;
}

.areas-list a:hover {
  color: var(--gold);
}

.county-group {
  margin-bottom: 36px;
}

.county-group h2::after {
  width: 40px;
}

/* ─── Review Links ─── */
.review-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.review-links a {
  display: block;
  padding: 18px;
  background: white;
  border-radius: 4px;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
  border: 1px solid var(--gray-light);
  transition: all 0.25s;
}

.review-links a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--bark);
}

/* ─── Blog ─── */
.blog-list {
  list-style: none;
  padding: 0;
}

.blog-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-light);
}

.blog-list a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  font-family: 'Playfair Display', serif;
  transition: color 0.2s;
}

.blog-list a:hover {
  color: var(--gold);
}

.blog-content h2::after { display: none !important; }

/* ─── Utility pages ─── */
.utility-page h1 {
  font-weight: 900 !important;
}

.utility-page h2 {
  font-weight: 800 !important;
}

.utility-page h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin-top: 6px;
}

.utility-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.utility-page ol li {
  margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}

/* ─── Images ─── */
.hero-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  width: 100%;
  border-radius: 4px;
  margin: 24px auto 0;
  box-shadow: var(--shadow-lg);
}

.section img, .content-section img, .utility-page img, .blog-content img {
  max-height: 400px !important;
  height: auto !important;
  object-fit: cover;
  width: 100%;
  border-radius: 4px !important;
  margin: 24px auto;
  display: block;
  box-shadow: var(--shadow) !important;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--green-dark) !important;
  border-top: 3px solid var(--gold);
}

.footer-phone {
  font-family: 'Source Sans 3', sans-serif !important;
  letter-spacing: 1px;
}

.footer-copy {
  font-family: 'Source Sans 3', sans-serif;
}

/* ─── Ordered lists in sections ─── */
.section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.section ol li {
  margin-bottom: 10px;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.6;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .has-children > .sub-menu {
    display: none !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .review-links {
    grid-template-columns: 1fr 1fr;
  }

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

  .section h2::after {
    width: 40px;
  }

  /* Contact page grid */
  .section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .review-links {
    grid-template-columns: 1fr;
  }

  .service-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 1.6rem !important;
  }

  .areas-list li {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
