/* ============================================================
   Cascade Ridge Excavation & Sitework — Public Site Styles
   Fictional demo company. Built as a showcase demo.
   ============================================================ */
:root {
  --forest: #16281f;
  --forest-2: #1f3a2d;
  --moss: #3d5a45;
  --orange: #f97316;
  --orange-dark: #dd5f0a;
  --sand: #f4f1ea;
  --paper: #fbfaf7;
  --ink: #1c211e;
  --muted: #64706a;
  --line: #e2ded4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 40, 31, .12);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  position: fixed; top: 14px; right: -44px; z-index: 999;
  transform: rotate(38deg);
  background: var(--orange); color: #fff;
  font: 700 12px/1 var(--font-body); letter-spacing: 2px;
  padding: 7px 50px; box-shadow: 0 3px 10px rgba(0,0,0,.25);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22, 40, 31, .96); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--orange);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--orange); display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 10.5px; letter-spacing: 3px; color: #9db3a5; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #cfdad2; font-size: 14.5px; font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--orange); }
.btn { display: inline-block; font-weight: 700; border-radius: 8px; padding: 12px 24px; transition: .2s; cursor: pointer; border: none; font-size: 15px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.5); color: #fff; padding: 10px 22px; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-login { background: transparent; border: 1.5px solid #4e6a59; color: #cfdad2; padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-login:hover { border-color: var(--orange); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: grid; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,25,19,.88) 25%, rgba(13,25,19,.45) 65%, rgba(13,25,19,.2)); }
.hero-inner { position: relative; z-index: 2; padding: 90px 0; max-width: 640px; }
.hero-eyebrow { display: inline-block; background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.5); color: #ffb37e; font-size: 12.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 18px; color: #d7e0da; margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stat bar ---------- */
.stat-bar { background: var(--forest); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 12px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-head); font-size: 42px; color: var(--orange); }
.stat span { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #9db3a5; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--orange-dark); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 12px; color: var(--forest); }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--forest-2), var(--moss)); margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 21px; color: var(--forest); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .learn { display: inline-block; margin-top: 14px; color: var(--orange-dark); font-weight: 700; font-size: 14px; }

/* ---------- Project gallery ---------- */
.project-card { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--forest); min-height: 300px; display: flex; align-items: flex-end; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.project-card:hover img { transform: scale(1.05); opacity: .55; }
.project-card .overlay { position: relative; z-index: 2; width: 100%; padding: 22px; background: linear-gradient(transparent, rgba(13,25,19,.92) 55%); color: #fff; }
.project-card .tag { display: inline-block; background: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 8px; }
.project-card h3 { font-size: 22px; }
.project-card small { color: #b9c8bf; font-size: 13px; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.checklist { list-style: none; margin-top: 20px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 13px; color: #3c463f; font-size: 15.5px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; background: var(--orange);
  color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.quote-card p { font-size: 15.5px; color: #3c463f; font-style: italic; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-who .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--moss); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); font-size: 17px; }
.quote-who b { display: block; font-size: 14.5px; color: var(--forest); }
.quote-who span { font-size: 12.5px; color: var(--muted); }
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--forest) 40%, var(--forest-2)); color: #fff; text-align: center; padding: 74px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(249,115,22,.12); top: -200px; right: -100px; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.cta-band p { color: #b9c8bf; margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.info-block { display: flex; gap: 15px; margin-bottom: 24px; }
.info-block .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--forest-2); display: grid; place-items: center; flex-shrink: 0; }
.info-block .icon svg { width: 22px; height: 22px; }
.info-block b { display: block; color: var(--forest); font-size: 15px; }
.info-block span { color: var(--muted); font-size: 14px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--forest); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 1px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 9px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink); transition: .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1a13; color: #93a69b; padding: 60px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: 1.5px; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; transition: .2s; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom .disclaimer { color: #5c6f64; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(115deg, var(--forest) 45%, var(--forest-2)); color: #fff; padding: 70px 0 58px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(249,115,22,.1); }
.page-hero .kicker { color: var(--orange); }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 8px; }
.page-hero p { color: #b9c8bf; max-width: 560px; margin-top: 10px; }
.crumbs { font-size: 13px; color: #7e968a; margin-bottom: 16px; }
.crumbs a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .grid-3, .grid-2, .split, .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  form .row { grid-template-columns: 1fr; }
}
