/* =========================================================================
   REL Landscape Construction — site styles
   Palette: landscaping green + warm stone/earth; ember accent reserved
   for Fire Cleanup & Property Restoration sections only.
   ========================================================================= */

:root {
  --green-900: #14331f;
  --green-800: #19421f;
  --green-700: #1f4d2e;
  --green-600: #2e6b3e;
  --green-500: #3d8a52;
  --green-100: #e3efe6;

  --ember-600: #b8470f;
  --ember-500: #d2561e;
  --ember-400: #e8763f;
  --ember-100: #fbe9df;

  --stone-900: #1c1b19;
  --stone-700: #3a3733;
  --stone-600: #514c45;
  --stone-500: #6b6660;
  --stone-400: #8f897f;
  --stone-300: #c3bcb0;
  --stone-200: #e4ded4;

  --cream: #f7f5f0;
  --sand: #efeae1;
  --white: #ffffff;

  --ink: #1c1b19;
  --muted: #514c45;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(28, 27, 25, .08), 0 1px 2px rgba(28, 27, 25, .06);
  --shadow: 0 10px 30px rgba(20, 51, 31, .10), 0 4px 10px rgba(28, 27, 25, .06);
  --shadow-lg: 0 24px 60px rgba(20, 51, 31, .18);
  --ring: 0 0 0 3px rgba(61, 138, 82, .35);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", var(--sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.04;
  letter-spacing: .005em;
  color: var(--stone-900);
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-600);
  margin: 0 0 .7rem;
}
.eyebrow.ember { color: var(--ember-600); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--green {
  background: linear-gradient(160deg, var(--green-800), var(--green-600));
  color: #eaf3ec;
}
.section--green h2, .section--green h3 { color: #fff; }
.section--green .eyebrow { color: #a9d8b6; }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.16rem; color: var(--muted); }
.section--green .lead { color: #cfe4d4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 650; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s;
  line-height: 1; text-align: center;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn--ember { background: var(--ember-500); color: #fff; }
.btn--ember:hover { background: var(--ember-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: #fff; color: var(--green-700); border-color: var(--stone-200); }
.btn--outline:hover { border-color: var(--green-500); color: var(--green-700); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; color: var(--stone-900); line-height: 1; }
.brand:hover { color: var(--stone-900); }
.brand .mark { flex: none; }
.brand .brand-text { display: flex; flex-direction: column; }
.brand .brand-text b { font-size: 1.16rem; }
.brand .brand-text span { font-size: .66rem; letter-spacing: .22em; color: var(--green-600); font-family: var(--sans); font-weight: 700; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a.navlink { font-weight: 600; color: var(--stone-700); padding: .5rem .7rem; border-radius: 8px; font-size: .98rem; }
.nav a.navlink:hover { background: var(--green-100); color: var(--green-700); }
.nav a.navlink[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
.nav a.navlink.fire { color: var(--ember-600); }
.nav a.navlink.fire:hover { background: var(--ember-100); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.phone-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 750; color: var(--stone-900);
  font-size: 1.02rem; white-space: nowrap; }
.phone-link:hover { color: var(--green-700); }
.phone-link svg { width: 1.1em; height: 1.1em; color: var(--green-600); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--stone-900); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #edf4ee; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(61,138,82,.45), transparent 60%),
    linear-gradient(155deg, var(--green-900) 0%, var(--green-700) 45%, var(--green-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.5'%3E%3Cpath d='M0 90 Q30 70 60 90 T120 90'/%3E%3Cpath d='M0 60 Q30 40 60 60 T120 60'/%3E%3Cpath d='M0 30 Q30 10 60 30 T120 30'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { color: #d6e7da; font-size: 1.24rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.4rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.15); }
.hero-badge { display: flex; align-items: center; gap: .6rem; font-size: .96rem; color: #cfe4d4; font-weight: 600; }
.hero-badge svg { width: 1.4em; height: 1.4em; color: #a9d8b6; flex: none; }

.hero--page { background:
    radial-gradient(900px 400px at 85% -20%, rgba(61,138,82,.4), transparent 60%),
    linear-gradient(155deg, var(--green-900), var(--green-700)); }
.hero--page .hero-inner { padding: clamp(2.6rem, 5vw, 3.8rem) 0; max-width: 820px; }
.hero--fire { background:
    radial-gradient(1000px 460px at 82% -10%, rgba(232,118,63,.5), transparent 62%),
    linear-gradient(155deg, #2a1a12 0%, #5a2f18 48%, #8a3d1a 100%); }
.hero--fire .eyebrow { color: #f3c3a6; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; font-weight: 600; letter-spacing: .02em; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-500); }
.card .icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 1.1rem; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); margin-bottom: 1rem; font-size: .98rem; }
.card .card-link { margin-top: auto; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: .35rem; }
.card .card-link svg { width: 1em; height: 1em; transition: transform .15s; }
.card:hover .card-link svg { transform: translateX(3px); }

.card--fire { border-color: var(--ember-400); background: linear-gradient(180deg, #fff, var(--ember-100)); }
.card--fire .icon { background: var(--ember-100); color: var(--ember-600); }
.card--fire:hover { border-color: var(--ember-500); }
.card--fire .card-link { color: var(--ember-600); }
.tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--ember-500); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .9rem; align-self: flex-start; }

/* ---------- Feature / checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--stone-700); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 1.3rem; height: 1.3rem;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.9rem no-repeat;
  border-radius: 50%;
}
.checklist.ember li::before { background-color: var(--ember-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8470f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.checklist.two { grid-template-columns: 1fr 1fr; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }

/* media placeholder blocks (swap for real REL photos) */
.media {
  border-radius: var(--radius); min-height: 320px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  box-shadow: var(--shadow); display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.media.earth { background: linear-gradient(135deg, #4a3a2a, #7a6450); }
.media.fire { background: linear-gradient(135deg, #5a2f18, #b8470f); }
.media.stone { background: linear-gradient(135deg, #44433f, #6b6660); }
.media::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 40 Q20 25 40 40 T80 40'/%3E%3Cpath d='M0 55 Q20 40 40 55 T80 55'/%3E%3C/g%3E%3C/svg%3E");
}
.media .media-label { position: relative; z-index: 2; font-family: var(--sans); font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; display: flex; align-items: center; gap: .5rem; }
.media svg.ph { width: 46px; height: 46px; opacity: .55; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stat b { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; display: block; line-height: 1; }
.stat span { font-size: .9rem; color: #bcd7c3; letter-spacing: .03em; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.area-chip { background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-weight: 650; color: var(--stone-700); display: flex; align-items: center; gap: .5rem; }
.area-chip svg { width: 1.1em; height: 1.1em; color: var(--green-600); flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: .5rem; }
.step .num { font-family: var(--display); font-size: 2.4rem; color: var(--green-500); line-height: 1; display: block; margin-bottom: .3rem; }
.section--green .step .num { color: #a9d8b6; }
.hero--fire ~ * .step .num, .steps.ember .step .num { color: var(--ember-500); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--green-800), var(--green-600)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.2rem); text-align: center; box-shadow: var(--shadow); }
.cta-band.ember { background: linear-gradient(160deg, #5a2f18, var(--ember-500)); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 1.6rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: .35rem; color: var(--stone-700); }
.field .req { color: var(--ember-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--stone-200); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .84rem; color: var(--stone-500); margin-top: .2rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-500); }
.form-status.err { background: var(--ember-100); color: var(--ember-600); border: 1px solid var(--ember-400); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { border-radius: var(--radius); min-height: 220px; position: relative; overflow: hidden; display: grid; place-items: center;
  color: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); }
.tile .media-label { position: relative; z-index: 2; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; text-align: center; padding: 0 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-sm); margin-bottom: .8rem; padding: .3rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--stone-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--green-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: .4rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stone-900); color: #c9c4bb; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #c9c4bb; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand b { color: #fff; }
.footer-brand p { color: #a7a299; max-width: 300px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact svg { width: 1.1em; height: 1.1em; color: var(--green-500); flex: none; margin-top: .2em; }
.footer-contact a.big { font-size: 1.15rem; font-weight: 750; color: #fff; }
.footer-bottom { border-top: 1px solid #332f2a; margin-top: 2.5rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: #8a857c; font-size: .85rem; }

/* ---------- Floating mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .header-cta .phone-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--stone-200); padding: .8rem 20px 1.2rem; box-shadow: var(--shadow);
  }
  .nav.open a.navlink { padding: .8rem .6rem; border-radius: 8px; font-size: 1.05rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checklist.two { grid-template-columns: 1fr; }
  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--green-700); box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  }
  .callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    color: #fff; font-weight: 700; padding: .95rem; font-size: 1.02rem; }
  .callbar a:first-child { border-right: 1px solid rgba(255,255,255,.2); }
  .callbar a svg { width: 1.15em; height: 1.15em; }
  body { padding-bottom: 56px; }
  .site-footer { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== Authentic REL logo (recovered from live site) ===== */
.brand-logo { display: block; height: 58px; width: auto; }
@media (max-width: 720px) { .brand-logo { height: 46px; } }
.site-footer .brand-logo { height: 62px; width: auto; background: #fff; padding: 11px 15px; border-radius: 12px; }

/* ===== Real project photos in media slots ===== */
.media-img { width: 100%; height: 100%; min-height: 320px; max-height: 470px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ===== Photo heroes ===== */
.hero.has-photo { background-size: cover; background-position: center; }

/* ===== Gallery figures ===== */
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); background: #20201e; }
.gallery-grid figure img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; color: #fff;
  font-size: .82rem; font-weight: 650; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.gallery-grid figure.fire figcaption { background: linear-gradient(transparent, rgba(123,44,16,.92)); }
@media (max-width: 960px) { .gallery-grid figure img { height: 220px; } }
