/* Deck Repair Eugene site stylesheet */

:root {
  --color-forest: #1f3d2e;
  --color-forest-light: #2f5940;
  --color-forest-dark: #142b20;
  --color-amber: #d98e2b;
  --color-amber-dark: #b5721a;
  --color-cream: #faf7f2;
  --color-cream-dark: #f1ead0;
  --color-text: #2b2b28;
  --color-text-light: #5a564f;
  --color-white: #ffffff;
  --color-border: #e4ddd0;
  --shadow-sm: 0 1px 3px rgba(20, 43, 32, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 43, 32, 0.12);
  --radius: 10px;
  --max-width: 1180px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-forest); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  line-height: 1.25;
  color: var(--color-forest-dark);
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--color-text); }
ul, ol { padding-left: 1.3em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 56px 0; }
.section-alt { background: var(--color-cream); }
.section-forest { background: var(--color-forest); color: var(--color-white); }
.section-forest h2, .section-forest h3, .section-forest p { color: var(--color-white); }

.eyebrow {
  display: inline-block;
  color: var(--color-amber-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6em;
}
.section-head { max-width: 720px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-amber); color: var(--color-forest-dark); }
.btn-primary:hover { background: var(--color-amber-dark); }
.btn-outline { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-forest { background: var(--color-forest); color: var(--color-white); }
.btn-forest:hover { background: var(--color-forest-light); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Top bar */
.topbar {
  background: var(--color-forest-dark);
  color: #e9e4d8;
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #e9e4d8; }
.topbar .topbar-phone { font-weight: 700; }

/* Header / nav */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--color-forest-dark); font-size: 1.05rem; }
.brand img { width: 44px; height: 44px; }
.brand span { line-height: 1.15; }
.brand small { display: block; font-weight: 500; color: var(--color-text-light); font-size: 0.72rem; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
}
.main-nav a:hover { background: var(--color-cream); text-decoration: none; color: var(--color-forest); }
.main-nav .has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: 8px;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { padding: 10px 12px; border-radius: 6px; font-size: 0.92rem; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 18px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-forest-dark);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,30,22,0.92) 0%, rgba(15,30,22,0.75) 45%, rgba(15,30,22,0.45) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 70px 0; max-width: 640px; }
.hero-content .eyebrow { color: #f4cd8a; }
.hero-content h1 { color: var(--color-white); }
.hero-content p.lead { font-size: 1.15rem; color: #efe9dc; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--color-amber); }
.hero-stats div span { font-size: 0.85rem; color: #d8d2c3; }

.page-hero {
  background: var(--color-forest-dark);
  color: var(--color-white);
  padding: 44px 0;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 8px; }
.breadcrumbs { font-size: 0.85rem; color: #cfc9ba; margin-bottom: 14px; }
.breadcrumbs a { color: #e9e4d8; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }
.page-hero .lead { color: #e3ddd0; max-width: 680px; margin-bottom: 0; }

/* Trust bar */
.trust-bar { background: var(--color-cream); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 26px 0;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item .icon { width: 42px; height: 42px; color: var(--color-forest); }
.trust-item strong { font-size: 0.95rem; color: var(--color-forest-dark); }
.trust-item span { font-size: 0.8rem; color: var(--color-text-light); }

/* Cards / grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5em; }
.card .icon { width: 38px; height: 38px; color: var(--color-amber-dark); margin-bottom: 12px; }

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card .body p { flex: 1; color: var(--color-text-light); font-size: 0.95rem; }
.service-card .body a.more { font-weight: 700; color: var(--color-forest); }

/* Signs / symptom list */
.signs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sign-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.sign-card img { aspect-ratio: 4/3; object-fit: cover; }
.sign-card .body { padding: 16px 18px; }
.sign-card h4 { margin: 0 0 6px; font-size: 1rem; }
.sign-card p { font-size: 0.9rem; margin: 0; color: var(--color-text-light); }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-left: 54px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* Before / after */
.before-after { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.before-after img { width: 100%; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 4px;
  font-size: 1.02rem;
  color: var(--color-forest-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-amber-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 18px; color: var(--color-text-light); }

/* Service areas */
.area-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.area-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-forest-dark);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-forest-dark), var(--color-forest));
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius);
  padding: 44px 28px;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: #e3ddd0; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--color-amber);
  outline-offset: 1px;
}

/* Footer */
.site-footer { background: var(--color-forest-dark); color: #cfc9ba; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 14px; }
.site-footer p { color: #cfc9ba; }
.site-footer a { color: #cfc9ba; }
.site-footer a:hover { color: var(--color-amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: var(--color-white); font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-forest-dark);
  z-index: 200;
  padding: 10px 16px;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-amber);
  color: var(--color-forest-dark);
  font-weight: 800;
  padding: 13px;
  border-radius: 8px;
  text-decoration: none;
}

/* Two-column content */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; color: var(--color-text-light); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-forest);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 7px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
}

@media (max-width: 800px) {
  .header-cta .btn-forest-label { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .dropdown { display: block; position: static; box-shadow: none; border: none; padding: 0 0 0 12px; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 66px; }
  section { padding: 40px 0; }
  .topbar .topbar-tagline { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 50px 0; }
  .hero-stats { gap: 18px; }
}
