/* ==========================================================================
   KAFC, LLC — www.kafc.biz
   Palette: "Quarry & Brass"
     Ink    #0F171D   deep slate, near-black
     Slate  #18242E   section base
     Steel  #22323E   raised surfaces
     Brass  #C2A062   primary accent
     Brass+ #D8BA80   accent hover / highlight
     Bone   #F6F2EC   primary light text / light sections
     Stone  #93A0AA   muted text
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:    #0F171D;
  --slate:  #18242E;
  --steel:  #22323E;
  --steel-2:#2B3D4A;
  --brass:  #C2A062;
  --brass-hi:#D8BA80;
  --brass-dim: rgba(194,160,98,.16);
  --bone:   #F6F2EC;
  --bone-dim: rgba(246,242,236,.72);
  --stone:  #93A0AA;
  --line:   rgba(246,242,236,.12);
  --line-strong: rgba(194,160,98,.34);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 1180px;
  --pad-x: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brass-hi); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.012em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--brass); color: var(--ink); padding: .6rem 1.1rem;
  z-index: 200; font-weight: 600; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--ink); }

:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3.1rem); }
.section-title em { font-style: italic; color: var(--brass); }
.section-lede { color: var(--stone); font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); margin-top: 1.1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .715rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass);
  margin: 0 0 .9rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::after {
  content: ""; height: 1px; flex: 1; max-width: 68px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .92rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .825rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-hi); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); background: var(--brass-dim); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,29,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck { background: rgba(15,23,29,.97); border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--brass); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 500;
  letter-spacing: .16em; color: var(--bone);
}
.brand-tag {
  font-size: .59rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); margin-top: .34rem; font-weight: 500;
}

.primary-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); }
.primary-nav a {
  color: var(--bone-dim); font-size: .845rem; font-weight: 400;
  letter-spacing: .03em; position: relative; padding-block: .35rem;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width .26s var(--ease);
}
.primary-nav ul a:hover, .primary-nav ul a.is-active { color: var(--bone); }
.primary-nav ul a:hover::after, .primary-nav ul a.is-active::after { width: 100%; }
.nav-cta { padding: .72rem 1.3rem; font-size: .74rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem .68rem; cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars i {
  display: block; height: 1.6px; background: var(--bone); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars i + i { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5;
  mask-image: radial-gradient(ellipse 85% 70% at 60% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 60% 20%, #000 20%, transparent 78%);
}
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 26vw, 260px); opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 15% 0%, rgba(194,160,98,.1), transparent 62%);
}

.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(5rem, 12vw, 9rem);
  max-width: 980px;
}
.hero-title {
  font-size: clamp(2.45rem, 1.3rem + 5.4vw, 4.65rem);
  letter-spacing: -.022em; margin-bottom: 1.6rem;
}
.hero-title em { font-style: italic; color: var(--brass); }
.hero-lede { max-width: 620px; color: var(--bone-dim); font-size: clamp(1.04rem, .99rem + .32vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }

.hero-stats { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(24,36,46,.6); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.5rem, 3vw, 2.3rem) clamp(.5rem, 2vw, 1.5rem); text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
}
.stat-num {
  display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  color: var(--brass); line-height: 1; font-weight: 500;
}
.stat-label {
  display: block; margin-top: .6rem; font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--stone);
}

/* ---------- Services ---------- */
.services-section { background: var(--slate); }
.svc-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.svc-card {
  background: var(--steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-4px); background: var(--steel-2); }
.svc-icon { color: var(--brass); width: 48px; height: 48px; margin-bottom: 1.4rem; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 1.42rem; margin-bottom: .8rem; }
.svc-card p { color: var(--stone); font-size: .965rem; }
.svc-list { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.svc-list li {
  font-size: .845rem; color: var(--bone-dim); padding: .36rem 0 .36rem 1.1rem; position: relative;
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 1px; background: var(--brass);
}
.svc-card-cta {
  background: linear-gradient(150deg, rgba(194,160,98,.14), rgba(194,160,98,.03));
  border-color: var(--line-strong); justify-content: center;
}
.svc-card-cta h3 { font-size: 1.5rem; }
.svc-card-cta p { color: var(--bone-dim); }
.svc-card-cta .btn { align-self: flex-start; margin-top: .6rem; }

/* ---------- Feature (rentals) ---------- */
.feature { background: var(--ink); }
.feature-inner {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1.1fr .9fr;
}
.feature-copy p { color: var(--stone); }
.feature-copy .btn { margin-top: .8rem; }
.feature-panel {
  background: var(--steel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative;
}
.feature-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(194,160,98,.3), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; pointer-events: none;
}
.panel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.panel-row:last-child { border-bottom: 0; }
.panel-row span { color: var(--stone); font-size: .935rem; }
.panel-row strong {
  color: var(--brass); font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
}

/* ---------- Where we build ---------- */
.where-section { background: var(--slate); }
.where-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); grid-template-columns: 1fr 1fr; }
.where-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.where-state {
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); color: var(--bone);
}
.where-rule { height: 1px; flex: 1; background: linear-gradient(90deg, var(--line-strong), transparent); }
.town-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.town-list li:hover { padding-left: .5rem; }
.town-name { font-family: var(--font-display); font-size: 1.22rem; color: var(--bone); }
.town-meta { font-size: .775rem; letter-spacing: .09em; text-transform: uppercase; color: var(--stone); }
.where-note { margin-top: 2.4rem; color: var(--stone); font-size: .95rem; font-style: italic; }

/* ---------- Process ---------- */
.process-section { background: var(--ink); }
.process-list { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); counter-reset: step; }
.process-step {
  border-top: 2px solid var(--line-strong); padding-top: 1.6rem;
  transition: border-color .3s var(--ease);
}
.process-step:hover { border-top-color: var(--brass); }
.step-num {
  display: block; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--brass); letter-spacing: .14em; margin-bottom: .85rem;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: .65rem; }
.process-step p { color: var(--stone); font-size: .94rem; margin: 0; }

/* ---------- About ---------- */
.about-section { background: var(--slate); }
.about-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.25fr .75fr; align-items: start; }
.about-copy p { color: var(--stone); }
.about-copy .section-title { margin-bottom: 1.4rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.badge {
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: .48rem 1.05rem; font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brass); background: var(--brass-dim);
}
.about-quote {
  background: var(--steel); border-left: 2px solid var(--brass);
  padding: clamp(1.7rem, 3vw, 2.4rem); border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-mark { width: 34px; height: 34px; color: var(--brass); opacity: .45; margin-bottom: 1rem; }
.about-quote blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1rem, 1rem + .55vw, 1.35rem); line-height: 1.5; color: var(--bone);
}
.quote-attrib { margin: 1.2rem 0 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }

/* ---------- Contact ---------- */
.contact-section { background: var(--ink); position: relative; }
.contact-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 85% 10%, rgba(194,160,98,.09), transparent 65%);
}
.contact-inner { position: relative; display: grid; gap: clamp(2.2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: start; }

.contact-details { margin-top: 2.4rem; }
.contact-details li { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.cd-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brass); padding-top: .25rem; }
.cd-value { color: var(--bone-dim); font-size: .975rem; line-height: 1.6; }
.map-link { display: inline-block; margin-top: 1.6rem; font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }

.contact-form {
  background: var(--steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3.2vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .715rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--stone); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .82rem .95rem; color: var(--bone);
  font-size: .975rem; font-weight: 300; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(147,160,170,.6); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); background: #0C1318;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C2A062' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.6rem;
}
.field select option { background: var(--ink); color: var(--bone); }
.form-note { margin: 1rem 0 0; font-size: .8rem; color: var(--stone); text-align: center; }
.form-note.is-ok { color: var(--brass); }
.field.has-error input, .field.has-error textarea { border-color: #C96A5A; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); border-top: 1px solid var(--line); padding-top: clamp(2.8rem, 5vw, 4rem); }
.footer-inner {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1.2fr 1fr 1fr; align-items: start;
  padding-bottom: clamp(2.2rem, 4vw, 3rem);
}
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; color: var(--brass); }
.footer-brand .brand-mark { width: 40px; height: 40px; flex: none; }
.footer-name { font-family: var(--font-display); font-size: 1.28rem; color: var(--bone); margin: 0 0 .35rem; letter-spacing: .1em; }
.footer-sub { margin: 0; font-size: .85rem; color: var(--stone); }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { color: var(--bone-dim); font-size: .88rem; }
.footer-nav a:hover { color: var(--brass); }
.footer-contact { font-style: normal; color: var(--stone); font-size: .88rem; line-height: 1.85; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  border-top: 1px solid var(--line); padding-block: 1.4rem;
}
.footer-bottom p { margin: 0; font-size: .78rem; color: var(--stone); letter-spacing: .05em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .feature-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .about-quote { border-left-width: 2px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(15,23,29,.985);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad-x) 1.75rem;
    max-height: calc(100dvh - 78px); overflow-y: auto;
    clip-path: inset(0 0 100% 0); opacity: 0;
    transition: clip-path .38s var(--ease), opacity .25s var(--ease);
    pointer-events: none;
  }
  .primary-nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav ul li { border-bottom: 1px solid var(--line); }
  .primary-nav ul a { display: block; padding: 1.05rem 0; font-size: 1.02rem; color: var(--bone); }
  .primary-nav ul a::after { display: none; }
  .nav-cta { margin-top: 1.5rem; width: 100%; padding: 1rem; font-size: .8rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .where-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: .7rem 1.4rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before, .stat:nth-child(1)::before { display: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 1.22rem; }
  .brand-tag { font-size: .54rem; }
  .header-inner { min-height: 68px; }
  .primary-nav { inset: 68px 0 auto; max-height: calc(100dvh - 68px); }
  .contact-details li { grid-template-columns: 1fr; gap: .35rem; }
  .cd-label { padding-top: 0; }
  .town-list li { flex-direction: column; gap: .2rem; }
  .svc-card { padding: 1.5rem 1.35rem; }
  .footer-bottom { justify-content: flex-start; }
}

/* ---------- Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero-bg, .nav-toggle, .contact-form, .btn { display: none !important; }
  .section { padding-block: 1.5rem; }
  * { background: transparent !important; color: #000 !important; }
}
