/* Coffee Cartel — noir "outlaw luxury" theme
   Shape lock: cards/images/inputs use 4px radius; CTAs are full-pill.
   Theme lock: dark near-black throughout, one accent (amber/gold), no section inverts to light. */

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

:root {
  --bg: #15120f;
  --bg-alt: #1c1712;
  --surface: #211b15;
  --surface-raised: #271f17;
  --border: #3a2f22;
  --border-soft: #2b241b;

  --text: #f3ece0;
  --text-soft: #cabfa9;
  --text-muted: #8d8171;

  --accent: #d6a13c;
  --accent-soft: #e8c06b;
  --accent-dark: #8a6a1f;
  --accent-ink: #1b1710;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --section-pad: clamp(56px, 8vw, 104px);
  --container: 1200px;
  --radius: 4px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.15; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p { color: var(--text-soft); }

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

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

ul { list-style: none; }

/* Film-grain texture, fixed and pointer-events-none for perf */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-primary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(243, 236, 224, 0.35);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* Gallery gets its own authored entrance: a slow surface into focus rather than a rise */
.gallery-grid .reveal,
.gallery-stylized.reveal {
  transform: scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-grid .reveal.visible,
.gallery-stylized.reveal.visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .gallery-grid .reveal, .gallery-stylized.reveal { opacity: 1; transform: none; transition: none; }
}

/* Nav */
#siteNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
#siteNav.scrolled {
  background: rgba(21, 18, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}
.logo-mark { color: var(--accent); flex-shrink: 0; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 51;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-links.open { transform: translateX(0); }
.nav-links a:not(.btn) {
  font-size: 1.1rem;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links a:not(.btn):focus-visible,
.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.contact-details a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-cta { margin-top: 0.5rem; }

@media (min-width: 1024px) {
  .hamburger { display: none; }
  .nav-links {
    position: static;
    flex-direction: row;
    transform: none;
    background: transparent;
    gap: 2.25rem;
  }
  .nav-links a:not(.btn) { font-size: 0.92rem; }
  .nav-cta { margin-top: 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.05) brightness(0.7); }
.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(21,18,15,0.96) 5%, rgba(21,18,15,0.55) 55%, rgba(21,18,15,0.25) 100%);
}
.hero-content {
  padding-top: clamp(120px, 20vw, 220px);
  padding-bottom: clamp(64px, 8vw, 96px);
  max-width: 820px;
}
.hero-content h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.hero-sub {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Process */
.process { padding-block: var(--section-pad); border-bottom: 1px solid var(--border-soft); }
.process h2 { max-width: 20ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.process-step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.process-step h3 { color: var(--accent-soft); margin-bottom: 0.6rem; }
.process-step p { max-width: 42ch; }

@media (min-width: 768px) {
  .process-flow { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* Pricing */
.pricing { padding-block: var(--section-pad); background: var(--bg-alt); border-bottom: 1px solid var(--border-soft); }
.pricing h2 { max-width: 20ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.tier h3 { margin-bottom: 0.5rem; }
.tier .price { font-family: var(--font-display); font-size: 2.6rem; color: var(--text); margin-bottom: 1.5rem; }
.tier .price span { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-muted); text-transform: none; letter-spacing: normal; }
.tier ul { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex-grow: 1; }
.tier ul li {
  font-size: 0.92rem;
  color: var(--text-soft);
  padding-left: 1.4rem;
  position: relative;
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
.tier-featured {
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 24px 60px -20px rgba(214, 161, 60, 0.35);
  position: relative;
}
.badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .tier-featured { transform: translateY(-1rem); padding-block: 2.5rem 2rem; }
}

/* Story */
.story { padding-block: var(--section-pad); border-bottom: 1px solid var(--border-soft); }
.story-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.story-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.35) sepia(0.12) contrast(1.05) brightness(0.85); }
.story-content h2 { max-width: 16ch; margin-bottom: 1.5rem; }
.story-content p { margin-bottom: 1rem; max-width: 52ch; }
.story-content .btn { margin-top: 1rem; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 0.85fr 1fr; gap: 4rem; }
}

/* Gallery */
.gallery { padding-block: var(--section-pad); background: var(--bg-alt); border-bottom: 1px solid var(--border-soft); }
.gallery h2 { margin-bottom: clamp(2rem, 5vw, 3rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.5s ease; filter: grayscale(0.35) sepia(0.12) contrast(1.05) brightness(0.85); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-stylized {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    repeating-linear-gradient(135deg, rgba(214, 161, 60, 0.04) 0 2px, transparent 2px 18px),
    linear-gradient(160deg, var(--surface-raised), var(--bg-alt));
  border: 1px dashed var(--border);
  aspect-ratio: 4 / 3;
  text-align: center;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}
.gallery-stylized:hover { border-color: var(--accent-dark); }
.gallery-stylized .stylized-icon { color: var(--accent); opacity: 0.85; }
.gallery-stylized .stylized-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.gallery-stylized figcaption {
  position: static;
  background: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .gallery-stylized { aspect-ratio: auto; }
}

.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(21,18,15,0.9), transparent);
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 1rem; }
  .gallery-grid figure img { aspect-ratio: auto; }
  .g-tall { grid-row: span 2; }
  .g-wide { grid-column: span 2; }
}

/* Reviews */
.reviews { padding-block: var(--section-pad); border-bottom: 1px solid var(--border-soft); }
.reviews h2 { margin-bottom: clamp(2rem, 5vw, 3rem); }
.stars { color: var(--accent); letter-spacing: 0.15em; font-size: 0.9rem; margin-bottom: 1rem; }
.review p { color: var(--text); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6; margin-bottom: 1.25rem; }
.review footer { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.review footer span { display: block; color: var(--text-muted); opacity: 0.8; margin-top: 0.2rem; }

.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.review-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review-featured p { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.reviews-side { display: flex; flex-direction: column; gap: 1.5rem; }
.review-small {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: 2fr 1fr; }
}

/* Contact */
.contact { padding-block: var(--section-pad); background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-info h2 { max-width: 16ch; margin-bottom: 1.25rem; }
.contact-info p { max-width: 46ch; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: 0.85rem; color: var(--text-soft); }
.contact-details svg { color: var(--accent); flex-shrink: 0; }
.contact-details a:hover { color: var(--accent-soft); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; color: var(--text-soft); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; }

.form-success {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  background: rgba(214, 161, 60, 0.12);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  color: var(--accent-soft);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1fr; gap: 4rem; }
}

/* Footer */
body > footer { background: #0f0d0a; border-top: 1px solid var(--border-soft); padding-top: clamp(48px, 6vw, 72px); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: clamp(40px, 6vw, 56px);
}
.footer-brand p { margin-top: 0.75rem; max-width: 32ch; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.92rem; color: var(--text-soft); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sitebound-credit a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.sitebound-credit a:hover { color: var(--accent-soft); }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; }
}
