/* ==========================================================================
   ShopGreenwichAvenue.com — Modern stylesheet
   A clean, responsive, accessible design for a local business directory.
   ========================================================================== */

:root {
  --color-primary: #0f5c3a;      /* deep Greenwich green */
  --color-primary-dark: #0a3f27;
  --color-accent: #c8a24a;       /* warm gold accent */
  --color-accent-dark: #a8842f;
  --color-bg: #f7f5ef;           /* warm off-white */
  --color-surface: #ffffff;
  --color-text: #2b2b2b;
  --color-text-muted: #6b6b6b;
  --color-border: #e4e0d6;
  --color-footer-bg: #0a3f27;
  --color-footer-text: #e8f0ea;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 64px; height: auto; border-radius: 6px; }
.brand-name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.brand-name a { color: #fff; }
.brand-name a:hover { text-decoration: none; }
.brand-tagline { font-size: 0.8rem; color: #cfe3d6; }

/* ---------- Navigation ---------- */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  color: #eaf3ee;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Main ---------- */
main { padding: 28px 0 48px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b9b4a6; }
.breadcrumbs a { color: var(--color-primary); }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  margin-bottom: 28px;
}
.page-hero h1 { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.2; }
.page-hero p { margin: 0; color: #dcebe2; font-size: 1.05rem; max-width: 60ch; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Section headings ---------- */
.section-title {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #2b2b2b; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- Business listing ---------- */
.business-list { list-style: none; margin: 0; padding: 0; }
.business-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.business-list li:last-child { border-bottom: none; }
.business-list a { font-weight: 600; font-size: 1.05rem; }
.business-list .cat { color: var(--color-text-muted); font-size: 0.85rem; }

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--color-primary);
}
.chip:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ---------- Business detail ---------- */
.business-card { display: grid; grid-template-columns: 1fr; gap: 20px; }
.business-meta { list-style: none; margin: 0; padding: 0; }
.business-meta li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.business-meta li:last-child { border-bottom: none; }
.business-meta strong { color: var(--color-primary-dark); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; color: var(--color-primary-dark); }
.faq details p { margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cfe3d6; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #a9c4b2;
  text-align: center;
}

/* ---------- Homepage hero ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 34px;
  margin-bottom: 30px;
  text-align: center;
}
.home-hero h1 { font-size: 2.2rem; margin: 0 0 10px; }
.home-hero p { font-size: 1.1rem; color: #dcebe2; max-width: 60ch; margin: 0 auto 20px; }
.home-hero .btn { margin: 0 6px; }

/* ---------- Feature / value props ---------- */
.feature { text-align: center; }
.feature .icon { font-size: 2rem; }
.feature h3 { margin: 10px 0 6px; color: var(--color-primary-dark); }
.feature p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .home-hero h1 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero { padding: 24px 20px; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #2b2b2b;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 0; }
