/* ============================================================
   Pelican General Construction — shared styles for sub-pages
   (services, locations, resources). Mirrors the homepage design
   tokens. Linked by every page under /services, /tri-cities,
   /resources. Light theme only.
   ============================================================ */
:root {
  --bg-deep:    #F5F0E8;
  --bg-surface: #EDE6DA;
  --bg-raised:  #E4DBCC;
  --accent:     #456650;
  --forest:     #2B4031;  /* brand primary — logo green */
  --accent-h:   #557760;
  --text-1:     #1A1510;
  --text-2:     #5C5048;
  --text-3:     #9A8E80;
  --border:     #D0C8BA;
  --border-w:   #BEB2A0;
  --nav-h:      72px;
  --pad:        clamp(1.5rem, 5vw, 4rem);
  --sp:         clamp(4rem, 8vw, 7rem);
  --wrap:       1040px;
  --font-d:     'Oswald', sans-serif;
  --font-b:     'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
nav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, transparent 100%);
  z-index: -1; pointer-events: none; transition: opacity .3s;
}
nav.scrolled {
  background: rgba(245,240,232,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: var(--border); box-shadow: 0 1px 0 var(--border);
}
nav.scrolled::before { opacity: 0; }
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-badge { height: 54px; width: auto; display: block; filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); transition: filter .3s; }
nav.scrolled .nav-badge { filter: none; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-wm-1 { font-family: var(--font-d); font-weight: 700; text-transform: uppercase; font-size: 1.18rem; letter-spacing: .03em; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); transition: color .25s, text-shadow .25s; }
.nav-wm-2 { font-family: var(--font-d); font-weight: 500; text-transform: uppercase; font-size: .56rem; letter-spacing: .19em; margin-top: 3px; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px rgba(0,0,0,.6); transition: color .25s, text-shadow .25s; }
nav.scrolled .nav-wm-1 { color: var(--text-1); text-shadow: none; }
nav.scrolled .nav-wm-2 { color: var(--text-2); text-shadow: none; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .78rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.95); text-shadow: 0 1px 4px rgba(0,0,0,.6); transition: color .2s, text-shadow .2s; }
.nav-links a:hover { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
nav.scrolled .nav-links a { color: var(--text-2); text-shadow: none; }
nav.scrolled .nav-links a:hover { color: var(--text-1); }
.btn-quote { background: var(--text-1) !important; color: var(--bg-deep) !important; padding: .55rem 1.35rem !important; font-weight: 600 !important; transition: background .2s, color .2s !important; text-shadow: none !important; }
.btn-quote:hover { background: var(--accent) !important; color: #fff !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: #fff; }

/* ============ PAGE HERO (forest band) ============ */
.page-hero {
  position: relative; background: var(--forest); color: #F5F0E8;
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) var(--pad) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -8%; top: -40%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-eyebrow { font-size: .7rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #9DBBA6; margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.page-eyebrow::before { content: ''; width: 2rem; height: 1px; background: #9DBBA6; }
.page-hero h1 { font-family: var(--font-d); font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; color: #F8F4EC; max-width: 14ch; }
.page-hero .lead { margin-top: 1.4rem; max-width: 56ch; font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(248,244,236,.82); line-height: 1.7; }

/* ============ BREADCRUMBS ============ */
.crumbs { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: .9rem var(--pad); }
.crumbs ol { max-width: var(--wrap); margin: 0 auto; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; gap: .5rem; color: var(--text-3); }
.crumbs li:not(:last-child)::after { content: '/'; color: var(--border-w); }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { color: var(--text-1); }

/* ============ CONTENT SECTIONS ============ */
.section { padding: var(--sp) var(--pad); }
.section--surface { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-family: var(--font-d); font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin-bottom: 1.25rem; color: var(--text-1); }
.section h3 { font-family: var(--font-d); font-size: 1.12rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin-bottom: .5rem; color: var(--text-1); }
.section p { color: var(--text-2); line-height: 1.78; margin-bottom: 1.1rem; font-size: 1rem; max-width: 68ch; }
.section p:last-child { margin-bottom: 0; }
.section .intro { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-1); line-height: 1.7; max-width: 64ch; }
.section a.inline { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--border-w); transition: color .2s, border-color .2s; }
.section a.inline:hover { color: var(--accent-h); border-color: var(--accent); }

/* feature / benefit list */
.feature-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 68ch; }
.feature-list li { position: relative; padding-left: 1.9rem; color: var(--text-2); line-height: 1.7; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--accent); transform: rotate(45deg); }
.feature-list li strong { color: var(--text-1); font-weight: 600; }

/* tile grid (what we build) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); margin-top: 1.75rem; border: 1px solid var(--border); }
.tile { background: var(--bg-deep); padding: 1.6rem 1.5rem; }
.tile .num { font-family: var(--font-d); font-size: .68rem; letter-spacing: .24em; color: var(--accent); margin-bottom: .6rem; }
.tile p { margin: 0; font-size: .92rem; }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; margin-top: 1.5rem; max-width: 70ch; }
.steps li { list-style: none; position: relative; padding: 1.1rem 1.25rem 1.1rem 3.6rem; background: var(--bg-surface); border: 1px solid var(--border); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem; width: 1.7rem; height: 1.7rem; background: var(--forest); color: #F5F0E8; font-family: var(--font-d); font-size: .85rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.steps li strong { color: var(--text-1); }

/* FAQ (native disclosure) */
.faq { margin-top: 1.75rem; max-width: 72ch; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--font-d); font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; color: var(--text-1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { content: '\2013'; }
.faq .faq-a { padding: 0 0 1.2rem; color: var(--text-2); line-height: 1.75; max-width: 64ch; }
.faq .faq-a a { color: var(--accent); border-bottom: 1px solid var(--border-w); }

/* pricing placeholder callout (cost guide) */
.callout { border-left: 3px solid var(--accent); background: var(--bg-surface); padding: 1.25rem 1.5rem; margin: 1.5rem 0; color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.callout strong { color: var(--text-1); }

/* ============ CTA STRIP ============ */
.cta { background: var(--forest); padding: clamp(3rem, 6vw, 5rem) var(--pad); text-align: center; color: #F5F0E8; }
.cta h2 { font-family: var(--font-d); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 1rem; color: #F8F4EC; }
.cta p { color: rgba(248,244,236,.8); max-width: 540px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.7; }
.btn-p { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff; padding: .9rem 2.1rem; font-family: var(--font-d); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, transform .15s; }
.btn-p:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-s { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border-w); color: var(--text-2); padding: .9rem 2.1rem; font-family: var(--font-d); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.btn-s:hover { border-color: var(--accent); color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer { background: var(--text-1); color: var(--bg-deep); padding: clamp(3rem, 5vw, 4rem) var(--pad) 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .f-logo { display: flex; align-items: center; gap: .7rem; }
.footer-brand .f-badge { height: 42px; width: auto; }
.footer-brand .f-logo-txt { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bg-deep); }
.footer-brand .f-logo-txt span { color: var(--accent); }
.footer-brand .f-lic { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(245,240,232,.4); margin-top: .9rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-d); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,240,232,.55); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { font-size: .82rem; color: rgba(245,240,232,.78); transition: color .2s; }
.footer-col a:hover { color: var(--accent-h); }
.footer-bottom { max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(245,240,232,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .68rem; letter-spacing: .04em; color: rgba(245,240,232,.4); }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-wm-1 { font-size: 1.02rem; }
  .nav-wm-2 { font-size: .5rem; letter-spacing: .15em; }
  .nav-badge { height: 46px; }
}
@media (max-width: 340px) {
  .nav-wm-2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
