/* ============================================================
   Lehi Utah Tree Service — Shared Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green-dark:   #1e4620;
  --green-mid:    #2d6a31;
  --green-light:  #4a9e4f;
  --amber:        #e8880a;
  --amber-dark:   #c4720a;
  --white:        #ffffff;
  --off-white:    #f5f7f4;
  --gray-100:     #f0f2ef;
  --gray-200:     #dde0db;
  --gray-400:     #9da89b;
  --gray-700:     #3d4a3b;
  --dark:         #1a211a;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.12);
  --shadow-md:    0 4px 16px rgba(0,0,0,.14);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.18);
  --transition:   .22s ease;
  --max-width:    1200px;
  --font-body:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--green-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
  line-height: 1.3;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green-mid);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--green-dark);
  color: var(--gray-200);
  font-size: .85rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.top-bar a { color: var(--gray-200); }
.top-bar a:hover { color: var(--amber); }
.top-bar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-contact span { display: flex; align-items: center; gap: 5px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 26px; height: 26px; fill: var(--white); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
}
.logo-sub { font-size: .72rem; color: var(--gray-400); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--green-dark);
  color: var(--white);
}
.nav-cta {
  margin-left: 8px;
  background: var(--amber) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
}
.nav-cta:hover { background: var(--amber-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 12px 20px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius);
  display: block;
  transition: background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--green-dark);
  color: var(--white);
}
.mobile-nav .btn-primary {
  margin-top: 10px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 30px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.9rem; font-family: var(--font-heading); color: var(--white); }
.hero-stat span { font-size: .82rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Section Layouts ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { opacity: .88; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; color: var(--gray-400); }
.section-header h2 { margin-bottom: 8px; }
.eyebrow {
  display: inline-block;
  color: var(--amber);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Service Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--white); }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--gray-400); font-size: .93rem; margin-bottom: 18px; }
.card a.card-link {
  font-size: .9rem;
  font-weight: 700;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card a.card-link:hover { color: var(--amber-dark); }

/* ---------- Features / Why Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.feature { text-align: center; }
.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature-icon svg { width: 30px; height: 30px; fill: var(--amber); }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .9rem; opacity: .8; }

/* ---------- Two-Column Content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-img  { order: 1; }
.col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.col-img-placeholder {
  width: 100%;
  padding-bottom: 68%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.col-img-placeholder svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80px; height: 80px;
  fill: rgba(255,255,255,.2);
}
.col-text h2 { margin-bottom: 16px; }
.col-text p { margin-bottom: 14px; }
.checklist { margin: 18px 0 24px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .95rem;
}
.checklist li::before {
  content: '✓';
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--amber);
}
.testimonial-stars { color: var(--amber); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { font-style: italic; margin-bottom: 16px; color: var(--gray-700); }
.testimonial-author { font-size: .87rem; font-weight: 700; color: var(--green-dark); }
.testimonial-location { font-size: .8rem; color: var(--gray-400); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { opacity: .9; max-width: 520px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-banner .btn-outline { color: var(--white); border-color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--amber-dark); }

/* ---------- Service Area ---------- */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.area-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .88rem;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .9rem; font-weight: 600; color: var(--green-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--gray-700);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,49,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--gray-400); margin-top: 10px; text-align: center; }

/* ---------- Contact Info Cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.contact-info-card {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
}
.contact-info-card svg { width: 32px; height: 32px; fill: var(--amber); margin: 0 auto 12px; }
.contact-info-card h4 { color: var(--white); font-size: .9rem; margin-bottom: 6px; letter-spacing: .05em; text-transform: uppercase; }
.contact-info-card a { color: var(--amber); font-size: 1rem; font-weight: 700; }
.contact-info-card a:hover { color: var(--white); }
.contact-info-card p { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question.open { background: var(--green-dark); color: var(--white); }
.faq-chevron {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: .95rem;
  color: var(--gray-700);
  background: var(--white);
}
.faq-answer.open { display: block; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { opacity: .88; max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .83rem;
  opacity: .75;
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--white); }
.breadcrumb span { opacity: .6; }

/* ---------- Emergency Banner ---------- */
.emergency-banner {
  background: #c0392b;
  color: var(--white);
  text-align: center;
  padding: 12px 20px;
  font-size: .95rem;
  font-weight: 700;
}
.emergency-banner a { color: #ffd6d6; text-decoration: underline; }
.emergency-banner a:hover { color: var(--white); }

/* ---------- Sidebar Layout ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.sidebar { position: sticky; top: 90px; }
.sidebar-box {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}
.sidebar-box h3 { margin-bottom: 14px; font-size: 1rem; }
.sidebar-box ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { font-size: .93rem; color: var(--gray-700); font-weight: 500; }
.sidebar-box ul li a:hover { color: var(--green-mid); }
.sidebar-cta {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.sidebar-cta h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.sidebar-cta p { font-size: .88rem; opacity: .85; margin-bottom: 16px; }
.sidebar-cta .phone-big {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: .9rem; margin-top: 14px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--amber); }
.footer-col p { font-size: .9rem; line-height: 1.7; }
.footer-col a { color: var(--amber); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .83rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-amber  { color: var(--amber); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse .col-text { order: 1; }
  .two-col.reverse .col-img  { order: 2; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero { padding: 52px 0 44px; }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 24px 18px; }
  .top-bar .container { justify-content: center; }
  .top-bar-right { display: none; }
}