/*
Theme Name:  Shepard Hill Tree
Theme URI:   https://shepardhilltree.com
Author:      Shepard Hill Tree
Description: Custom WordPress theme for Shepard Hill Tree Care and Shepard Hill Tree Farm. Midcoast Maine arborist and tree farm business.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shepard-hill
Tags:        one-page, custom-menu, custom-logo, full-width-template, threaded-comments
*/

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

:root {
  --forest:    #1a305a;
  --green:     #1a305a;
  --mid-green: #c4a84f;
  --sage:      #e7c359;
  --cream:     #F7F2EA;
  --warm:      #EDE6D8;
  --brown:     #b8922e;
  --bark:      #0d1b36;
  --text:      #232320;
  --muted:     #5E5E58;
  --white:     #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: inherit; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mid-green);
  margin-bottom: 10px;
}
.tag.light { color: var(--sage); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-green { background: var(--green); color: var(--white); border: 2px solid var(--green); }
.btn-green:hover { background: var(--forest); border-color: var(--forest); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-outline-dark:hover { background: var(--forest); color: var(--white); }

/* ─────────────────────────────────────────────
   IMAGE PLACEHOLDER (remove when real images added)
───────────────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, #c8d8c4 0%, #a8c0a4 50%, #8aab86 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(30,58,47,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.img-placeholder span { position: relative; z-index: 1; text-align: center; line-height: 1.6; }

/* WordPress featured images fill containers */
.img-placeholder img,
.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 48, 90, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-custom img {
  max-height: 104px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--mid-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 22px; height: 22px; fill: var(--white); }
.logo-text { line-height: 1.2; }
.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
}
.logo-text .sub {
  font-size: 0.65rem;
  color: var(--sage);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   PRIMARY NAV MENU (wp_nav_menu output)
───────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; }

/* WordPress ul.primary-menu */
.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.primary-menu > li > a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a { color: var(--white); }

/* Dropdown support */
.primary-menu > li { position: relative; }
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--forest);
  border: 1px solid rgba(255,255,255,0.1);
  list-style: none;
  padding: 8px 0;
  z-index: 999;
}
.primary-menu > li:hover .sub-menu { display: block; }
.primary-menu .sub-menu li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  text-decoration: none;
}
.primary-menu .sub-menu li a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

/* Fallback nav (no menu assigned) */
.site-nav .no-menu-message {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-style: italic;
}

/* Header contact links */
.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-contact a {
  color: var(--sage);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.header-contact a:hover { color: var(--white); }
.header-contact svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   MOBILE MENU
───────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn svg { width: 24px; height: 24px; stroke: var(--white); fill: none; }

.mobile-nav {
  display: none;
  background: var(--forest);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0; padding: 0;
}
.mobile-nav ul li a {
  display: block;
  padding: 10px 28px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav ul li a:hover { color: var(--white); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; padding-top: 120px; }

.hero-top {
  background: var(--forest);
  padding: 80px 0 60px;
  text-align: center;
}
.hero-top .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-top h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 18px;
}
.hero-top h1 em { font-style: italic; color: var(--sage); }
.hero-top .tagline {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

/* Split hero */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.hero-card .hero-img {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}
.hero-card:hover .hero-img { transform: scale(1.04); }
.hero-card-care .hero-img { background: linear-gradient(160deg, #1e3d72 0%, #0d1b36 100%); }
.hero-card-farm .hero-img { background: linear-gradient(160deg, #2a3f6e 0%, #162954 100%); }
.hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}
.hero-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 40px 44px;
}
.hero-card-content .card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero-card-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 14px;
}
.hero-card-content h2 em { font-style: italic; }
.hero-card-content p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  max-width: 360px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-img-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  white-space: nowrap;
}
.hero-card-divider {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 3;
}

/* ─────────────────────────────────────────────
   TREE CARE — HERO BAR
───────────────────────────────────────────── */
section { scroll-margin-top: 120px; }

.care-hero-bar { background: var(--forest); padding: 60px 0; }
.care-hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.care-hero-bar h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); font-weight: 400; }
.care-hero-bar h2 em { font-style: italic; color: var(--sage); }
.care-hero-bar .sub-copy {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 640px;
  margin-top: 16px;
  line-height: 1.75;
}
.care-hero-image { height: 360px; border-radius: 4px; overflow: hidden; }

/* ─────────────────────────────────────────────
   WE'RE DIFFERENT BANNER
───────────────────────────────────────────── */
.different-banner { background: var(--cream); padding: 70px 0; border-bottom: 1px solid var(--warm); }
.different-banner .inner { max-width: 820px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.role-tag {
  background: var(--forest); color: var(--white);
  padding: 6px 16px; border-radius: 2px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.different-banner .big-statement {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35; color: var(--forest); margin-bottom: 24px;
}
.different-banner p { font-size: 1rem; color: var(--muted); line-height: 1.85; max-width: 700px; }

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.services-section { padding: 80px 0; background: var(--white); }
.section-header { margin-bottom: 54px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--warm); }
.service-card { background: var(--white); padding: 38px 32px; transition: background 0.25s; }
.service-card:hover { background: var(--cream); }
.service-icon { width: 44px; height: 44px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; }
.service-img { width: 100%; height: 180px; margin-bottom: 20px; border-radius: 2px; overflow: hidden; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 10px; color: var(--forest); }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ─────────────────────────────────────────────
   PEST & DISEASE
───────────────────────────────────────────── */
.services-special { background: var(--cream); padding: 72px 0; }
.services-special h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--forest); }
.services-special .section-header { margin-bottom: 44px; }
.services-special .section-header p { margin-top: 12px; color: var(--muted); max-width: 620px; font-size: 0.95rem; }

.pest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pest-card { border: 1px solid rgba(26,48,90,0.18); background: var(--white); border-radius: 3px; overflow: hidden; }
.pest-card .pest-img { height: 200px; }
.pest-card .pest-body { padding: 24px 26px; }
.pest-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--forest); margin-bottom: 10px; }
.pest-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
.pest-badge {
  display: inline-block; background: var(--forest); color: var(--sage);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 4px 10px; border-radius: 2px; margin-bottom: 10px;
}

/* ─────────────────────────────────────────────
   WHERE WE WORK
───────────────────────────────────────────── */
.where-section { background: var(--forest); padding: 80px 0; color: var(--white); }
.where-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.where-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--white); margin-bottom: 20px; }
.where-section p { color: rgba(255,255,255,0.72); font-size: 0.97rem; line-height: 1.85; margin-bottom: 28px; }
.town-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.town-pill {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
}
.where-map {
  height: 380px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(145deg, #1a305a 0%, #0d1b36 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; flex-direction: column; gap: 10px;
}
.where-map svg { width: 48px; height: 48px; stroke: rgba(255,255,255,0.25); fill: none; }

/* ─────────────────────────────────────────────
   OUR STORY
───────────────────────────────────────────── */
.story-section { background: var(--white); padding: 88px 0; }
.story-section > .container > h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 60px; max-width: 600px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.story-image { position: sticky; top: 92px; }
.story-img-main { height: 480px; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.story-img-caption { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.story-blocks { display: flex; flex-direction: column; gap: 44px; }
.story-block h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--forest); margin-bottom: 14px; }
.story-block h3 span {
  display: block; font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mid-green);
  font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 6px;
}
.story-block p { font-size: 0.97rem; color: var(--muted); line-height: 1.85; }
.credentials-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.credentials-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.credentials-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mid-green); margin-top: 8px; flex-shrink: 0; }
.pfas-badge {
  background: var(--forest); color: var(--white);
  padding: 16px 22px; border-radius: 3px; margin-top: 18px;
  font-size: 0.88rem; line-height: 1.65; border-left: 4px solid var(--sage);
}
.pfas-badge strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonials-section { background: var(--cream); padding: 80px 0; }
.testimonials-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.testimonials-section .intro-text { color: var(--muted); font-size: 0.95rem; margin-bottom: 44px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); padding: 32px 28px; border-radius: 3px; border: 1px solid var(--warm); }
.testimonial-card .quote-mark { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 0.8; color: var(--sage); margin-bottom: 16px; }
.testimonial-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 600; font-size: 0.82rem; color: var(--forest); letter-spacing: 0.04em; }
.testimonial-location { font-size: 0.78rem; color: var(--muted); }
.placeholder-testimonial {
  background: var(--warm); border: 2px dashed rgba(26,48,90,0.2);
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; color: var(--muted); font-size: 0.82rem; font-style: italic;
}

/* ─────────────────────────────────────────────
   TREE FARM
───────────────────────────────────────────── */
.farm-hero { background: linear-gradient(160deg, #0d1b36 0%, #1a305a 100%); padding: 90px 0; position: relative; overflow: hidden; }
.farm-hero::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 45%; height: 100%;
  background: rgba(0,0,0,0.15);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.farm-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.farm-hero h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); font-weight: 400; margin-bottom: 20px; }
.farm-hero h2 em { font-style: italic; color: #e7c359; }
.farm-hero p { color: rgba(255,255,255,0.75); font-size: 0.97rem; line-height: 1.85; margin-bottom: 16px; }
.farm-hero-image { height: 440px; border-radius: 4px; overflow: hidden; }
.farm-coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: #e7c359;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.farm-coming-soon::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #e7c359; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.farm-details { background: var(--cream); padding: 80px 0; }
.farm-details-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.farm-details h3 { font-size: 1.6rem; color: var(--forest); margin-bottom: 18px; }
.farm-details p { font-size: 0.97rem; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.farm-detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.farm-detail-card { background: var(--white); border: 1px solid var(--warm); padding: 24px 20px; border-radius: 3px; }
.farm-detail-card .detail-icon { width: 36px; height: 36px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.farm-detail-card .detail-icon svg { width: 18px; height: 18px; stroke: var(--forest); fill: none; }
.farm-detail-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--forest); margin-bottom: 8px; }
.farm-detail-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 0; }

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
#contact { background: var(--forest); padding: 88px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
#contact h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white); margin-bottom: 16px; }
#contact .sub { color: rgba(255,255,255,0.65); font-size: 0.97rem; line-height: 1.8; margin-bottom: 36px; }

.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 18px; height: 18px; stroke: var(--sage); fill: none; }
.contact-item .label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 2px; }
.contact-item a { color: var(--white); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.contact-item a:hover { color: var(--sage); }
.contact-item .contact-value { color: var(--white); font-size: 1rem; font-weight: 500; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px; padding: 11px 14px;
  color: var(--white); font-size: 0.9rem;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s; outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--sage); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-field select option { background: var(--forest); }
.form-field textarea { min-height: 110px; resize: vertical; }

/* Contact Form 7 overrides */
.wpcf7 { margin-top: 0; }
.wpcf7-form p { margin-bottom: 0; }
.wpcf7-text, .wpcf7-select, .wpcf7-textarea {
  width: 100%;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: var(--white) !important;
  font-family: 'Inter', sans-serif !important;
  padding: 11px 14px !important;
  border-radius: 3px !important;
}
.wpcf7-submit {
  background: var(--green) !important;
  color: var(--white) !important;
  border: 2px solid var(--green) !important;
  padding: 13px 30px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
  cursor: pointer !important;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer { background: var(--bark); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner .footer-logo { font-family: 'Playfair Display', serif; color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer-inner .footer-logo em { font-style: italic; color: var(--sage); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* Footer nav (wp_nav_menu) */
.footer-menu { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-menu li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.footer-menu li a:hover { color: rgba(255,255,255,0.85); }

/* ─────────────────────────────────────────────
   INNER PAGES
───────────────────────────────────────────── */
.page-content-wrap { padding-top: 120px; min-height: 60vh; }
.page-hero {
  background: var(--forest); padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; }
.page-hero h1 em { font-style: italic; color: var(--sage); }
.page-hero .breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 12px; }
.page-body { padding: 70px 0; }
.page-body .container { max-width: 820px; }
.page-body h2 { font-size: 1.8rem; margin: 40px 0 16px; color: var(--forest); }
.page-body p { margin-bottom: 18px; color: var(--muted); line-height: 1.85; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .primary-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .header-contact a:first-child { display: none; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .hero-card-divider { display: none; }
  .care-hero-inner,
  .farm-hero-inner,
  .where-inner,
  .story-grid,
  .contact-inner,
  .farm-details-inner { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pest-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .story-image { position: static; }
  .farm-detail-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid, .pest-grid { grid-template-columns: 1fr; }
  .hero-card-content { padding: 28px 24px; }
  .container { padding: 0 18px; }
}

/* ─────────────────────────────────────────────
   GRAVITY FORMS — STYLED TO MATCH CONTACT SECTION
   These rules override GF defaults inside .gf-contact-wrapper
   which lives on the dark forest-green contact section.
───────────────────────────────────────────── */

/* Wrapper reset */
.gf-contact-wrapper .gform_wrapper,
.gf-contact-wrapper .gform_wrapper * {
  box-sizing: border-box;
}

/* Remove GF default top margin/padding */
.gf-contact-wrapper .gform_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Form body */
.gf-contact-wrapper .gform_body {
  margin: 0;
}

/* Remove GF ul/li styling from field list */
.gf-contact-wrapper .gform_fields {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Side-by-side fields using GF column classes */
.gf-contact-wrapper .gform_fields .gfield--width-half {
  display: inline-flex;
  flex-direction: column;
  width: calc(50% - 8px);
  vertical-align: top;
}

/* Two-column row wrapper */
.gf-contact-wrapper .gf_left_half,
.gf-contact-wrapper .gf_right_half {
  width: calc(50% - 8px) !important;
  display: inline-block !important;
  vertical-align: top !important;
}
.gf-contact-wrapper .gf_left_half  { margin-right: 8px !important; }
.gf-contact-wrapper .gf_right_half { margin-left: 8px !important; }

/* Individual field wrapper */
.gf-contact-wrapper .gfield {
  margin: 0 !important;
  padding: 0 !important;
}

/* Labels */
.gf-contact-wrapper .gfield_label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--sage) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Hide required asterisks (optional — remove if you want them) */
.gf-contact-wrapper .gfield_required {
  color: var(--sage) !important;
  font-size: 0.7rem !important;
}

/* All input types */
.gf-contact-wrapper input[type="text"],
.gf-contact-wrapper input[type="email"],
.gf-contact-wrapper input[type="tel"],
.gf-contact-wrapper input[type="number"],
.gf-contact-wrapper input[type="url"],
.gf-contact-wrapper select,
.gf-contact-wrapper textarea {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 3px !important;
  padding: 11px 14px !important;
  color: var(--white) !important;
  font-size: 0.9rem !important;
  font-family: 'Inter', sans-serif !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}

.gf-contact-wrapper input[type="text"]:focus,
.gf-contact-wrapper input[type="email"]:focus,
.gf-contact-wrapper input[type="tel"]:focus,
.gf-contact-wrapper select:focus,
.gf-contact-wrapper textarea:focus {
  border-color: var(--sage) !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Placeholder text */
.gf-contact-wrapper input::placeholder,
.gf-contact-wrapper textarea::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

/* Select arrow */
.gf-contact-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(149,184,154,0.8)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 38px !important;
  cursor: pointer;
}

/* Select option bg */
.gf-contact-wrapper select option {
  background: var(--forest) !important;
  color: var(--white) !important;
}

/* Textarea */
.gf-contact-wrapper textarea {
  min-height: 110px !important;
  resize: vertical !important;
}

/* Submit button */
.gf-contact-wrapper .gform_footer,
.gf-contact-wrapper .gform_page_footer {
  margin: 0 !important;
  padding: 4px 0 0 !important;
  border: none !important;
}

.gf-contact-wrapper input[type="submit"],
.gf-contact-wrapper button[type="submit"],
.gf-contact-wrapper .gform_button {
  background: var(--green) !important;
  color: var(--white) !important;
  border: 2px solid var(--green) !important;
  border-radius: 3px !important;
  padding: 13px 30px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.25s, border-color 0.25s !important;
  width: auto !important;
  display: inline-block !important;
}

.gf-contact-wrapper input[type="submit"]:hover,
.gf-contact-wrapper .gform_button:hover {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
}

/* Validation error state */
.gf-contact-wrapper .gfield_error input,
.gf-contact-wrapper .gfield_error select,
.gf-contact-wrapper .gfield_error textarea {
  border-color: #e88080 !important;
}

.gf-contact-wrapper .validation_message,
.gf-contact-wrapper .gfield_description.validation_message {
  color: #f4a8a8 !important;
  font-size: 0.78rem !important;
  margin-top: 5px !important;
  font-family: 'Inter', sans-serif !important;
}

/* Top-level validation error banner */
.gf-contact-wrapper .gform_validation_errors,
.gf-contact-wrapper .validation_error {
  background: rgba(232,128,128,0.12) !important;
  border: 1px solid rgba(232,128,128,0.35) !important;
  color: #f4a8a8 !important;
  padding: 14px 18px !important;
  border-radius: 3px !important;
  font-size: 0.85rem !important;
  margin-bottom: 20px !important;
}

/* Confirmation message after submission */
.gf-contact-wrapper .gform_confirmation_wrapper,
.gf-contact-wrapper .gform_confirmation_message {
  background: rgba(82,148,106,0.15) !important;
  border: 1px solid rgba(149,184,154,0.4) !important;
  border-left: 4px solid var(--sage) !important;
  color: rgba(255,255,255,0.9) !important;
  padding: 20px 22px !important;
  border-radius: 3px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

/* AJAX spinner */
.gf-contact-wrapper .gform_ajax_spinner {
  filter: invert(1) opacity(0.6);
}

/* Remove GF description text if unwanted */
.gf-contact-wrapper .gfield_description:not(.validation_message) {
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.78rem !important;
  margin-top: 4px !important;
}

/* Honeypot / hidden fields */
.gf-contact-wrapper .gform_hidden,
.gf-contact-wrapper .gf_hidden {
  display: none !important;
}

/* Responsive: stack the two-col layout on mobile */
@media (max-width: 600px) {
  .gf-contact-wrapper .gf_left_half,
  .gf-contact-wrapper .gf_right_half {
    width: 100% !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
