/* EarthCare — distinctive editorial layout, orange / charcoal / cream */

:root {
  --orange: #f45100;
  --orange-hover: #ff6a1a;
  --orange-soft: rgba(244, 81, 0, 0.14);
  --black: #0f1114;
  --charcoal: #1a1e24;
  --muted: #8b939e;
  --cream: #f6f3ee;
  --paper: #fdfcfa;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(15, 17, 20, 0.14);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(244, 81, 0, 0.07), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(26, 30, 36, 0.05), transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 17, 20, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--black);
  text-decoration: none;
}

.brand:hover {
  color: var(--black);
}

.brand-mark {
  color: var(--orange);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--black);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--black);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.28s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: rgba(15, 17, 20, 0.15);
}

.btn-ghost:hover {
  border-color: var(--black);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

.text-accent {
  color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: -40% -20% auto -30%;
  height: 120%;
  background:
    conic-gradient(from 210deg at 70% 40%, var(--orange-soft), transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(244, 81, 0, 0.12), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.hero-title-accent {
  display: inline-block;
  position: relative;
  color: var(--black);
}

.hero-title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.38em;
  background: var(--orange-soft);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-lead {
  max-width: 38ch;
  margin: 0 0 2rem;
  color: var(--charcoal);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 17, 20, 0.06);
  background:
    linear-gradient(135deg, var(--charcoal) 0%, #2d333d 50%, var(--black) 100%);
  min-height: 220px;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(244, 81, 0, 0.04) 18px,
      rgba(244, 81, 0, 0.04) 19px
    );
  pointer-events: none;
  z-index: 1;
}

.hero-visual.hero-visual--fallback::before {
  opacity: 0.6;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.hero-visual.hero-visual--fallback .hero-img {
  display: none;
}

.hero-visual.hero-visual--fallback::after {
  content: "Add assets/hero-banner.png";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  z-index: 2;
}

/* Values strip */
.strip-values {
  background: var(--paper);
  border-block: 1px solid rgba(15, 17, 20, 0.06);
  padding: 2.25rem 0;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 0 0.5rem;
}

.value-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.value-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.value-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

.section-head-center {
  text-align: center;
  margin-inline: auto;
  max-width: 56ch;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 1rem;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-footnote {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Services bento */
.section-services {
  background: var(--cream);
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.service-card {
  grid-column: span 4;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid rgba(15, 17, 20, 0.06);
  box-shadow: 0 8px 28px rgba(15, 17, 20, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: transform 0.22s var(--ease-out), border-color 0.22s;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 81, 0, 0.35);
}

.service-card-wide {
  grid-column: span 8;
  background: linear-gradient(135deg, var(--paper) 0%, rgba(244, 81, 0, 0.06) 100%);
}

.dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

/* Dark why section */
.section-dark {
  background: var(--black);
  color: #e8eaee;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.section-tag-on-dark {
  color: #ffb088;
}

.section-dark h2 {
  color: #fff;
}

.section-dark .text-accent {
  color: var(--orange-hover);
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 2.5rem;
  align-items: start;
}

.why-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1.5rem;
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.why-list li {
  padding-left: 1.6rem;
  position: relative;
  font-weight: 600;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

.trust-badge {
  background: linear-gradient(145deg, rgba(244, 81, 0, 0.25), rgba(244, 81, 0, 0.05));
  border: 1px solid rgba(244, 81, 0, 0.45);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.trust-badge-inner {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.trust-badge strong {
  color: #ffb088;
}

/* Referrals */
.section-referrals {
  background: var(--paper);
}

.referral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.referral-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(15, 17, 20, 0.08);
  background: var(--cream);
}

.referral-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.referral-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.referral-bullets {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.referral-bullets li {
  margin-bottom: 0.35rem;
}

.referral-emphasis {
  font-weight: 800;
  color: var(--black) !important;
}

.referral-built {
  border-left: 4px solid var(--orange);
}

.referral-cash {
  background: var(--black);
  color: #e8eaee;
  border-color: transparent;
}

.referral-cash h3 {
  color: #fff;
}

.referral-cash p {
  color: #b8bec8;
}

.cash-stat {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--orange-hover) !important;
  margin-top: 1rem !important;
}

.referral-flow {
  background: linear-gradient(160deg, rgba(244, 81, 0, 0.1), transparent);
}

.flow-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.flow-steps li span {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(15, 17, 20, 0.08);
}

.flow-steps li:not(:last-child)::after {
  content: "→";
  margin-left: 0.5rem;
  color: var(--orange);
}

.referral-cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: #fff;
}

.referral-cta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.referral-cta-sub {
  margin: 0 0 1.5rem;
  color: #b8bec8;
}

.referral-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.referral-cta-band .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.referral-cta-band .btn-outline:hover {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

/* Contact */
.section-contact {
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin: 0.5rem 0 1rem;
}

.contact-intro > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.contact-details a {
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--orange);
}

.muted {
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.35rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 17, 20, 0.07);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(15, 17, 20, 0.1);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.field-full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0 5rem;
  border-top: 1px solid rgba(15, 17, 20, 0.06);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* WhatsApp FAB */
.fab-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
  z-index: 60;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.fab-wa:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 44px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card,
  .service-card-wide {
    grid-column: span 6;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .trust-badge {
    order: -1;
  }

  .referral-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(253, 252, 250, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 17, 20, 0.06);
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(15, 17, 20, 0.06);
    padding: 0.65rem 0;
  }

  .header-cta .btn-ghost {
    display: none;
  }

  .service-card,
  .service-card-wide {
    grid-column: span 12;
  }

  .strip-inner {
    grid-template-columns: 1fr;
  }

  .section-dark {
    clip-path: polygon(0 1.5%, 100% 0, 100% 98.5%, 0 100%);
  }

  .flow-steps li:not(:last-child)::after {
    display: none;
  }

  .flow-steps {
    flex-direction: column;
    align-items: stretch;
  }
}
