/*
Theme Name: OneScape Outdoor
Theme URI: https://onescapeco.com
Author: OneScape Outdoor
Description: A fast, responsive block theme for OneScape Outdoor's landscaping, excavation, and property services.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: onescape
*/

:root {
  --os-ink: #172019;
  --os-forest: #244a35;
  --os-moss: #56745e;
  --os-sand: #e8dfcf;
  --os-cream: #f7f4ed;
  --os-white: #ffffff;
  --os-clay: #c86d3a;
  --os-line: rgba(23, 32, 25, 0.14);
  --os-shadow: 0 20px 55px rgba(23, 32, 25, 0.12);
  --os-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: 0.18em; }
img { height: auto; }

.wp-site-blocks { min-height: 100vh; }
.os-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.os-kicker {
  color: var(--os-clay);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.os-display { letter-spacing: -.045em; line-height: .98; }
.os-lede { color: #4e5a51; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }
.os-muted { color: #607066; }

.os-header {
  background: rgba(247, 244, 237, .94);
  border-bottom: 1px solid var(--os-line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}
.os-header .wp-block-navigation a { text-decoration: none; }
.os-header .wp-block-navigation-item__content { font-size: .94rem; font-weight: 700; }
.os-header .wp-block-navigation-item__content:hover { color: var(--os-clay); }
.os-logo-text { font-weight: 900; letter-spacing: -.04em; }
.os-logo-text span { color: var(--os-clay); }

.os-button .wp-block-button__link,
.wp-block-button.os-button .wp-block-button__link {
  border-radius: 999px;
  box-shadow: none;
  font-weight: 800;
  padding: .9rem 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.os-button .wp-block-button__link:hover,
.wp-block-button.os-button .wp-block-button__link:hover {
  box-shadow: 0 10px 28px rgba(23, 32, 25, .18);
  transform: translateY(-2px);
}
.os-button-outline .wp-block-button__link { border: 1px solid currentColor; background: transparent !important; }

.os-hero {
  background: var(--os-ink) url('assets/hero-excavation-v2.webp') center center / cover no-repeat;
  color: white;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  padding: clamp(78px, 10vw, 132px) 0 78px;
  position: relative;
}
.os-hero::before {
  background: linear-gradient(90deg, rgba(15,23,17,.94) 0%, rgba(15,23,17,.82) 38%, rgba(15,23,17,.3) 68%, rgba(15,23,17,.08) 100%),
              linear-gradient(0deg, rgba(15,23,17,.42), transparent 55%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}
.os-hero::after {
  background: linear-gradient(180deg, transparent 72%, rgba(15,23,17,.72));
  content: "";
  inset: 0;
  opacity: 1;
  position: absolute;
  z-index: -1;
}
.os-hero .os-lede { color: #d4ddd6; max-width: 720px; }
.os-hero-content { max-width: 790px; }
.os-hero .os-display { max-width: 760px; }
.os-hero-stat { border-left: 1px solid rgba(255,255,255,.24); padding-left: 22px; }
.os-hero-stat strong { display: block; font-size: 1.15rem; }
.os-hero-stat span { color: #b7c4ba; font-size: .88rem; }

.os-trustbar { background: var(--os-forest); color: white; padding: 20px 0; }
.os-trustbar .wp-block-column { align-items: center; display: flex; gap: 10px; }
.os-check { color: #f3b58d; font-weight: 900; }

.os-section { padding: clamp(70px, 9vw, 118px) 0; }
.os-section-tight { padding: 58px 0; }
.os-bg-cream { background: var(--os-cream); }
.os-bg-sand { background: var(--os-sand); }
.os-bg-dark { background: var(--os-ink); color: white; }
.os-bg-dark .os-lede, .os-bg-dark .os-muted { color: #c9d2cb; }

.os-card-grid { align-items: stretch !important; }
.os-card {
  background: white;
  border: 1px solid var(--os-line);
  border-radius: var(--os-radius);
  box-shadow: 0 1px 0 rgba(23,32,25,.03);
  height: 100%;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.os-card:hover { border-color: rgba(200,109,58,.45); box-shadow: var(--os-shadow); transform: translateY(-5px); }
.os-card a { color: var(--os-forest); font-weight: 800; text-decoration: none; }
.os-card h3 { margin-top: 20px; }
.os-card-icon {
  align-items: center;
  background: var(--os-sand);
  border-radius: 14px;
  color: var(--os-forest);
  display: inline-flex;
  font-size: 1.35rem;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.os-photo-card {
  background: white;
  border: 1px solid var(--os-line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(23,32,25,.03);
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.os-photo-card:hover { box-shadow: var(--os-shadow); transform: translateY(-5px); }
.os-photo-card figure { height: 260px; margin: 0; overflow: hidden; }
.os-photo-card figure img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.os-photo-card:hover figure img { transform: scale(1.035); }
.os-photo-card-copy { padding: 26px 28px 30px; }
.os-photo-card h3 { margin: 0 0 10px; }
.os-photo-card p { color: #58665d; }
.os-photo-card a { color: var(--os-forest); font-weight: 800; text-decoration: none; }
.os-service-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.os-service-links a { background: white; border: 1px solid var(--os-line); border-radius: 999px; color: var(--os-forest); font-size: .92rem; font-weight: 800; padding: 10px 16px; text-decoration: none; }
.os-service-links a:hover { border-color: var(--os-clay); color: var(--os-clay); }

.os-reason { border-left: 2px solid var(--os-clay); padding-left: 22px; }
.os-reason strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.os-reason span { color: #5a675f; }

.os-split-card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--os-shadow);
  overflow: hidden;
}
.os-split-copy { padding: clamp(34px, 6vw, 76px); }
.os-illustration {
  background: var(--os-forest);
  min-height: 480px;
  overflow: hidden;
  position: relative;
}
.os-illustration img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }

.os-process { counter-reset: steps; }
.os-process .os-step { border-top: 1px solid var(--os-line); padding: 28px 0 28px 74px; position: relative; }
.os-process .os-step::before {
  align-items: center;
  background: var(--os-forest);
  border-radius: 50%;
  color: white;
  content: counter(steps);
  counter-increment: steps;
  display: flex;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 26px;
  width: 48px;
}

.os-band { background: var(--os-clay); color: white; padding: clamp(46px, 7vw, 76px) 0; }
.os-band .wp-block-buttons { justify-content: flex-end; }
.os-band .wp-block-button__link { background: var(--os-ink); }

.os-page-hero { background: var(--os-ink); color: white; overflow: hidden; padding: 0; }
.os-page-hero-grid { margin: 0 auto !important; min-height: 570px; }
.os-page-hero-copy { align-self: center; padding: clamp(58px, 8vw, 100px) clamp(30px, 6vw, 78px) !important; }
.os-page-hero-media { min-height: 570px; }
.os-page-hero-media figure { height: 100%; margin: 0; }
.os-page-hero-media img { height: 100%; object-fit: cover; width: 100%; }
.os-page-hero .os-lede { color: #d4ddd6; max-width: 760px; }
.os-breadcrumb { color: #aebcb2; font-size: .88rem; }
.os-breadcrumb a { color: white; }

.os-service-list { columns: 2; gap: 40px; list-style: none; padding: 0; }
.os-service-list li { break-inside: avoid; border-bottom: 1px solid var(--os-line); padding: 14px 0 14px 30px; position: relative; }
.os-service-list li::before { color: var(--os-clay); content: "✓"; font-weight: 900; left: 0; position: absolute; }

.os-faq details { border-top: 1px solid var(--os-line); padding: 20px 0; }
.os-faq summary { cursor: pointer; font-size: 1.08rem; font-weight: 800; }
.os-faq details p { color: #536158; max-width: 800px; }

.os-quote-form { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.os-quote-form .os-field-full { grid-column: 1 / -1; }
.os-quote-form label { display: block; font-size: .86rem; font-weight: 800; margin-bottom: 7px; }
.os-quote-form input, .os-quote-form select, .os-quote-form textarea {
  background: white;
  border: 1px solid #bac4bc;
  border-radius: 10px;
  color: var(--os-ink);
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}
.os-quote-form input:focus, .os-quote-form select:focus, .os-quote-form textarea:focus { border-color: var(--os-forest); outline: 3px solid rgba(86,116,94,.18); }
.os-quote-form button { background: var(--os-clay); border: 0; border-radius: 999px; color: white; cursor: pointer; font: inherit; font-weight: 800; padding: 15px 24px; }
.os-form-notice { border-radius: 10px; margin-bottom: 22px; padding: 14px 16px; }
.os-form-success { background: #dff1e4; color: #1f5b31; }
.os-form-error { background: #f9e3df; color: #8a2e21; }
.os-hp { left: -9999px; position: absolute; }

.os-footer { background: #101712; color: #cbd4cd; padding: 68px 0 28px; }
.os-footer h2, .os-footer h3, .os-footer a { color: white; }
.os-footer a { text-decoration: none; }
.os-footer a:hover { color: #f3b58d; }
.os-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 24px; }

@media (max-width: 880px) {
  .os-hero { background-position: 62% center; min-height: auto; }
  .os-hero::before { background: rgba(15,23,17,.78); }
  .os-header .wp-block-buttons { display: none; }
  .os-service-list { columns: 1; }
  .os-band .wp-block-buttons { justify-content: flex-start; }
  .os-page-hero-grid { min-height: auto; }
  .os-page-hero-media { min-height: 350px; }
}
@media (max-width: 620px) {
  .os-shell { width: min(100% - 28px, 1180px); }
  .os-quote-form { grid-template-columns: 1fr; }
  .os-quote-form .os-field-full { grid-column: auto; }
  .os-hero { padding-top: 62px; }
  .os-page-hero { padding: 68px 0 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
