/*
Theme Name: ProLawn
Theme URI: https://easyaccurate.com
Author: EasyAccurate
Author URI: https://easyaccurate.com
Description: A professional lawn care service WordPress theme with built-in estimate form, service areas, Google reviews section, and local SEO structure. Perfect for lawn mowing, landscaping, and grounds maintenance companies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prolawn
Tags: lawn-care, landscaping, service-business, estimator, local-seo, green
*/

/* =============================================
   CSS RESET & ROOT VARIABLES
   ============================================= */
:root {
  --green:        #2d6a2d;
  --green-light:  #4a9e3f;
  --green-pale:   #e8f5e4;
  --gold:         #c8a84b;
  --dark:         #1a2415;
  --text:         #374031;
  --gray:         #f5f7f4;
  --white:        #ffffff;
  --border:       #dde8d8;
  --shadow:       0 2px 16px rgba(0,0,0,.07);
  --radius:       6px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration:none; }
ul { list-style:none; }
button { cursor:pointer; font-family: var(--font-body); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 700; }
p  { line-height: 1.75; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container       { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section-pad     { padding: 72px 0; }
.section-pad-sm  { padding: 48px 0; }
.text-center     { text-align: center; }
.text-green      { color: var(--green-light); }

.section-label {
  display: inline-block;
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.sub {
  color: #6a7a65;
  font-size: .97rem;
  max-width: 540px;
  margin-top: .4rem;
  margin-bottom: 2.4rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all .2s ease;
  text-align: center;
  cursor: pointer;
}
.btn-primary  { background: var(--green-light); color: var(--white); border-color: var(--green-light); }
.btn-primary:hover { background: var(--green); border-color: var(--green); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-white    { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-white:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-sm       { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-full     { width: 100%; display: block; }

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
.site-logo span { color: var(--green-light); }

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.nav-menu a:hover { color: var(--green-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-phone {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.nav-phone strong { color: var(--gold); font-size: .95rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .3rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a18 60%, #2d6a2d 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: .18;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.hero-section h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero-section p  { color: rgba(255,255,255,.75); font-size: 1.07rem; max-width: 500px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--green);
  padding: .9rem 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
}
.trust-item .icon { font-size: 1.1rem; }

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border-left: 4px solid var(--green-light);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.service-card .svc-icon { font-size: 2rem; margin-bottom: .8rem; }
.service-card h3 { margin-bottom: .45rem; }
.service-card p { font-size: .9rem; color: #6a7a65; }
.service-card .learn-more {
  display: inline-block;
  margin-top: .8rem;
  color: var(--green-light);
  font-size: .84rem;
  font-weight: 700;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}
.how-step { text-align: center; }
.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 auto 1rem;
}
.how-step h3 { font-size: .95rem; margin-bottom: .4rem; }
.how-step p  { font-size: .87rem; color: #6a7a65; }

/* =============================================
   PRICING BOX
   ============================================= */
.pricing-box {
  background: var(--green-pale);
  border: 1px solid #c2e0bc;
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  max-width: 720px;
  margin-bottom: 2rem;
}
.pricing-box h3 { margin-bottom: .5rem; }
.pricing-box p  { font-size: .95rem; }

/* =============================================
   SERVICE AREAS
   ============================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
}
.area-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .7rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.area-col li {
  font-size: .9rem;
  padding: .22rem 0;
  color: var(--text);
}
.area-col li::before { content: '→ '; color: var(--green-light); }

/* =============================================
   REVIEWS
   ============================================= */
.reviews-section { background: var(--dark); }
.reviews-section h2,
.reviews-section .section-label { color: var(--white); }
.reviews-section .section-label { color: var(--green-light); }
.reviews-section .sub { color: rgba(255,255,255,.6); }

.google-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem 1.6rem;
  width: fit-content;
  margin-bottom: 2rem;
}
.google-score { font-size: 2.2rem; font-weight: 700; color: var(--gold); font-family: var(--font-head); }
.google-stars  { color: #fbbc04; font-size: 1.1rem; }
.google-meta   { color: rgba(255,255,255,.7); font-size: .84rem; line-height: 1.6; }
.google-meta strong { color: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.review-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.review-card .stars { color: #fbbc04; margin-bottom: .5rem; }
.review-card .reviewer { font-weight: 700; color: var(--white); }
.review-card .review-date { color: rgba(255,255,255,.4); font-size: .8rem; margin-bottom: .6rem; }
.review-card .review-text { color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.65; }

/* =============================================
   ESTIMATOR FORM
   ============================================= */
.estimator-section { background: var(--gray); }

.estimator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.estimator-info h2 { margin-bottom: .6rem; }
.estimator-info .sub { margin-bottom: 1.5rem; }

.est-features { margin-top: 1.5rem; }
.est-feature {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.est-feature .ef-icon {
  width: 36px;
  height: 36px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.est-feature h4 { font-size: .9rem; margin-bottom: .15rem; }
.est-feature p  { font-size: .83rem; color: #6a7a65; }

/* Form card */
.estimate-form-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,.09);
  border-top: 4px solid var(--green-light);
}
.estimate-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .3rem;
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(74,158,63,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.estimate-result {
  display: none;
  background: var(--green-pale);
  border: 1px solid #b8d9b2;
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.2rem;
  text-align: center;
}
.estimate-result.show { display: block; }
.result-range {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
  margin: .5rem 0;
}
.result-note { font-size: .83rem; color: #5a7a55; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2  { color: var(--white); margin-bottom: .7rem; }
.cta-section p   { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2rem; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo { font-size: 1.2rem; }
.footer-brand p { font-size: .85rem; margin-top: .4rem; line-height: 1.7; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-copy { font-size: .77rem; text-align: center; opacity: .35; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.07); }

/* =============================================
   WORDPRESS STANDARD CLASSES
   ============================================= */
.wp-block-image { margin: 1.5rem 0; }
.alignleft  { float:left; margin-right:1.5rem; }
.alignright { float:right; margin-left:1.5rem; }
.aligncenter { text-align:center; margin: 0 auto; }
.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0;
  position:absolute; width:1px; word-wrap:normal !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .estimator-wrap { grid-template-columns: 1fr; }
  .estimator-info { max-width: 540px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark); flex-direction: column; gap: 0; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .75rem 5%; width: 100%; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .hero-section::before { opacity: .1; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .trust-bar-inner { gap: 1rem; justify-content: flex-start; padding: 0 5%; }
}
