/* ============================================================
   Site Factory studio template (dark editorial portfolio)
   Colours + heading font are injected per-business by generate.js
   ============================================================ */

:root {
  --font-head: 'Fraunces', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #141416;
  --surface: #1d1d21;
  --surface-2: #19191d;
  --text: #f4f4f5;
  --muted: #b0b0b8;
  --border: #2f2f36;
  --link: #e3b74f;
  --eyebrow: #e3b74f;
  --primary-soft: #2e2816;
  --primary-strong: #e3b74f;
  --accent: #d8a938;
  --accent-hover: #c2952d;
  --on-accent: #1a1405;
  --accent-soft: #2e2816;
  --accent-strong: #e3b74f;
  --hero-a: #0b0b0d;
  --hero-b: #26221a;
  --header-bg: #141416;
  --header-text: #f4f4f5;
  --strip-bg: #0e0e10;
  --strip-text: #f4f4f5;
  --strip-muted: #a6a6ae;
  --strip-icon: #e3b74f;
  --footer-bg: #0b0b0d;
  --footer-text: #f4f4f5;
  --footer-muted: #93939b;
  --input-bg: #232328;
  --input-border: #3d3d45;
  --star: #eab308;
  --focus: #e3b74f;
  --error: #f87171;
  --success: #4ade80;
  --radius: 4px;
  --radius-full: 999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
  --rule: 1px solid var(--border);
  --whatsapp: #0e7566;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 899px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
img, svg, iframe { display: block; max-width: 100%; }
input, button, textarea { font: inherit; color: inherit; }
a { color: var(--link); }

.container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 36px; }
}

.visually-hidden {
  position: absolute !important;
  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;
  top: -6rem; left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.125rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--eyebrow);
  margin-bottom: 14px;
}
.eyebrow.centered { text-align: center; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0a5c50; }
.btn-lg { min-height: 54px; padding: 15px 30px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 8px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
@media (max-width: 479px) {
  .brand { font-size: 1.05rem; }
  .header-call { padding: 10px 14px; }
}
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 26px; margin-right: 12px; }
  .site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 0;
  }
  .site-nav a:hover { color: var(--text); }
}
.header-call { flex-shrink: 0; min-height: 44px; padding: 10px 20px; }
.call-long { display: none; }
@media (min-width: 640px) {
  .call-short { display: none; }
  .call-long { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  padding-block: 96px 72px;
  background: var(--hero-a);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.45) 0%, rgba(8, 8, 10, 0.25) 40%, rgba(8, 8, 10, 0.88) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; max-width: 14ch; }
.hero-tagline {
  font-size: clamp(1.0625rem, 1vw + 0.9rem, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-rating {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
}
.hero-rating:empty { display: none; }

/* ---------- Stats strip ---------- */
.stats-strip { border-bottom: var(--rule); background: var(--surface-2); }
.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.strip-stat {
  padding: 22px 8px;
  text-align: center;
  border-right: var(--rule);
}
.strip-stat:nth-child(2n) { border-right: 0; }
.strip-stat:nth-child(-n+2) { border-bottom: var(--rule); }
@media (min-width: 768px) {
  .stats-strip-inner { grid-template-columns: repeat(4, 1fr); }
  .strip-stat { border-right: var(--rule); border-bottom: 0 !important; }
  .strip-stat:last-child { border-right: 0; }
}
.strip-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1.15;
}
.strip-label {
  display: block;
  font-size: 0.7813rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section-tight { padding-top: 24px; }
@media (min-width: 900px) {
  .section { padding-block: 110px; }
  .section-tight { padding-top: 32px; }
}

/* ---------- Craft / price list ---------- */
.craft-grid { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .craft-grid { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .craft-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.craft-note { color: var(--muted); font-size: 0.9375rem; max-width: 26rem; }
.price-list { display: flex; flex-direction: column; }
.price-row { padding: 22px 0; border-bottom: var(--rule); }
.price-row:first-child { border-top: var(--rule); }
.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.price-line h3 { font-size: 1.1875rem; font-weight: 600; }
.price-dots { flex: 1; border-bottom: 1px dotted var(--border); transform: translateY(-4px); }
.price {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-row p { color: var(--muted); font-size: 0.9075rem; max-width: 34rem; }

/* ---------- Portfolio ---------- */
.work-grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 700px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .work-item:first-child { grid-column: span 2; grid-row: span 2; }
  .work-item:first-child img { aspect-ratio: 4 / 5; }
}
.work-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.work-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
@media (min-width: 700px) {
  .work-item:not(:first-child) img { aspect-ratio: 4 / 4.9; }
}
.work-item:hover img { transform: scale(1.03); }
.work-item figcaption {
  padding: 10px 2px 0;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.work-note { margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
.work-note:empty { display: none; }

/* ---------- Quotes ---------- */
.quotes { background: var(--surface-2); border-block: var(--rule); }
.big-quote {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw + 1rem, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 18px;
}
.big-quote-name {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 56px;
}
.quote-grid {
  display: grid;
  gap: 0;
  border-top: var(--rule);
}
@media (min-width: 768px) {
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
}
.quote-item {
  padding: 28px 0;
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .quote-item { padding: 32px 28px; border-bottom: 0; border-right: var(--rule); }
  .quote-item:first-child { padding-left: 0; }
  .quote-item:last-child { border-right: 0; padding-right: 0; }
}
.quote-item p { color: var(--text); font-size: 0.9375rem; }
.quote-item span { margin-top: auto; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
}
.visit-note { color: var(--muted); max-width: 30rem; margin-bottom: 26px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 4px; }
.areas li {
  list-style: none;
  font-size: 0.7813rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: var(--rule);
  border-radius: var(--radius-full);
  padding: 5px 14px;
}
.visit-info { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 26px;
}
.info-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1875rem;
  margin-bottom: 12px;
}
.hours { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours th, .hours td { padding: 10px 2px; border-bottom: var(--rule); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-card { padding: 0; overflow: hidden; }
.map-card iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(0.7) contrast(1.05); }
.info-sub { color: var(--muted); font-size: 0.9075rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--rule);
  padding-block: 44px 30px;
  background: var(--hero-a);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: var(--rule);
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.footer-name { font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; }
.footer-area { color: var(--muted); font-size: 0.875rem; margin-top: 2px; letter-spacing: 0.04em; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .footer-contact { align-items: flex-end; } }
.footer-phone { color: var(--text); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.footer-phone:hover { color: var(--accent-strong); }
.footer-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.footer-fb:hover { color: var(--text); }
.footer-fb svg { width: 18px; height: 18px; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .footer-meta { flex-direction: row; justify-content: space-between; }
}
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: var(--rule);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 250ms ease-out;
}
.mobile-bar.show { transform: none; }
.mobile-bar.input-open { display: none; }
.mobile-bar .btn {
  flex: 1;
  min-height: 48px;
  padding: 10px 6px;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.mobile-bar .btn .icon { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-bar { transition: none; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
