/* Boss Creative Works LLC — shared site styles
   Structure and layout for all four sites. Brand identity lives in each
   site's own /assets/theme.css, which sets --accent and --brand-name.
   Nothing brand-specific belongs in this file. */

:root {
  --ink:        #000000;
  --paper:      #ffffff;
  --paper-warm: #fdfbf6;
  --gold:       #c9a227;
  --gold-light: #e7c765;
  --muted:      #5c564d;
  --rule:       #e6ded0;

  /* Overridden per site in theme.css. Gold is the parent default. */
  --accent:      #c9a227;
  --accent-soft: #f2e6c2;

  --ray-1: #e6197f;
  --ray-2: #f26522;
  --ray-3: #ffc20e;
  --ray-4: #00a651;
  --ray-5: #00aeef;
  --ray-6: #0054a6;

  --measure: 34rem;
  --gutter: 1.5rem;
  --max: 68rem;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.site-header .brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

/* Logo dimensions are per-brand: three are circular badges, Business-A-To-Z
   is a wide landscape mark. Each site's theme.css overrides these. */
.site-header .brand-lockup img {
  width: var(--lockup-w, 2.5rem);
  height: var(--lockup-h, 2.5rem);
  object-fit: contain;
}

.site-header .brand-lockup span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] { border-bottom-color: var(--accent); }

@media (max-width: 46rem) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .site-nav li { border-top: 1px solid var(--rule); }

  .site-nav a { display: block; padding: 0.85rem 0; border-bottom: none; }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}

.hero img.mark {
  width: var(--mark-w, clamp(10rem, 32vw, 15rem));
  margin: 0 auto 1.75rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.05;
  margin: 0 auto 1rem;
  max-width: 20ch;
}

.hero .intro {
  max-width: var(--measure);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.15rem;
}

/* The brand name. Hidden when a logo is present, because the logo already
   says it. site.js adds .no-logo to <body> when the logo file is missing,
   which reveals this as a small eyebrow above the headline — never as a
   second giant serif line competing with it. */
.hero .eyebrow { display: none; }

body.no-logo .hero .eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* The logo usually carries the wordmark, so the heading is hidden by
   default. site.js adds .no-logo to <body> when the logo file is missing,
   which brings the wordmark back so the page is never headless. */
.wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.no-logo .wordmark {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.05;
  margin: 0 auto 1.25rem;
}

.rays {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2rem auto;
  max-width: 16rem;
}

.rays span {
  display: block;
  height: 6px;
  flex: 1;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  animation: draw 520ms cubic-bezier(.2,.8,.3,1) forwards;
}

.rays span:nth-child(1) { background: var(--ray-1); animation-delay:  60ms; }
.rays span:nth-child(2) { background: var(--ray-2); animation-delay: 120ms; }
.rays span:nth-child(3) { background: var(--ray-3); animation-delay: 180ms; }
.rays span:nth-child(4) { background: var(--ray-4); animation-delay: 240ms; }
.rays span:nth-child(5) { background: var(--ray-5); animation-delay: 300ms; }
.rays span:nth-child(6) { background: var(--ray-6); animation-delay: 360ms; }

@keyframes draw { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .rays span { animation: none; transform: scaleX(1); }
}

/* ---------- Sections ---------- */

section { padding: 4rem 0; }

section.tinted { background: var(--paper-warm); }

section > .wrap > h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.prose { max-width: var(--measure); }

.prose p { margin: 0 0 1.1rem; }

.prose p:last-child { margin-bottom: 0; }

/* ---------- Brand cards ---------- */

.dbas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dba {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.dba h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dba h3::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  background: var(--dot, var(--accent));
}

.dba.treats { --dot: var(--ray-1); }
.dba.craft  { --dot: var(--ray-5); }
.dba.baz    { --dot: var(--ray-4); }

.dba .role {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.dba p { margin: 0 0 0.9rem; }

.dba .visit {
  margin: auto 0 0;
  padding-top: 1rem;
}

.dba .visit a {
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--dot, var(--accent));
  padding-bottom: 2px;
}

.dba .visit a:hover { border-bottom-width: 2px; }

/* ---------- Gallery ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

.filters button {
  font: inherit;
  font-size: 0.92rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}

.tile .shot {
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  display: grid;
  place-items: center;
}

.tile .shot img { width: 100%; height: 100%; object-fit: cover; }

.tile .placeholder {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.tile .placeholder::before {
  content: "";
  display: block;
  width: 2rem;
  height: 4px;
  border-radius: 2px;
  margin: 0 auto 0.75rem;
  background: var(--accent);
}

.tile figcaption {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.95rem;
}

.tile figcaption small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.grid-empty { color: var(--muted); padding: 2rem 0; }

/* ---------- Inquiry form ---------- */

.inquiry { max-width: var(--measure); margin-top: 1.75rem; }

.field { margin-bottom: 1.25rem; }

.field label { display: block; font-size: 0.9rem; margin-bottom: 0.4rem; }

.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

/* Honeypot — hidden from people, visible to naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  font: inherit;
  font-size: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  cursor: pointer;
}

.btn:hover { background: #222; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.form-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.form-note[hidden] { display: none; }

.form-note.ok    { border-color: var(--ray-4); }
.form-note.error { border-color: var(--ray-1); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--accent);
  padding: 2.5rem 0 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-footer a { color: var(--ink); }

.site-footer .dba-line { margin-bottom: 0.5rem; color: var(--ink); }

.site-footer .dba-line a { text-decoration: none; border-bottom: 1px solid var(--rule); }

/* ---------- Coming-soon page ---------- */

body.coming {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.frame {
  width: 100%;
  max-width: 44rem;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  position: relative;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  border-top: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
  pointer-events: none;
}

.frame .mark { width: var(--mark-coming-w, clamp(11rem, 38vw, 17rem)); margin: 0 auto; }

.lede {
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  line-height: 1.55;
  max-width: 30rem;
  margin: 0 auto 2.25rem;
}

.lede small {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.brand {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.6rem 1.35rem 0.65rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand i { width: 9px; height: 9px; border-radius: 50%; display: block; }

.brand.treats i { background: var(--ray-1); }
.brand.craft  i { background: var(--ray-5); }
.brand.baz    i { background: var(--ray-4); }

.contact { font-size: 0.95rem; color: var(--muted); }

.contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.contact a:hover { border-bottom-width: 2px; }

.coming footer {
  margin-top: 2.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .frame { padding: 2.25rem 1rem; }
}

/* ---------- Numbered process steps (services sites) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
}

.steps h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.steps p { margin: 0; }

/* Service cards reuse the brand-card shell without the brand dot. */
.dba.plain h3::before { display: none; }

/* ---------- Simple bulleted list inside prose ---------- */

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
}

.prose li { margin-bottom: 0.45rem; }

.prose li::marker { color: var(--accent); }

/* ---------- Brand logo row (parent coming-soon page) ----------
   Two circular badges and one wide landscape mark sit side by side, so the
   row is sized by height rather than width and each logo keeps its own
   aspect ratio. */

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.75rem;
  margin: 0 0 2.75rem;
}

.brand-logo {
  display: block;
  padding: 0.25rem;
  border-radius: 10px;
  transition: transform 160ms ease;
}

/* Sized per shape rather than uniformly: the circular badges carry small
   text around the ring and need more height to stay readable, while the
   wide BAZ mark reads clearly at a lower height. */
.brand-logo img {
  width: auto;
  object-fit: contain;
}

.brand-logo.badge img {
  height: 6.9rem;
  max-width: 7.5rem;
}

.brand-logo.wide img {
  height: 5.5rem;
  max-width: 11rem;
}

.brand-logo:hover,
.brand-logo:focus-visible { transform: translateY(-3px); }

@media (max-width: 34rem) {
  .brand-logos { gap: 1.25rem 1.75rem; }
  .brand-logo.badge img { height: 5.3rem; max-width: 5.8rem; }
  .brand-logo.wide  img { height: 4.25rem; max-width: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo { transition: none; }
  .brand-logo:hover,
  .brand-logo:focus-visible { transform: none; }
}
