/* Bay Area Home Cinema — Editorial Styles */

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  --bg:           #faf8f5;
  --bg-alt:       #f2ede6;
  --text:         #1c1917;
  --text-muted:   #4a4540;
  --primary:      #1e3d4f;
  --primary-dark: #152d3a;
  --primary-light:#e8eff3;
  --accent:       #b5892a;
  --accent-light: #f5edd8;
  --divider:      #e0dbd2;
  --gray-200:     #e0dbd2;
  --gray-300:     #c8c1b5;
  --gray-400:     #a89e90;
  --gray-500:     #7d7268;
  --gray-600:     #5c534a;
  --gray-700:     #3d3630;

  --font-heading: 'Newsreader', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --max-prose:    86ch;
  --max-layout:   1200px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;
}

/* ─── Reset / Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent); }

ul, ol { padding-left: 1.4em; }

/* ─── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
  text-align: left;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-top: 2.5rem; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 2rem; margin-bottom: 0.65rem; }
h4 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2.5rem 0;
}

/* ─── Lists ──────────────────────────────────────────────── */
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li:last-child { margin-bottom: 0; }

/* ─── Tables ─────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.65rem 1rem;
  text-align: left;
}
tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--divider);
}
tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ─── Site Header ────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}
.site-logo:hover { color: var(--accent-light); }

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}
.nav-list a {
  display: block;
  padding: 0.45rem 0.8rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* ─── Hero ───────────────────────────────────────────────── */
.page-hero {
  background: var(--primary);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a4a62 100%);
  opacity: 0.9;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  margin-bottom: 0.9rem;
}
.page-hero .lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 62ch;
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-homepage {
  padding: 5.5rem 0 4.5rem;
}
.hero-homepage h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 700;
}
.hero-homepage .lead { font-size: 1.15rem; max-width: 56ch; }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #9a7422;
  border-color: #9a7422;
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  padding: 0.65rem 0;
  font-size: 0.83rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.breadcrumb li + li::before {
  content: '/';
  color: var(--gray-400);
  margin-right: 0.35rem;
}
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* ─── Main Content Layout ────────────────────────────────── */
main { min-height: 60vh; }

.page-wrap {
  padding: 3rem 0 5rem;
}

.prose {
  max-width: 86ch;
  margin: 0 auto;
}
.prose-wide {
  max-width: min(100%, 96ch);
  margin: 0 auto;
}

/* Article layout: center prose with breathing room */
.article-layout {
  display: grid;
  grid-template-columns: 1fr min(86ch, 100%) 1fr;
  gap: 0;
}
.article-layout > * { grid-column: 2; }
.article-layout > .full-width { grid-column: 1 / -1; }

/* ─── Section Spacing (intentionally varied) ─────────────── */
.section {
  padding: var(--space-lg) 0;
}
.section-sm {
  padding: var(--space-md) 0;
}
.section-xl {
  padding: var(--space-xl) 0;
}
.section-alt {
  background: var(--bg-alt);
  padding: var(--space-lg) 0;
}

/* ─── Directory Cards ────────────────────────────────────── */
.directory-section {
  padding: 3.5rem 0 5rem;
}
.directory-intro {
  max-width: 78ch;
  margin-bottom: 2.5rem;
}
.directory-intro p { color: var(--text-muted); font-size: 1.02rem; }

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.listing-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  position: relative;
  transition: border-color 0.18s ease;
}
.listing-card:hover {
  border-color: var(--accent);
}
.listing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 6px 0 0 6px;
  transition: background 0.18s ease;
}
.listing-card:hover::before,
.listing-card.listing-featured::before {
  background: var(--accent);
}

.listing-featured {
  border-color: var(--accent);
}

.listing-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.listing-number {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

.listing-card h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.listing-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.listing-meta span { display: flex; align-items: flex-start; gap: 0.4rem; }

.listing-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.listing-services {
  font-size: 0.85rem;
  color: var(--gray-600);
}
.listing-services strong { color: var(--text); font-weight: 600; }

.listing-areas {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.35rem;
}

/* ─── Silo Nav Cards (Hub pages) ─────────────────────────── */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.silo-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s;
  display: block;
}
.silo-card:hover { border-color: var(--primary); color: var(--text); }
.silo-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.silo-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Article Cards (silo hub child listings) ────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.article-list-item {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--divider);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
  background: #fff;
}
.article-list-item:hover { border-color: var(--accent); color: var(--text); }
.article-list-item h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.02rem;
  color: var(--primary);
}
.article-list-item p { font-size: 0.87rem; color: var(--text-muted); margin: 0; }

/* ─── Section Intro Block ────────────────────────────────── */
.section-intro {
  max-width: 78ch;
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ─── Four-Silo Feature Block (homepage) ─────────────────── */
.silo-features {
  padding: 4rem 0 3rem;
  background: var(--bg-alt);
}
.silo-features h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.silo-features .section-intro { margin-bottom: 2rem; }
.silo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.silo-feature-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  display: block;
  color: var(--text);
  transition: border-color 0.18s;
}
.silo-feature-card:hover { border-color: var(--primary); color: var(--text); }
.silo-feature-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.silo-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ─── Hero Images ───────────────────────────────────────── */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ─── FAQ Section ────────────────────────────────────────── */
.faq-section {
  margin: 2.5rem 0;
}
.faq-section h2 {
  margin-bottom: 1.5rem;
}
.faq-item {
  border-top: 1px solid var(--divider);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--divider); }
.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.faq-answer {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Contact Form ───────────────────────────────────────── */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 2rem 2rem 1.75rem;
  margin: 2rem 0;
  max-width: 52ch;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: 0.5rem; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 38ch;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ─── Utility ────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.88rem; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-0 { margin-bottom: 0 !important; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  .nav-list.active { display: flex; }
  .nav-list a { padding: 0.65rem 0.75rem; font-size: 0.95rem; }

  /* Hero */
  .page-hero { padding: 2.75rem 0 2.5rem; }
  .hero-homepage { padding: 3.25rem 0 2.75rem; }

  /* Grid collapses */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .silo-features-grid { grid-template-columns: 1fr; }
  .silo-grid { grid-template-columns: 1fr; }

  /* Cards */
  .listing-card { padding: 1.35rem 1.25rem; }
  .contact-form { padding: 1.5rem 1.25rem; }

  /* Tables */
  table { font-size: 0.83rem; }
  thead th, tbody td { padding: 0.5rem 0.65rem; }
}

@media (max-width: 540px) {
  .hero-cta-row { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* pbn-qc 1b (2026-07-26): mobile table scroll */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
