/* ===================================================
   Black Apron Bar Co. — Base
=================================================== */

:root {
  --bg: #0e0c0a;
  --bg-alt: #151210;
  --bg-raised: #1b1714;
  --line: rgba(244, 239, 230, 0.10);
  --line-strong: rgba(244, 239, 230, 0.20);

  --text: #f3ede1;
  --text-dim: #b3a99a;
  --text-faint: #7d7466;

  --brass: #c9a24a;
  --brass-bright: #e0bd6a;
  --brass-dim: #8a6f3a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;

  --max: 1140px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

.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;
}

/* ===================================================
   Layout helpers
=================================================== */

.section {
  padding: clamp(72px, 12vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}
.section-eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 28px;
  max-width: 20ch;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }

/* fade-up reveal */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--brass);
  color: #17130d;
  border-color: var(--brass);
}
.btn-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
  background: rgba(14, 12, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-main {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-link--cta {
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  padding: 9px 20px;
  border-radius: 2px;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  background: var(--brass);
  color: #17130d;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px var(--pad) 80px;
  background: #0e0c0a;
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.4;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 74, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.55) 0%, rgba(14, 12, 10, 0.88) 65%, #0e0c0a 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  overflow: hidden;
}
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--brass), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

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

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-media-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: linear-gradient(155deg, var(--bg-raised), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-media-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
}
.about-media-mark {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--brass-dim);
  letter-spacing: 0.05em;
}

.about-copy p { max-width: 56ch; }
.about-signoff {
  color: var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 24px !important;
}

/* ===================================================
   Services
=================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  border-color: var(--brass-dim);
  transform: translateY(-4px);
}

.service-card > *:not(.service-media) {
  padding-left: 32px;
  padding-right: 32px;
}

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-index {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--brass);
  margin-top: 28px;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-card-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.service-link {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.service-link:hover {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.service-link--quiet {
  color: var(--text-faint);
  border-color: transparent;
}
.service-link--quiet:hover {
  color: var(--text-dim);
  border-color: var(--line-strong);
}

/* ===================================================
   The Chit
=================================================== */

.chit {
  background: var(--bg-alt);
  text-align: center;
}

.chit-inner { max-width: 620px; margin: 0 auto; }

.chit-sub {
  max-width: 48ch;
  margin: 0 auto 40px;
}

.chit-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.chit-input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 15px 18px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.chit-input:focus {
  outline: none;
  border-color: var(--brass);
}
.chit-input::placeholder { color: var(--text-faint); }

.chit-submit { flex: 0 0 auto; }

.chit-fine {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ===================================================
   Contact
=================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact-copy p { max-width: 46ch; }

.contact-details { margin-top: 28px; }
.contact-detail {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brass);
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 2px;
}
.contact-detail:hover { color: var(--brass-bright); border-color: var(--brass-bright); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* ===================================================
   Service detail pages
=================================================== */

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--pad) 56px;
  background: #0e0c0a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.55;
  z-index: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.35) 0%, rgba(14, 12, 10, 0.75) 70%, #0e0c0a 100%);
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.back-link:hover {
  color: var(--brass);
  border-color: var(--brass-dim);
}

.page-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  max-width: 16ch;
}

.page-content {
  padding: clamp(64px, 10vw, 110px) var(--pad);
}

.page-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-content-inner p {
  font-size: 1.02rem;
  margin-bottom: 1.4em;
}

.page-content-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2em 0 0.7em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0 8px;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 26px 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem !important;
  color: var(--text-dim);
  margin-bottom: 0 !important;
}

.page-cta {
  margin-top: 56px;
  padding: 40px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.page-cta h2 {
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
}

.page-cta p {
  max-width: 46ch;
  margin: 0 auto 24px !important;
}

/* ===================================================
   The Chit (standalone page)
=================================================== */

.ticket-hero {
  padding: 150px var(--pad) 64px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 74, 0.10), transparent 60%),
    var(--bg);
}

.ticket-panel {
  max-width: 600px;
  margin: 0 auto;
}

.ticket-rule {
  border: none;
  border-top: 1px dashed var(--line-strong);
  margin: 26px 0;
}

.ticket-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0;
}

.ticket-hook {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 30ch;
  margin: 30px auto 0;
}

.ticket-quote {
  text-align: left;
  border-left: 2px solid var(--brass-dim);
  padding: 4px 0 4px 22px;
  margin: 2em 0;
  color: var(--text);
  font-style: normal;
}
.ticket-quote p {
  margin-bottom: 0 !important;
}

.ticket-signoff {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-top: 2em !important;
}

.chit-page-form {
  margin: 48px 0 8px;
}

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

.site-footer {
  padding: 56px var(--pad) 40px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-wordmark { line-height: 1; }

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-nav a:hover { color: var(--brass); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 8px;
}

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

@media (max-width: 860px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-media { order: -1; max-width: 260px; margin: 0 auto; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}
