/* Crescent Energy service pages. Tokens match the homepage export (exports 13/website). */
:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --paper: #f9f4ed;
  --text: #201e1d;
  --muted: #645c50;
  --line: #dcd3c4;
  --blue: #2b6a9b;
  --navy: #0e2e50;
  --orange: #c67139;
  --orange-dark: #b2622d;
  --peach: #ffc6a5;
  --cream: #f4e9d8;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(46, 43, 37, .14);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, .22);
  --heading: "Caprasimo", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.08; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--cream); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.muted { color: var(--muted); }

/* Header */
.topbar { background: var(--orange); color: var(--cream); font-size: 14px; font-weight: 600; text-align: center; padding: 7px 16px; }
.topbar a { color: var(--cream); }
.site-head { background: var(--blue); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); font-family: var(--heading); font-size: 24px; line-height: 1.1; white-space: nowrap; margin-right: auto; }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.pill { background: var(--orange); color: var(--cream); text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 999px; white-space: nowrap; }
.pill:hover { background: var(--orange-dark); }

/* Hero */
.hero { background: var(--blue); color: var(--cream); padding: 64px 0 72px; }
.hero .eyebrow { color: rgba(244, 233, 216, .78); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); color: var(--cream); text-shadow: 4px 4px 0 var(--orange); max-width: 15ch; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 640px; margin: 18px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; background: var(--orange); color: var(--cream); font: 700 17px/1 var(--body); text-decoration: none; padding: 17px 26px; border-radius: 999px; }
.btn:hover { background: var(--orange-dark); }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn[disabled] { opacity: .65; cursor: wait; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(14, 46, 80, .42); color: var(--cream); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.stripes { height: 64px; background: linear-gradient(var(--peach) 0 12px, var(--blue) 12px 18px, var(--orange) 18px 28px, var(--blue) 28px 34px, var(--orange) 34px 64px); }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(32px, 4vw, 48px); color: var(--orange); }
.intro { max-width: 680px; color: var(--muted); font-size: 18px; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 28px; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 700; font-size: 18px; margin-bottom: 12px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-md); padding: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--orange); }
.choice input { accent-color: var(--orange); margin-top: 4px; }
.choice b { display: block; font-size: 16px; }
.choice small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.stack { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { accent-color: var(--orange); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.field { display: block; margin-bottom: 18px; }
.field > span, .range-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.range-row output { color: var(--orange-dark); }
.hint { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: 16px/1.4 var(--body); color: var(--text); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--orange); }
[hidden] { display: none !important; }

.results { background: var(--navy); color: var(--cream); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.results .label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 233, 216, .7); }
.big { font-family: var(--heading); font-size: clamp(44px, 6vw, 60px); color: var(--peach); line-height: 1; margin: 8px 0 6px; }
.range-line { margin-bottom: 18px; }
.items { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 14px; }
.items td { padding: 9px 0; border-top: 1px solid rgba(244, 233, 216, .16); vertical-align: top; }
.items td.num { text-align: right; white-space: nowrap; padding-left: 12px; }
.fine { font-size: 14px; color: rgba(244, 233, 216, .75); }

/* Permit data band */
.band { background: var(--navy); color: var(--cream); padding: 64px 0; }
.band h2 { color: var(--cream); font-size: clamp(30px, 3.6vw, 44px); }
.band .eyebrow { color: var(--peach); }
.stats { list-style: none; padding: 0; margin: 24px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stats li { background: rgba(244, 233, 216, .07); border-radius: var(--radius-md); padding: 20px; }
.stats b { display: block; font-family: var(--heading); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); color: var(--peach); line-height: 1.1; }
.stats span { font-size: 15px; color: rgba(244, 233, 216, .82); }
.source { font-size: 14px; color: rgba(244, 233, 216, .65); max-width: 760px; }

/* Quote */
.quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.call-big { display: inline-block; background: var(--navy); color: var(--cream); text-decoration: none; font-weight: 700; font-size: 22px; padding: 16px 28px; border-radius: 999px; margin: 6px 0 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.sent { background: var(--paper); border-radius: var(--radius-md); padding: 22px; }
.sent h3 { color: var(--orange); font-size: 28px; }
.err { color: #8c2b1a; font-weight: 600; margin-top: 12px; }

/* Why + FAQ */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.why-grid .card h3 { font-size: 26px; }
.why-grid .card p { color: var(--muted); margin: 0; }
.star { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--peach); display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.faq details { background: var(--paper); border-radius: var(--radius-md); padding: 0 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; font-size: 18px; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.cross { margin-top: 28px; font-weight: 600; }
.cross a { color: var(--orange-dark); }

/* Footer */
.site-foot { background: var(--blue); color: var(--cream); padding: 40px 0 0; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-bottom: 36px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 60px; height: 60px; border-radius: 50%; }
.foot-brand b { font-family: var(--heading); font-weight: 400; font-size: 24px; display: block; }
.foot-brand span, .foot-links { font-size: 14px; }
.foot-links { text-align: right; line-height: 1.9; }
.foot-links a { color: var(--cream); }
.site-foot .stripes { height: 34px; background: linear-gradient(var(--peach) 0 8px, var(--blue) 8px 12px, var(--orange) 12px 18px, var(--blue) 18px 22px, var(--orange) 22px 34px); }

.mobile-bar { display: none; }

@media (max-width: 860px) {
  .calc, .quote-grid { grid-template-columns: 1fr; }
  .results { position: static; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav, .topbar { display: none; }
  .head-row { min-height: 64px; gap: 12px; }
  .brand { font-size: 20px; }
  .brand img { width: 40px; height: 40px; }
  .pill { padding: 9px 14px; font-size: 15px; }
  .hero { padding: 44px 0 52px; }
  .section { padding: 52px 0; }
  .card, .results { padding: 22px; }
  .choices, .row2 { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  body { padding-bottom: 72px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); }
  .mobile-bar a { text-align: center; text-decoration: none; font-weight: 700; padding: 13px 8px; border-radius: 999px; background: var(--orange); color: var(--cream); }
  .mobile-bar a + a { background: var(--cream); color: var(--navy); }
}
@media (max-width: 440px) {
  .site-head .pill { display: none; }  /* the bottom bar has the call button */
}
