/* ==========================================================================
   AK Shoe Repair — Design tokens
   Palette sampled from the shop's own logo mark + the Chanin Building's
   real brass/marble arcade. See BRIEF.md.
   ========================================================================== */

:root {
  --ink: #0f0d0b;
  --umber: #3a2f22;
  --gold: #b8874b;
  --gold-deep: #8c6a3a;
  --parchment: #f7f2e9;
  --stone: #e4d9c3;
  --white: #fffdf8;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow-soft: 0 12px 30px -14px rgba(15, 13, 11, 0.35);
  --shadow-card: 0 8px 24px -12px rgba(58, 47, 34, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--umber);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.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: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ==========================================================================
   Type helpers
   ========================================================================== */

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.75rem;
}

.eyebrow-light { color: var(--gold); }

.section-intro {
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--umber);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--parchment);
}
.btn-ghost:hover {
  background: rgba(247, 242, 233, 0.12);
  transform: translateY(-1px);
}

.about .btn-ghost,
.find .btn-ghost,
.shop .btn-ghost {
  color: var(--gold-deep);
}
.about .btn-ghost:hover,
.find .btn-ghost:hover,
.shop .btn-ghost:hover {
  background: rgba(140, 106, 58, 0.08);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--umber);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--gold-deep); }

.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-deep); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--stone);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .site-nav.is-open { max-height: 420px; }
  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--stone);
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none !important;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--parchment);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroIn 1.6s var(--ease) forwards;
}

@keyframes heroIn {
  from { transform: scale(1.12); opacity: 0; }
  to { transform: scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1); opacity: 1; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,13,11,0.55) 0%, rgba(15,13,11,0.35) 35%, rgba(15,13,11,0.88) 100%),
    linear-gradient(90deg, rgba(15,13,11,0.55) 0%, rgba(15,13,11,0.1) 55%);
}

.hero-content {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 4.5rem;
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.4em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--stone);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

.section {
  padding: 5.5rem 0;
}

.section h2 { margin-bottom: 0.6em; }

.about { background: var(--white); }
.services { background: var(--parchment); }
.work { background: var(--white); }
.find {
  background: var(--ink);
  color: var(--stone);
}
.find .eyebrow { color: var(--gold); }
.find h2, .find h3 { color: var(--parchment); }
.find .section-intro { color: var(--stone); }
.shop { background: var(--parchment); }
.testimonials { background: var(--white); }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.pull-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.6em;
}
.pull-quote footer {
  font-size: 0.9rem;
  color: var(--gold-deep);
  font-weight: 600;
}
.pull-quote cite { font-style: normal; font-weight: 400; opacity: 0.8; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo img { max-width: 420px; margin: 0 auto; }
}

/* ==========================================================================
   Card grid (Services / Shop)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.card-icon {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold-deep);
}
.card-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--umber); font-size: 0.98rem; margin-bottom: 0; }

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Our Work gallery
   ========================================================================== */

.gallery-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--stone);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* ==========================================================================
   How To Find Us — signature brass-path
   ========================================================================== */

.path {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}

/* the brass rule that runs behind the steps */
.path::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(184, 135, 75, 0.25);
}

/* fill overlay driven by JS via --path-progress (0 to 1) */
.path::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  width: 2px;
  height: calc(var(--path-progress, 0) * 100%);
  background: var(--gold);
  transition: height 0.15s linear;
}

.path-step {
  position: relative;
  padding: 0 0 3rem 4.5rem;
}
.path-step:last-child { padding-bottom: 0; }

.path-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.path-body img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  max-width: 420px;
  box-shadow: var(--shadow-soft);
}
.path-body h3 { color: var(--parchment); margin-bottom: 0.3em; }
.path-body p { color: var(--stone); margin-bottom: 0; max-width: 46ch; }

.find-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.find-cta .btn-primary { color: var(--ink); }

@media (max-width: 640px) {
  .path::before, .path::after { left: 19px; }
  .path-step { padding-left: 3.75rem; }
  .path-marker { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ==========================================================================
   Shop cards
   ========================================================================== */

.shop-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.shop-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
  padding: 1.5rem;
}
.shop-card h3, .shop-card p { padding-left: 1.5rem; padding-right: 1.5rem; }
.shop-card h3 { margin-bottom: 0.35em; font-size: 1.15rem; }
.shop-card p { color: var(--umber); font-size: 0.95rem; padding-bottom: 1.5rem; margin-bottom: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid { grid-template-columns: repeat(3, 1fr); }

.testimonial {
  margin: 0;
  background: var(--parchment);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.75em;
}
.testimonial footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deep);
}

@media (max-width: 980px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(228, 217, 195, 0.15);
}

.footer-brand img { margin-bottom: 0.75rem; }
.footer-brand p { margin-bottom: 0.3em; color: var(--parchment); font-family: var(--font-display); font-size: 1.2rem; }
.footer-tag { font-family: var(--font-body); font-size: 0.88rem; color: var(--stone); opacity: 0.85; }

.footer-contact p { margin-bottom: 0.3em; font-size: 0.95rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.footer-actions .btn { width: 100%; max-width: 220px; }
.footer-actions .btn-ghost { color: var(--parchment); }

.footer-bottom {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--stone);
  opacity: 0.7;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-actions { align-items: stretch; }
  .footer-actions .btn { max-width: none; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* No-JS fallback: everything visible */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .path::after { height: 100%; }
