/* Desert Tree OHS Consulting — stylesheet */

:root {
  --cream: #f4efe2;
  --cream-soft: #faf7ee;
  --paper: #fffdf8;
  --green: #4b8a52;
  --green-dark: #2f5c37;
  --green-deep: #1f3f26;
  --gold: #a9803f;
  --gold-soft: #cba15f;
  --ink: #211f1a;
  --ink-soft: #4a4438;
  --muted: #756c5c;
  --border: rgba(33, 31, 26, 0.1);
  --shadow: 0 20px 40px -24px rgba(33, 31, 26, 0.35);
  --radius: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 92px; }

/* ---------- Motion / reveal-on-scroll ---------- */
/* Gated behind .js (set by an inline script in <head>) so the page is fully
   visible if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.reveal-delay { transition-delay: 0.14s; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-deep);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.022em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 16px 32px -16px rgba(75, 138, 82, 0.6); }

.btn-ghost {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-ghost:hover { background: var(--green-deep); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 226, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--green-deep);
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--green-dark); }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a.active:not(.nav-cta)::after { transform: scaleX(1); }
.primary-nav a.active:not(.nav-cta) { color: var(--green-dark); }
.primary-nav .nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
}
.primary-nav .nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 32px 0 90px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(75, 138, 82, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(169, 128, 63, 0.12), transparent 70%),
    linear-gradient(180deg, var(--cream-soft), var(--cream) 60%);
}
.hero-watermark {
  position: absolute;
  top: -140px;
  right: -180px;
  width: 620px;
  height: 620px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  object-fit: contain;
}
.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  object-fit: contain;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
  margin: 0 auto 24px;
  color: var(--green-deep);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 640px;
  margin: 0 auto 44px;
  padding: 20px 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-stat {
  flex: 1 1 0;
  min-width: 130px;
  padding: 4px 18px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.hero-stat:first-child { border-left: none; }
.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.hero-stat span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.hero-quote {
  margin: 0 auto;
  max-width: 520px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.25rem;
  color: var(--green-dark);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

/* ---------- Hero load-in ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero .hero-logo { animation: heroRise 0.8s ease both, floatLogo 5.5s ease-in-out 0.9s infinite; }
.hero .eyebrow { animation: heroRise 0.8s ease both; animation-delay: 0.12s; }
.hero h1 { animation: heroRise 0.85s ease both; animation-delay: 0.2s; }
.hero .hero-lede { animation: heroRise 0.8s ease both; animation-delay: 0.34s; }
.hero .hero-actions { animation: heroRise 0.8s ease both; animation-delay: 0.46s; }
.hero .hero-stats { animation: heroRise 0.8s ease both; animation-delay: 0.58s; }
.hero .hero-quote { animation: heroRise 0.8s ease both; animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-logo,
  .hero .eyebrow,
  .hero h1,
  .hero .hero-lede,
  .hero .hero-actions,
  .hero .hero-stats,
  .hero .hero-quote { animation: none; }
}

@media (max-width: 720px) {
  .hero-watermark { width: 380px; height: 380px; top: -80px; right: -140px; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-left: none; border-top: 1px solid var(--border); }
  .hero-stat:first-child { border-top: none; }
  .section-title-oneline { white-space: normal; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--cream-soft); }
#vision-mission { padding-top: 48px; }
#values { padding-top: 48px; }
#why-us { padding-top: 20px; }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-kicker-light { color: var(--gold-soft); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 20ch;
  margin-bottom: 18px;
}
.services-title {
  max-width: none;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
}
.section-title-light { color: var(--paper); }

.section-title-oneline {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
}

.section-intro {
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 40px;
}

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.split-lead h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  position: sticky;
  top: 110px;
}
.split-body p { font-size: 1.05rem; }
.split-body p:last-of-type { font-weight: 600; letter-spacing: -0.01em; color: var(--green-dark); font-family: var(--serif); font-size: 1.2rem; }

.protect-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.protect-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Vision / Mission ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.vm-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.vm-index {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.vm-highlight {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-deep);
  font-weight: 500;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green); }
.value-card:hover .value-index { background: var(--green); }
.value-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  transition: background 0.25s ease;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value-tag { font-weight: 600; color: var(--green-dark); margin-bottom: 10px; font-size: 0.92rem; }
.value-card p:last-child { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 3px solid var(--green);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-top-color: var(--gold); }
.service-index {
  display: block;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

.services-cta { text-align: center; margin-top: 48px; }

/* ---------- Why Us ---------- */
.partner-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(75, 138, 82, 0.12);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 36px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 72px;
}
.platform-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.platform-card:hover .platform-icon-wrap { transform: scale(1.08) rotate(-4deg); }
.platform-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 20px -12px rgba(47, 92, 55, 0.55);
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}
.platform-icon {
  width: 26px;
  height: 26px;
  margin: 0;
  filter: brightness(0) invert(1);
}
.platform-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.platform-card p { font-size: 0.92rem; margin-bottom: 0; }

.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 72px;
}
.why-block h3 { font-size: 1.3rem; margin-bottom: 16px; }

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.check-list li strong {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--green-deep);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.diff-list { display: flex; flex-direction: column; gap: 20px; }
.diff-item { display: flex; gap: 16px; }
.diff-index {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.diff-item strong { display: block; color: var(--green-deep); margin-bottom: 4px; }
.diff-item p { font-size: 0.92rem; margin-bottom: 0; }

.method-block {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.method-block h3 { font-size: 1.4rem; }
.method-block .section-intro { max-width: none; }
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.method-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.method-card h4 { font-size: 1.1rem; color: var(--green-deep); margin-bottom: 10px; }
.method-card ul { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.method-card li { font-size: 0.92rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.method-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.method-foot { font-size: 0.88rem; color: var(--green-dark); font-weight: 600; margin-bottom: 0; }
.method-formula {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--green-dark);
  font-weight: 600;
  background: rgba(75,138,82,0.1);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
}

/* ---------- Contact ---------- */
.section-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-deep), #16281a);
  color: var(--paper);
}
.section-contact .section-intro { color: rgba(255,255,255,0.75); }
.contact-watermark {
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 520px;
  height: 520px;
  opacity: 0.07;
  pointer-events: none;
  object-fit: contain;
}
@media (max-width: 720px) {
  .contact-watermark { width: 320px; height: 320px; bottom: -100px; left: -140px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 18px; }
.contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin-bottom: 6px;
  font-weight: 700;
}
.contact-value { font-size: 1.15rem; font-weight: 500; color: var(--paper); }
.contact-link { text-decoration: none; }
.contact-link:hover { color: var(--gold-soft); }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.form-row textarea {
  resize: none;
  overflow-y: auto;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: rgba(255,255,255,0.12);
}
.form-note { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-align: center; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #16281a;
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
.footer-name { color: #fff; font-weight: 600; margin: 0; font-size: 0.95rem; }
.footer-tagline { margin: 0; font-size: 0.82rem; color: var(--gold-soft); }
.footer-location { margin: 2px 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.footer-copy { margin: 0; font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-lead h2 { position: static; }
  .vm-grid,
  .why-split,
  .method-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
  }
  .primary-nav a { font-size: 1.1rem; }
  .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); }

  .section { padding: 64px 0; }
  .hero { padding: 24px 0 60px; }
  .values-grid,
  .services-grid,
  .platform-grid { grid-template-columns: 1fr; }
  .method-block { padding: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
