/* Crafted Spaces LLC — brand: black / off-white, craftsman clean */
:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #5a5a5a;
  --line: #d4d4d4;
  --paper: #f7f6f3;
  --paper-deep: #eceae4;
  --white: #ffffff;
  --focus: #1a1a1a;
  --danger: #8b1a1a;
  --radius: 4px;
  --max: 1120px;
  --header-h: 4.25rem;
  --font: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 28px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.15em; }
a:hover { color: var(--ink-soft); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: .5rem; top: .5rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,243,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h); padding: .55rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit;
  min-width: 0;
}
.brand img { width: 52px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: 1.15rem;
}
.brand-tag {
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  font-style: italic; color: var(--muted); margin-top: .15rem;
}
.top-contact {
  display: flex; align-items: center; gap: .85rem 1.15rem; flex-wrap: wrap;
  font-size: .92rem;
}
.top-contact a {
  display: inline-flex; align-items: center; gap: .35rem;
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
}
.top-contact a:hover { text-decoration: underline; }
.socials { display: inline-flex; gap: .45rem; align-items: center; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border: 1px solid var(--ink);
  border-radius: 50%; color: var(--ink); text-decoration: none;
  position: relative; background: var(--white);
}
.social svg { width: 1rem; height: 1rem; fill: currentColor; }
.social.is-placeholder { opacity: .55; cursor: not-allowed; }
.social:not(.is-placeholder):hover { background: var(--ink); color: #fff; }
.social[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: .7rem; padding: .25rem .45rem;
  border-radius: 3px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.social[data-tooltip]:hover::after, .social[data-tooltip]:focus-visible::after { opacity: 1; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0 3.5rem;
}
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}
.eyebrow {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .14em;
  font-size: .85rem; color: var(--muted); margin: 0 0 .75rem;
}
.hero h1 {
  font-family: var(--font); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.02; margin: 0 0 .75rem;
}
.slogan {
  font-family: var(--font); font-style: italic; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}
.hero-promise {
  display: inline-block; font-family: var(--font); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: .55rem 0; margin: 0 0 1.5rem;
}
.hero-lede { color: var(--ink-soft); max-width: 36rem; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; border: 2px solid var(--ink);
  padding: .85rem 1.35rem; border-radius: var(--radius); cursor: pointer;
  font-size: 1rem; line-height: 1; transition: background .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero-panel {
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.hero-panel img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-panel figcaption {
  font-size: .78rem; color: var(--muted); margin-top: .65rem; text-align: center;
}

/* Sections */
section { padding: 3.25rem 0; }
.section-head { margin-bottom: 1.5rem; max-width: 40rem; }
.section-head h2 {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(1.7rem, 3.5vw, 2.25rem); margin: 0 0 .5rem; line-height: 1.1;
}
.section-head p { margin: 0; color: var(--muted); }
.divider {
  width: 3.5rem; height: 2px; background: var(--ink); margin: .85rem 0 0; border: 0;
}

/* Services carousel */
.services { background: var(--paper); border-block: 1px solid var(--line); }
.carousel {
  position: relative; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
}
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track {
  display: flex; transition: transform .45s ease;
  will-change: transform;
}
.slide {
  flex: 0 0 100%; min-width: 100%;
  display: grid; gap: 0;
}
@media (min-width: 800px) {
  .slide { grid-template-columns: 1.15fr .85fr; min-height: 380px; }
}
.slide-media { position: relative; background: var(--paper-deep); min-height: 220px; }
.slide-media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11;
}
@media (min-width: 800px) {
  .slide-media img { aspect-ratio: auto; position: absolute; inset: 0; }
  .slide-media { min-height: 100%; }
}
.slide-body { padding: 1.5rem 1.35rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.slide-index {
  font-family: var(--font); letter-spacing: .12em; text-transform: uppercase;
  font-size: .8rem; color: var(--muted); margin: 0 0 .4rem;
}
.slide h3 {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 0 0 .65rem; line-height: 1.1;
}
.slide p { margin: 0; color: var(--ink-soft); }
.carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1rem; border-top: 1px solid var(--line);
  background: var(--paper);
}
.carousel-arrows { display: flex; gap: .5rem; }
.carousel-btn {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--ink); background: var(--white);
  border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.carousel-btn:hover, .carousel-btn:focus-visible { background: var(--ink); color: #fff; }
.carousel-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.carousel-btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.dots { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.dot {
  width: .65rem; height: .65rem; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; padding: 0; cursor: pointer;
}
.dot[aria-current="true"] { background: var(--ink); }
.carousel-meta { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.pause-btn {
  border: 1px solid var(--line); background: var(--white); padding: .35rem .65rem;
  font-family: var(--font-body); font-size: .8rem; cursor: pointer; border-radius: var(--radius);
}
.pause-btn:hover, .pause-btn:focus-visible { border-color: var(--ink); }

/* About */
.about-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  border: 1px solid var(--line); background: var(--white); padding: 1.25rem 1.15rem;
}
.card h3 {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.2rem; margin: 0 0 .5rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Form */
.estimate { background: var(--white); }
.form-wrap {
  display: grid; gap: 1.75rem;
}
@media (min-width: 860px) {
  .form-wrap { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
.form-intro h2 { margin-bottom: .35rem; }
.form-intro p { color: var(--muted); }
.estimate-form {
  display: grid; gap: 1rem; border: 1px solid var(--line); padding: 1.25rem;
  background: var(--paper); box-shadow: var(--shadow);
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .75rem; border: 1px solid #bdbdbd;
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.privacy {
  font-size: .85rem; color: var(--muted); margin: 0;
}
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Footer */
.site-footer {
  background: var(--ink); color: #f0f0f0; padding: 2.5rem 0 1.75rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.35rem; font-weight: 700; margin: 0 0 .35rem;
}
.footer-slogan {
  font-style: italic; text-transform: uppercase; letter-spacing: .06em;
  font-size: .85rem; opacity: .8; margin: 0 0 1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-heading {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .1em;
  font-size: .85rem; margin: 0 0 .75rem; opacity: .7;
}
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: space-between;
  font-size: .82rem; opacity: .75;
}
.stock-note { font-style: italic; }

/* Thank you */
.thanks {
  min-height: 70vh; display: grid; place-items: center; text-align: center;
  padding: 3rem 1rem; background: var(--paper);
}
.thanks-card {
  background: var(--white); border: 1px solid var(--line); padding: 2rem 1.5rem;
  max-width: 32rem; box-shadow: var(--shadow);
}
.thanks-card h1 {
  font-family: var(--font); text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 .75rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* Mobile polish */
@media (max-width: 720px) {
  :root { --header-h: auto; }
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    padding: .7rem 0 .8rem;
  }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tag { font-size: .68rem; max-width: 16rem; }
  .top-contact {
    width: 100%;
    gap: .55rem .9rem;
    font-size: .86rem;
  }
  .top-contact a { word-break: break-word; }
  .hero { padding: 2.25rem 0 2.5rem; }
  .hero-actions .btn { width: 100%; }
  .carousel-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .dots { order: 3; width: 100%; margin-top: .15rem; }
  .slide-body { padding: 1.2rem 1rem 1.4rem; }
  .estimate-form { padding: 1rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

@media (max-width: 420px) {
  .brand-tag { display: none; }
}
