/*
Theme Name: Local Business Pages
Theme URI: https://localbusinesspages.org
Author: Joseph Choe
Description: Lightweight directory theme for LocalBusinessPages.org
Version: 1.5.0
Text Domain: local-business-pages
*/

:root {
  --ink: #17231c;
  --muted: #647067;
  --cream: #f7f3e8;
  --paper: #fffdf8;
  --green: #244d3c;
  --green-2: #dce8df;
  --gold: #d8a94b;
  --line: #dfe4df;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 12px 34px rgba(31, 52, 41, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.site-main { min-height: 60vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand span { color: var(--green); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 650; font-size: .95rem; }
.nav a:hover { color: var(--green); }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--green);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
}
.button.secondary { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.button.gold { background: var(--gold); color: #1d281f; }

.hero {
  padding: 82px 0 58px;
  background: linear-gradient(180deg, #f6f0df 0%, #fffdf8 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.hero h1 { margin: 0 0 18px; max-width: 760px; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.hero p { margin: 0 0 28px; max-width: 680px; font-size: 1.18rem; color: var(--muted); }
.search-panel {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.search-form { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 10px; }
.search-form input, .search-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.hero-card {
  border-radius: 26px;
  background: var(--green);
  color: var(--white);
  padding: 38px;
  box-shadow: 0 20px 50px rgba(23,35,28,.14);
}
.hero-card-eyebrow { color: #dce8df; }
.hero-card h2 { margin: 8px 0 14px; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.03; letter-spacing: -.035em; }
.hero-card-copy { margin: 0; color: rgba(255,255,255,.78); font-size: 1.02rem; max-width: 560px; }
.hero-preview { overflow: hidden; }
.business-preview { margin: 28px 0 22px; background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.24); box-shadow: 0 16px 36px rgba(10,25,18,.18); }
.preview-browser { min-height: 42px; padding: 10px 12px; background: #edf1ee; display: flex; align-items: center; gap: 6px; }
.preview-browser > span { width: 8px; height: 8px; border-radius: 50%; background: #b4bdb7; flex: 0 0 auto; }
.preview-url { margin-left: 7px; min-width: 0; flex: 1; background: #fff; border: 1px solid #dce2dd; border-radius: 8px; padding: 5px 10px; color: #657168; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-body { display: flex; align-items: center; gap: 14px; padding: 24px 24px 12px; }
.preview-logo { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--green-2); color: var(--green); font-weight: 850; letter-spacing: .02em; }
.preview-body strong { display: block; font-size: 1rem; line-height: 1.2; }
.preview-body small { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.preview-lines { padding: 4px 24px 24px; }
.preview-lines span { display: block; height: 7px; border-radius: 999px; background: #edf1ee; margin-top: 8px; }
.preview-lines span:nth-child(1) { width: 92%; }
.preview-lines span:nth-child(2) { width: 74%; }
.preview-lines span:nth-child(3) { width: 52%; }
.hero-card-button { margin-top: 0; }

.section { padding: 76px 0; }
.section.alt { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.section-head p { margin: 0; max-width: 620px; color: var(--muted); }

.launch-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 26px;
  background: var(--green-2);
  border: 1px solid #c7d9cc;
}
.launch-banner h2 { margin: 0 0 8px; font-size: 2rem; }
.launch-banner p { margin: 0; color: #456053; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 22px rgba(31, 52, 41, .04);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card:hover { transform: translateY(-2px); transition: .2s ease; box-shadow: var(--shadow); }

.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.business-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.business-card .thumb { aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.business-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.business-card .content { padding: 20px; }
.business-card .meta { margin-bottom: 8px; font-size: .8rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.business-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.business-card p { margin: 0 0 14px; color: var(--muted); }
.text-link { color: var(--green); font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: steps; }
.step { padding: 26px; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 18px 18px 0; }
.step:before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 800; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }

.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.price-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.price-card.featured { border: 2px solid var(--green); }
.price { font-size: 2.4rem; font-weight: 850; letter-spacing: -.04em; margin: 12px 0; }
.price-card ul { padding-left: 20px; color: var(--muted); }

.directory-wrap { padding: 56px 0 80px; }
.directory-header { margin-bottom: 28px; }
.directory-header h1 { margin: 0 0 10px; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.04em; }
.directory-filters { margin-bottom: 28px; }
.empty-state { padding: 40px; border-radius: 20px; background: var(--cream); text-align: center; }

.single-business { padding: 56px 0 90px; }
.business-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: start; }
.business-title h1 { margin: 6px 0 12px; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.04em; }
.business-lead { color: var(--muted); font-size: 1.12rem; }
.business-info { padding: 26px; background: var(--cream); border-radius: 22px; }
.business-info dl { margin: 0; }
.business-info dt { font-weight: 800; margin-top: 16px; }
.business-info dt:first-child { margin-top: 0; }
.business-info dd { margin: 4px 0 0; color: var(--muted); }
.business-gallery { margin-top: 36px; }
.business-body { max-width: 780px; margin-top: 40px; }

.site-footer { padding: 46px 0; background: var(--ink); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.site-footer p { color: rgba(255,255,255,.65); max-width: 560px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .business-hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid, .steps { grid-template-columns: 1fr 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .launch-banner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-top: 56px; }
  .section { padding: 58px 0; }
  .card-grid, .business-grid, .steps, .pricing { grid-template-columns: 1fr; }
  .section-head, .footer-inner { display: block; }
  .section-head p { margin-top: 12px; }
  .header-cta { padding: 11px 15px; font-size: .9rem; }
}


/* Footer contrast */
.site-footer .brand,
.site-footer .brand span,
.site-footer strong,
.site-footer a { color: #ffffff !important; }
.site-footer p { color: rgba(255,255,255,.78) !important; }

/* Standard WordPress pages */
.standard-page {
  padding: 64px 0 88px;
}
.standard-page-inner {
  max-width: 1180px;
}
.page-entry-header {
  margin-bottom: 32px;
}
.page-entry-header h1 {
  margin: 0;
}
.page-entry-content > *:first-child {
  margin-top: 0;
}

/* Full width mini website template */
.lbp-business-website-page {
  width: 100%;
  margin: 0;
  padding: 0;
}
.lbp-business-website-page > * {
  max-width: none;
}


/* Standalone business website template */
body.page-template-template-business-website .site-header,
body.page-template-template-business-website .site-footer { display:none !important; }
body.page-template-template-business-website .site-main { margin:0 !important; padding:0 !important; width:100% !important; max-width:none !important; }
