/* Both families are variable fonts: one file each covers every weight in use. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/archivo.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter.woff2') format('woff2');}
picture { display: contents; }

/* ============================================================
   Circle M Construction - core stylesheet
   Warm ground (paper is cream, not white), near-black warm ink, and
   the navy off their own sign. Square corners everywhere; the only
   curve on the site is the saw blade in the mark.
   ============================================================ */

:root {
  --ink:        #1A1714;
  --ink-soft:   #4A433C;
  --ink-muted:  #736B62;
  --line:       #E4DCD0;
  --line-soft:  #F0EAE1;
  --paper:      #FBF8F4;
  --paper-alt:  #F3EEE6;
  --steel:      #6C7278;
  --accent:     #0E4C8F;
  --accent-deep:#0A3868;
  --accent-lift:#8CB6E6;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --shell: 1200px;
  --band: clamp(4rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: 0; text-transform: none; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- utility ------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: currentColor;
  flex: none;
}
.band--dark .eyebrow, .hero .eyebrow, .cta .eyebrow { color: var(--accent-lift); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.band--dark .lede { color: rgba(255,255,255,.8); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1.1rem; }

/* --- buttons ------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--body);
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  padding: .95rem 1.6rem;
  background: var(--accent); color: #fff;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--on-dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- masthead ----------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,244,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: .01em;
}
.brand__tag {
  font-size: .625rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-muted); margin-top: .28rem;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none; font-size: .875rem; font-weight: 500;
  color: var(--ink-soft); padding: .35rem 0; position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.nav .btn { color: #fff; padding: .62rem 1.25rem; font-size: .85rem; letter-spacing: .02em; }
.nav .btn:hover { color: #fff; }

.nav a.nav__phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--ink); letter-spacing: .01em;
  padding: .35rem 0 .35rem 1.5rem;
  border-left: 1px solid var(--line);
}
.nav__phone svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.nav__phone::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 46px; height: 46px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform .25s ease;
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav__phone { padding-left: 0; margin-left: 0; border-left: 0; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* --- hero ---------------------------------------------------- */

.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,14,.74) 0%, rgba(20,17,14,.64) 45%, rgba(20,17,14,.86) 100%);
}
.hero__inner { padding-block: clamp(5rem, 13vw, 10rem); }
.hero__inner > * { max-width: 54ch; }
.hero h1 { margin-bottom: 1.4rem; }
.hero p { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero--inner .hero__inner { padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero--inner .hero__inner > * { max-width: 62ch; }

/* strip of promises under the hero */
.strip { background: var(--ink); color: rgba(255,255,255,.9); }
.strip ul {
  list-style: none; margin: 0; padding: 1.15rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 2.2rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
}
.strip li { display: flex; align-items: center; gap: .55rem; }
.strip li::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex: none; }

/* --- bands --------------------------------------------------- */

.band { padding-block: var(--band); }
.band--alt { background: var(--paper-alt); }
.band--dark { background: var(--ink); color: rgba(255,255,255,.86); }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* --- cards --------------------------------------------------- */

.cards { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .6rem; }
.card__body p { font-size: .94rem; color: var(--ink-soft); }
.card__more {
  margin-top: auto; padding-top: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: .45rem;
}

/* --- promises / pillars -------------------------------------- */

.pillars { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 700px) and (max-width: 1100px) {
  .cards, .pillars { grid-template-columns: repeat(2, 1fr); }
}
.pillar { border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.pillar h3 { margin-bottom: .55rem; }
.pillar p { font-size: .94rem; color: var(--ink-soft); }
.band--dark .pillar p { color: rgba(255,255,255,.75); }

/* --- split (text + image) ------------------------------------ */

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--flip .split__media { order: -1; } }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- gallery ------------------------------------------------- */

.gallery { columns: 3 260px; column-gap: clamp(.6rem, 1.4vw, 1rem); }
.gallery figure { margin: 0 0 clamp(.6rem, 1.4vw, 1rem); break-inside: avoid; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; line-height: 0;
}
.gallery img { width: 100%; height: auto; transition: opacity .2s ease; }
.gallery button:hover img { opacity: .86; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(16,13,11,.95); padding: clamp(1rem, 4vw, 3rem);
  align-items: center; justify-content: center;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 48px; height: 48px; cursor: pointer; font-size: 1.5rem; line-height: 1;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__controls { display: contents; }
.lightbox__count {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  margin: 0; color: rgba(255,255,255,.75); font-size: .82rem; letter-spacing: .06em;
}
@media (max-width: 600px) {
  .lightbox { flex-direction: column; gap: 1.1rem; }
  .lightbox img { max-height: 68vh; }
  .lightbox__controls {
    display: flex; align-items: center; gap: 1.25rem;
    position: static; transform: none;
  }
  .lightbox__nav {
    position: static; transform: none;
    background: rgba(255,255,255,.18); width: 56px; height: 48px;
  }
  .lightbox__count { position: static; transform: none; min-width: 5.5rem; text-align: center; }
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }

/* --- FAQ ----------------------------------------------------- */

.faq { max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem 0; list-style: none;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1rem; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; flex: none; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 68ch; }

/* --- area list ----------------------------------------------- */

.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.areas li { border-bottom: 1px solid var(--line); font-size: .94rem; }
.areas a { display: block; padding: .6rem 0; }
.areas a { text-decoration: none; }
.areas a:hover { color: var(--accent); }

/* --- CTA ----------------------------------------------------- */

.cta { position: relative; color: #fff; isolation: isolate; }
.cta__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,14,.72), rgba(20,17,14,.85));
}
.cta__inner { padding-block: clamp(4rem, 9vw, 7rem); }
.cta__inner > * { max-width: 56ch; }
.cta h2 { margin-bottom: 1.1rem; }
.cta p { color: rgba(255,255,255,.85); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* --- forms --------------------------------------------------- */

.form { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form .field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  form[data-contact] button[type="submit"] { width: 100%; justify-content: center; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
}

.field label {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  padding: .8rem .9rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { height: 54px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field--hp { position: absolute; left: -9999px; }

.form__note { font-size: .85rem; color: var(--ink-muted); }
.form__status { font-size: .95rem; font-weight: 500; }
.form__status[data-state="ok"] { color: #2E6B3E; }
.form__status[data-state="err"] { color: #A32020; }

/* --- contact rail -------------------------------------------- */

.rail { display: grid; gap: 1.6rem; }
.rail__item { border-top: 2px solid var(--accent); padding-top: 1rem; }
.rail__item h3 { font-size: .8rem; letter-spacing: .12em; margin-bottom: .5rem; }
.rail__item a { font-family: var(--display); font-weight: 700; font-size: 1.28rem; text-decoration: none; }
.rail__item a:hover { color: var(--accent); }
.rail__item p { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; }

/* --- breadcrumbs --------------------------------------------- */

.crumbs { font-size: .8rem; color: var(--ink-muted); padding-top: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: .45rem; }

/* --- quotes -------------------------------------------------- */

.quotes { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote { background: var(--paper); border: 1px solid var(--line); padding: 1.6rem; margin: 0; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.6; }
.quote figcaption { font-size: .82rem; color: var(--ink-muted); font-weight: 500; }
.stars { color: var(--accent); letter-spacing: .12em; font-size: .9rem; margin-bottom: .8rem; }

/* --- prose (about, legal) ------------------------------------ */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.6rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }

/* --- footer -------------------------------------------------- */

.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .9rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h3 { color: #fff; font-size: .75rem; letter-spacing: .14em; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .15rem; }
.footer li a { display: inline-block; padding: .4rem 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: rgba(255,255,255,.5); }
.footer__phone { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: #fff; text-decoration: none; display: block; margin-bottom: .3rem; }
.footer__base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.5);
}

/* --- reveal animation ---------------------------------------- */

/* Scoped to .js: without scripting the content must simply be visible,
   never left at opacity 0 waiting for an observer that will not run. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- sticky mobile call bar ---------------------------------- */

.callbar { display: none; }
@media (max-width: 1040px) {
  .callbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .callbar a {
    padding: .95rem 1rem; text-align: center; text-decoration: none;
    font-size: .88rem; font-weight: 600; letter-spacing: .02em;
  }
  .callbar { padding-bottom: env(safe-area-inset-bottom); }
  .callbar__call { background: var(--accent); color: #fff; }
  .callbar__quote { background: var(--ink); color: #fff; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
