@import url('base.css');
@import url('components.css');
@import url('animations.css');

/* ==========================================================================
   TREE SURGEON — Trade-specific styles
   Imports shared system + tree-surgeon colour/font overrides + unique sections
   ========================================================================== */

/* ---------- Tree surgeon colour palette (from Lovable canopy-crafted) ---------- */
:root {
  /* Fonts — Pairing A (Technical) */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Primary — Forest green */
  --color-primary: hsl(161, 48%, 21%);
  --color-primary-hover: hsl(161, 52%, 16%);
  --color-primary-light: hsl(161, 30%, 92%);
  --color-primary-fg: hsl(150, 40%, 98%);

  /* Accent — Bark */
  --color-accent: hsl(25, 42%, 39%);
  --color-accent-hover: hsl(25, 42%, 31%);
  --color-accent-light: hsl(25, 40%, 94%);
  --color-accent-fg: hsl(0, 0%, 100%);

  /* Neutrals */
  --color-foreground: hsl(160, 30%, 10%);
  --color-muted: hsl(160, 6%, 46%);
  --color-muted-bg: hsl(150, 10%, 96%);
  --color-bg-light: hsl(150, 20%, 97%);
  --color-bg-dark: hsl(160, 30%, 10%);
  --color-highlight: hsl(150, 14%, 95%);
  --color-surface: hsl(0, 0%, 100%);
  --color-border: hsl(150, 10%, 91%);

  /* Shadows (forest-tinted) */
  --shadow-soft: 0 4px 20px -4px hsl(161 48% 21% / 0.06);
  --shadow-warm: 0 8px 30px -8px hsl(161 48% 21% / 0.1);
  --shadow-lifted: 0 20px 40px -12px hsl(160 30% 10% / 0.12);
}

/* ---------- Hero — Dark fullscreen ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
  background: var(--color-bg-dark);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    hsla(160, 30%, 10%, 0.4) 0%,
    hsla(160, 30%, 10%, 0.7) 50%,
    hsla(160, 30%, 10%, 0.92) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--color-primary-fg);
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: hsla(150, 40%, 98%, 0.75);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsla(150, 40%, 98%, 0.7);
}

.hero-trust-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
}

/* ---------- Emergency callout ---------- */
.emergency-bar {
  background: hsl(0, 72%, 51%);
  color: hsl(0, 0%, 100%);
  text-align: center;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.emergency-bar a {
  color: hsl(0, 0%, 100%);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Certification / Qualifications banner ---------- */
.cert-banner {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: 2rem 0;
}

.cert-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.cert-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
}

/* ---------- TPO / Conservation Section (Trade Specialty) ---------- */
.tpo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .tpo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tpo-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.tpo-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tpo-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tpo-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.tpo-card p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- Process steps ---------- */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.step-content {
  text-align: center;
  position: relative;
}

.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 20rem;
  margin-inline: auto;
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 1.5rem;
    left: calc(50% + 2rem);
    width: calc(100% - 4rem);
    height: 0;
    border-top: 2px dashed hsla(161, 48%, 21%, 0.2);
  }
}

/* ---------- Service area pills ---------- */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.area-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-highlight);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
}

/* ---------- Contact dark section ---------- */
.contact-dark {
  background: var(--color-bg-dark);
  color: var(--color-primary-fg);
}

.contact-dark .section-label {
  color: var(--color-accent);
}

.contact-dark .section-title {
  color: var(--color-primary-fg);
}

.contact-dark .section-subtitle {
  color: hsla(150, 40%, 98%, 0.65);
}

.contact-dark .contact-value {
  color: var(--color-primary-fg);
}

.contact-dark .contact-value a:hover {
  opacity: 1;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-details-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-details-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lifted);
  color: var(--color-foreground);
}

/* ---------- About section with dark bg ---------- */
.about-dark {
  background: var(--color-bg-dark);
  color: var(--color-primary-fg);
}

.about-dark .section-label {
  color: var(--color-accent);
}

.about-dark .section-title {
  color: var(--color-primary-fg);
}

.about-dark .section-subtitle {
  color: hsla(150, 40%, 98%, 0.65);
}

.about-dark .check-item {
  color: hsla(150, 40%, 98%, 0.8);
}

.about-dark .check-icon {
  color: var(--color-accent);
}

.about-dark .stat-value {
  color: var(--color-accent);
}

.about-dark .stat-label {
  color: hsla(150, 40%, 98%, 0.75);
}

.about-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted);
}

.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ---------- Pricing notes ---------- */
.pricing-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 1.5rem;
}
