/* Easton Chimney Inc — stylesheet */
:root {
  --slate: #232c33;
  --slate-2: #34424d;
  --steel: #5b6a75;
  --mist: #e6eaed;
  --paper: #f6f7f7;
  --white: #ffffff;
  --amber: #f4b223;
  --amber-dark: #c98d05;
  --ink: #1d252b;
  --radius: 4px;
  --maxw: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; max-width: 68ch; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--slate); color: var(--white); }
.lead { font-size: 1.2rem; color: var(--steel); }
.section--dark .lead { color: #c3ccd3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--call { background: var(--amber); color: var(--ink); }
.btn--call:hover { background: #ffc94d; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--slate); color: var(--white); }
.btn--dark:hover { background: var(--slate-2); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #d5dbe0; position: sticky; top: 0; z-index: 50; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--slate); }
.brand svg { width: 2rem; height: 2rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a.link { text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav a.link:hover, .nav a.link[aria-current="page"] { border-bottom-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 2px solid var(--slate); border-radius: var(--radius); padding: .5rem .65rem; cursor: pointer; color: var(--slate); }
.nav-toggle svg { width: 1.4rem; height: 1.4rem; display: block; }

/* Hero */
.hero { background: var(--slate); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero h1 { margin-bottom: .2em; }
.hero .tagline { font-size: 1.3rem; color: #d3dae0; max-width: 34ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.status { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem; font-size: .95rem; color: #d3dae0; }
.status i { width: .7rem; height: .7rem; border-radius: 50%; background: #8a949b; display: inline-block; }
.status.is-open i { background: #5fd38d; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; background: var(--amber); border-radius: var(--radius); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); }

/* Page hero (inner pages) */
.page-hero { background: var(--slate); color: var(--white); padding: clamp(3rem, 7vw, 4.75rem) 0; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); margin-bottom: .25em; }
.page-hero p { color: #d3dae0; font-size: 1.2rem; margin: 0; }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Service list (ruled rows) */
.rows { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--slate); }
.rows li { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid #c4ccd2; align-items: baseline; }
.rows h3 { margin: 0; font-size: 1.55rem; }
.rows p { margin: 0; color: #3d4852; }

/* Why / checklist */
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: .6rem; border-left: 3px solid var(--amber-dark); border-bottom: 3px solid var(--amber-dark); transform: rotate(-45deg) translateY(-30%); }
.checks strong { display: block; font-family: var(--head); font-size: 1.35rem; line-height: 1.2; }

/* Process steps (a real sequence) */
.steps { list-style: none; counter-reset: s; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 4px solid var(--amber); padding-top: 1rem; }
.steps li::before { content: counter(s); font-family: var(--head); font-size: 2.6rem; font-weight: 700; color: var(--amber); display: block; line-height: 1; margin-bottom: .35rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: #c3ccd3; font-size: .98rem; }

/* CTA band */
.cta { background: var(--amber); color: var(--ink); padding: clamp(2.75rem, 6vw, 4rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin: 0 0 .15em; }
.cta p { margin: 0; }

/* Services page feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.feature + .feature { border-top: 1px solid #c4ccd2; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.feature:nth-of-type(even) .feature-media { order: 2; }
.feature h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.feature dl { margin: 1.5rem 0 0; }
.feature dt { font-family: var(--head); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.feature dd { margin: .2rem 0 1.1rem; color: #3d4852; }
.pos-stack { object-position: 22% 40%; }
.pos-left { object-position: 28% 30%; }

.also { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin-top: 2rem; }
.also h3 { margin-bottom: .25rem; }
.also p { margin: 0; color: #3d4852; }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; margin-top: 2rem; }
.values h3 { border-left: 4px solid var(--amber); padding-left: .75rem; }
.values p { margin: 0; }
.areas { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.areas li { background: var(--white); border: 1px solid #c4ccd2; padding: .4rem .9rem; border-radius: 99px; font-weight: 600; font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.info-list p, .info-list a { margin: 0; }
.info-list a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hours { width: 100%; max-width: 22rem; border-collapse: collapse; }
.hours td { padding: .25rem 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--amber-dark); }
form.contact { background: var(--white); border: 1px solid #c4ccd2; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.25rem); }
form.contact h2 { font-size: 2.1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid #9aa6af; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--slate); }
.field .err { display: none; color: #b3261e; font-size: .92rem; margin-top: .3rem; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .92rem; color: var(--steel); margin: .9rem 0 0; }
.form-status { margin-top: 1rem; font-weight: 600; }
.map { margin-top: 3rem; border: 1px solid #c4ccd2; border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { background: #171e23; color: #c3ccd3; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--white); font-size: 1.35rem; margin-bottom: .6rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer .brand { color: var(--white); margin-bottom: .7rem; }
.copy { border-top: 1px solid #2e3a43; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .feature, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { margin-right: 1.4rem; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid #d5dbe0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a.link { display: block; padding: .85rem 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr; gap: .25rem; }
  .also, .values, .row2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
