/* ============================================================
   RANK & RENT — TREE REMOVAL SITE TEMPLATE
   Niche: Tree Removal | City: Orlando, Florida
   ============================================================ */

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

:root {
  --green:       #2d6a2f;
  --green-light: #4caf50;
  --green-dark:  #1b5e20;
  --orange:      #e65100;
  --orange-light:#ff6d00;
  --text:        #1a1a1a;
  --text-muted:  #555;
  --bg-light:    #f5f7f0;
  --white:       #ffffff;
  --border:      #dde5d4;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --radius:      10px;
  --max-width:   1140px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

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

ul { list-style: none; }

/* ---- UTILITY ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.bg-light { background: var(--bg-light); }
.section { padding: 72px 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--green-dark); }
.section-sub { text-align: center; color: var(--text-muted); max-width: 620px; margin: 0 auto 48px; font-size: 1.05rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--green-dark); }
.btn-hero-quote { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-hero-quote:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: 8px; }
.btn-header { background: var(--orange); color: var(--white); padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.btn-header:hover { background: var(--orange-light); color: var(--white); }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.6rem; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); white-space: nowrap; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; margin-left: auto; }
.mobile-nav { display: none; flex-direction: column; gap: 12px; padding: 16px 20px; background: var(--bg-light); border-top: 1px solid var(--border); }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-weight: 600; font-size: 1rem; color: var(--text); }

/* ---- HERO ---- */
.hero {
  background: url('../images/hero.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 100px 0 90px;
  text-align: center;
}
.hero::after { display: none; }
.hero-content { position: relative; }
.hero-panel {
  display: inline-block;
  background: rgba(0,0,0,0.22);
  border-radius: 16px;
  padding: 28px 36px 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 700px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; line-height: 1.15; }
.hero-sub {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.93;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.trust-bar {
  display: inline-flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(0,0,0,0.22);
  border-radius: 50px;
  padding: 12px 24px;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  box-sizing: border-box;
}
.trust-bar span { white-space: nowrap; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.featured-service { border-color: var(--orange); background: #fff8f5; }
.service-icon { font-size: 2.4rem; margin-bottom: 12px; }
/* .service-card h3 now handled by .service-card-header h3 */
.service-card p { color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.link-arrow { font-weight: 700; color: var(--green); }
.link-arrow:hover { color: var(--green-dark); }

/* ---- WHY US ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.why-item { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); }
.why-num { font-size: 2.5rem; font-weight: 900; color: var(--green-light); opacity: 0.5; line-height: 1; margin-bottom: 8px; }
.why-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.why-item p { color: var(--text-muted); }

/* ---- REVIEWS ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.review-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 12px; }
.review-card p { font-style: italic; color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.reviewer { font-weight: 700; color: var(--green-dark); font-size: 0.9rem; }

/* ---- SERVICE AREAS ---- */
.areas-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.area-tag {
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green-dark);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.area-tag:hover { background: var(--green); color: var(--white); }
.area-tag-more { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  color: var(--green-dark);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { border-color: var(--green); }
.faq-item p { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.7; }

/* ---- CTA SECTION ---- */
.cta-section { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); color: var(--white); text-align: center; }
.cta-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 1.1rem; opacity: 0.9; max-width: 520px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.site-footer .logo-text { color: var(--white); }
.footer-col p { font-size: 0.95rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--white); }
.footer-phone { display: block; margin-top: 16px; font-size: 1.1rem; font-weight: 700; color: var(--white) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; opacity: 0.7; }
.footer-bottom a { color: inherit; }

/* ---- CONTACT FORM ---- */
.contact-form { max-width: 660px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--green-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 540px; margin: 0 auto; }

/* ---- BREADCRUMBS ---- */
.breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ---- PROSE CONTENT ---- */
.prose h2 { font-size: 1.6rem; color: var(--green-dark); margin: 36px 0 12px; font-weight: 700; }
.prose h3 { font-size: 1.2rem; color: var(--green); margin: 24px 0 10px; font-weight: 700; }
.prose p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; color: var(--text-muted); }
.prose ul li { margin-bottom: 6px; line-height: 1.65; }


/* ---- SERVICE CARD IMAGE ---- */
.service-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
  flex-shrink: 0;
  border-radius: 0;
}
.service-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.service-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
}
.service-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- PHOTO STRIP ---- */
.photo-strip {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.photo-strip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-strip-overlay p {
  color: var(--white);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  max-width: 680px;
  padding: 0 24px;
  letter-spacing: 0.02em;
}

/* ---- WHY LAYOUT (image + grid) ---- */
.why-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 48px;
}
.why-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.why-layout .why-grid {
  margin-top: 0;
}

/* ---- CTA PHOTO BACKGROUND ---- */
.cta-photo-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.cta-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,94,32,0.88) 0%, rgba(45,106,47,0.82) 100%);
}
.cta-photo-bg .cta-inner {
  position: relative;
  z-index: 1;
}

/* ---- RESPONSIVE: new image sections ---- */
@media (max-width: 900px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-photo { height: 260px; position: static; }
  .photo-strip { height: 220px; }
}
@media (max-width: 700px) {
  .service-card-img { height: 140px; }
  .photo-strip { height: 180px; }
  .photo-strip-overlay p { font-size: 1rem; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .btn-header { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .trust-bar { gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .section { padding: 52px 0; }
  .section-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
