/* ===================================================
   SILVERWOOD ARBORICULTURE — STYLESHEET
   =================================================== */

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

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

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  --green-deep:    #1e3a1e;
  --green-mid:     #3a6b35;
  --green-fresh:   #5a9e4b;
  --green-light:   #e8f5e2;
  --cream:         #f5f0e8;
  --brown:         #6b4a2a;
  --near-black:    #1a1a1a;
  --gray-mid:      #555555;
  --gray-light:    #e5e5e5;
  --white:         #ffffff;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.16);

  --transition:    0.25s ease;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-light  { background: var(--white); }
.section-dark   { background: var(--green-deep); }
.section-cream  { background: var(--cream); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-fresh);
  margin-bottom: 12px;
}

.section-eyebrow.light { color: #8ecb77; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--near-black);
  margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.section-subtitle.light { color: rgba(255,255,255,0.75); }

.section-cta {
  text-align: center;
  margin-top: 56px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
}

.btn-full { width: 100%; }

/* ---------- HERO LOGO ---------- */
.hero-logo-wrap {
  margin-bottom: 32px;
  text-align: center;
}

.hero-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ---------- ABOUT PHOTO ---------- */
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: top;
}

/* ---------- IMAGE PLACEHOLDERS ---------- */
.hero-img-placeholder,
.service-img-placeholder,
.about-img-placeholder {
  background: linear-gradient(135deg, #c8dbc4 0%, #a0c49a 50%, #7da876 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(30,58,30,0.6);
}

.img-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 16px;
  border: 2px dashed rgba(30,58,30,0.3);
  border-radius: var(--radius-sm);
}

.img-label small {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--green-deep);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--green-fresh);
  line-height: 1;
}

.logo-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-primary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-secondary {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-fresh);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.phone-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.phone-link:hover { color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  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 {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--green-deep);
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-link {
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.mobile-nav-link:hover { color: var(--white); }
.mobile-phone { color: var(--green-fresh) !important; font-weight: 600; }

.mobile-cta {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 45, 20, 0.82) 0%,
    rgba(30, 58, 30, 0.65) 60%,
    rgba(20, 40, 20, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ecb77;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================================
   TRUST BAR
   =================================================== */
.trust-bar {
  background: var(--green-mid);
  padding: 18px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 32px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
}

.trust-icon {
  color: #a8e090;
  font-size: 1rem;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.25);
}

/* ===================================================
   SERVICES
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-img-placeholder {
  height: 200px;
  width: 100%;
}

.service-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card-body {
  padding: 24px;
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-mid);
  line-height: 1.65;
}

/* ===================================================
   ABOUT
   =================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-content-col p {
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 1rem;
}

.credentials {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.credential-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.credential-item div {
  display: flex;
  flex-direction: column;
}

.credential-item strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.credential-item span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* ===================================================
   WHY CHOOSE US
   =================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  line-height: 1;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.65;
}

/* ===================================================
   EAB ALERT
   =================================================== */
.eab-eyebrow {
  color: #c0392b;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.eab-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eab-content p {
  font-size: 1.1rem;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.eab-urgency {
  font-weight: 700;
  color: var(--near-black);
  font-size: 1.15rem !important;
  margin-top: 8px;
}

.eab-content .section-cta {
  margin-top: 32px;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars {
  color: #e8a020;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--gray-mid);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--near-black);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--gray-mid);
}

/* ===================================================
   SERVICE AREA
   =================================================== */
.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 32px;
}

.area-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 4px 8px;
}

.area-note {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
}

.area-note a {
  color: #8ecb77;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--near-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--near-black);
  background: var(--white);
  border: 1.5px solid #d0d0d0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaaaaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(58,107,53,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--gray-mid);
  text-align: center;
  margin-top: 4px;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(58,107,53,0.2);
}

.form-success.visible { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--near-black);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-mid);
}

/* Contact info card */
.contact-info-card {
  background: var(--green-deep);
  border-radius: var(--radius-md);
  padding: 36px;
  color: var(--white);
  position: sticky;
  top: 100px;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--white);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-detail strong {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.contact-detail a,
.contact-detail span {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.5;
}

.contact-detail a:hover { color: #8ecb77; }

.free-estimate-badge {
  margin-top: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.free-estimate-badge span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: #8ecb77;
  margin-bottom: 6px;
}

.free-estimate-badge p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  padding: 64px 24px 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-phone {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green-fresh);
  transition: color var(--transition);
}

.footer-phone:hover { color: #8ecb77; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ===================================================
   RESPONSIVE — TABLET (max 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .trust-divider { display: none; }
  .trust-bar-inner { justify-content: flex-start; padding: 0 16px; }
}

/* ===================================================
   RESPONSIVE — MOBILE (max 768px)
   =================================================== */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Header */
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { gap: 0; }

  /* Hero */
  .hero { min-height: 90vh; }
  .hero-headline { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

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

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    aspect-ratio: 4/3;
  }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 40px;
  }

  /* Trust bar */
  .trust-item { padding: 6px 16px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2rem; }
}

/* ===================================================
   SCROLL ANIMATION
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
