/* ==========================================================================
   Elvis Tree Climber Extraordinaire
   Palette: slate-charcoal + pine-green accent (height / climbing / trees)
   Type: Archivo Black / Archivo (bold, confident, sans) for headings
         + Inter for body
   Mobile-first.
   ========================================================================== */

:root {
  --charcoal-deep: #14181a;
  --charcoal: #1d2427;
  --charcoal-mid: #2b3438;
  --slate: #3f4c50;
  --slate-light: #6b7a7e;
  --line: rgba(255, 255, 255, 0.1);

  --pine: #1f5e4a;
  --pine-bright: #2c8562;
  --pine-light: #4fa77f;
  --pine-pale: #e6f1ec;

  --rope: #c8862f;

  --paper: #f6f5f1;
  --paper-dim: #eceae3;
  --white: #ffffff;
  --ink: #171b1c;
  --ink-soft: #4a5457;

  --font-head: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-lift: 0 20px 44px rgba(15, 20, 21, 0.32);
  --shadow-card: 0 10px 26px rgba(15, 20, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-bright);
  margin-bottom: 0.9em;
}

.section-head {
  max-width: 640px;
  margin: 0 0 2.4rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--charcoal);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.6rem;
  min-height: 52px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--pine-bright);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--pine);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--charcoal-deep);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------- */
/* Top utility bar                                                        */
/* ---------------------------------------------------------------------- */

.topbar {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.topbar a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.topbar a:hover {
  color: var(--pine-light);
}

.topbar-sep {
  opacity: 0.4;
}

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(155deg, var(--pine-bright), var(--pine));
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-light);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.main-nav.is-open {
  max-height: 480px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 18px;
  display: flex;
  flex-direction: column;
}

.main-nav a {
  display: block;
  padding: 13px 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}

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

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: none;
  }

  .main-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 28px;
  }

  .main-nav a {
    border-bottom: none;
    padding: 8px 2px;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--charcoal-deep);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 26, 0.94) 0%, rgba(20, 24, 26, 0.86) 55%, rgba(20, 24, 26, 0.97) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px);
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 2px solid rgba(79, 167, 127, 0.18);
  pointer-events: none;
}

.hero-rings::before,
.hero-rings::after {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 2px solid rgba(79, 167, 127, 0.14);
}

.hero-rings::after {
  inset: 130px;
  border-color: rgba(79, 167, 127, 0.22);
}

.hero-inner {
  position: relative;
  padding: 64px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-copy .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine-light);
  box-shadow: 0 0 0 4px rgba(79, 167, 127, 0.2);
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  margin-bottom: 0.4em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--pine-light);
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 18px 16px;
  backdrop-filter: blur(2px);
}

.stat-card .num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--pine-light);
  display: block;
}

.stat-card .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 980px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 96px 0 84px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    width: 340px;
    flex-shrink: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Trust strip                                                            */
/* ---------------------------------------------------------------------- */

.trust-strip {
  background: var(--pine);
  color: var(--white);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  padding: 16px 20px;
  font-size: 0.86rem;
  text-align: center;
}

.trust-strip strong {
  font-family: var(--font-head);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-right: 6px;
}

/* ---------------------------------------------------------------------- */
/* Sections general                                                       */
/* ---------------------------------------------------------------------- */

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--paper-dim);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.section-dark .section-head h2 {
  color: var(--white);
}

/* ---------------------------------------------------------------------- */
/* About                                                                   */
/* ---------------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: 32px;
}

.about-figure {
  background: var(--charcoal);
  border-radius: 10px;
  padding: 32px 26px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-figure::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(79, 167, 127, 0.25);
}

.about-figure .figure-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.about-figure .figure-role {
  color: var(--pine-light);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.about-figure blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  border-left: 3px solid var(--pine-bright);
  padding-left: 16px;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--charcoal);
}

.about-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--pine-bright);
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }
}

/* ---------------------------------------------------------------------- */
/* Services                                                                */
/* ---------------------------------------------------------------------- */

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

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--pine-bright);
}

.service-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: var(--pine-pale);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.5em;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------- */
/* Process strip                                                          */
/* ---------------------------------------------------------------------- */

.process-list {
  display: grid;
  gap: 24px;
  counter-reset: step;
  grid-template-columns: 1fr;
}

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

.process-item {
  position: relative;
  padding-left: 56px;
}

.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine-bright);
  color: var(--white);
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.process-item h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4em;
}

.process-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------- */
/* Testimonials (React island mounts here; noscript fallback shown below) */
/* ---------------------------------------------------------------------- */

#testimonial-carousel-root {
  min-height: 220px;
}

.testimonials-fallback {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.testimonial-card .stars {
  color: var(--rope);
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial-card .who {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* React testimonial carousel */
.tc-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.tc-card {
  background: var(--white);
  border-radius: 8px;
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: tc-fade 0.35s ease;
}

@keyframes tc-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tc-stars {
  color: var(--rope);
  letter-spacing: 3px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.tc-quote {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.tc-who {
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  margin-bottom: 0;
}

.tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.tc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--slate-light);
  background: var(--white);
  color: var(--charcoal);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-btn:hover {
  background: var(--pine-bright);
  border-color: var(--pine-bright);
  color: var(--white);
}

.tc-dots {
  display: flex;
  gap: 4px;
}

.tc-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.tc-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--slate-light);
  background: transparent;
}

.tc-dot.is-active::before {
  background: var(--pine-bright);
  border-color: var(--pine-bright);
}

.tc-dot.is-active {
  background: var(--pine-bright);
  border-color: var(--pine-bright);
}

/* ---------------------------------------------------------------------- */
/* CTA band                                                                */
/* ---------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, var(--pine) 0%, var(--pine-bright) 100%);
  color: var(--white);
}

.cta-band .container {
  padding: 52px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.3em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 50ch;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 760px) {
  .cta-band .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------------------------------------------------------------------- */
/* Contact                                                                 */
/* ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-dim);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--pine-pale);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row a,
.contact-row span {
  text-decoration: none;
  font-weight: 600;
  color: var(--charcoal);
}

.contact-row a:hover {
  color: var(--pine);
}

.contact-row .label {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--paper-dim);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  min-height: 48px;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--pine-bright);
  outline-offset: 1px;
  background: var(--white);
}

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--paper-dim);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 900px) {
  .map-frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
  }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.footer-list a:hover {
  color: var(--pine-light);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------------- */
/* Skip link / a11y                                                       */
/* ---------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine-bright);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}
