/* ===================================
   Irondequoit Directory — Stylesheet
   Colors: #265435, #C49549, #FAF5EE
   Fonts: Libre Baskerville / Source Sans 3
   =================================== */

:root {
  --green: #265435;
  --green-dark: #1a3d25;
  --green-light: #3a7a4f;
  --gold: #C49549;
  --gold-light: #d4ad6a;
  --gold-pale: #f0dfc0;
  --cream: #FAF5EE;
  --cream-dark: #f0e8db;
  --text: #2c2c2c;
  --text-light: #666;
  --text-lighter: #999;
  --white: #ffffff;
  --border: #e0d8cc;
  --shadow-sm: 0 1px 3px rgba(38,84,53,0.08);
  --shadow-md: 0 4px 12px rgba(38,84,53,0.1);
  --shadow-lg: 0 8px 30px rgba(38,84,53,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-light); }

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

/* ===== HEADER ===== */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo { display: flex; align-items: center; gap: 8px; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--gold); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--green);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(196,149,73,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196,149,73,0.1) 0%, transparent 50%);
  padding: 80px 24px 100px;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  font-weight: 300;
}

/* ===== SEARCH ===== */
.search-container {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--text-lighter); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}
.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-item:hover { background: var(--cream); }
.search-result-item:last-child { border-bottom: none; }

.search-result-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}
.search-result-premium {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}
.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== SECTIONS ===== */
.section { padding: 60px 24px; }
.section:nth-child(even) { background: var(--white); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
}
.category-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.category-icon { font-size: 2rem; margin-bottom: 12px; }

.category-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 6px;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

.category-count {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-lighter);
  font-weight: 500;
}

/* Categories section on cream bg needs white cards */
.categories-section .category-card { background: var(--white); }

/* ===== BUSINESS GRID ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.business-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ===== BUSINESS CARD ===== */
.business-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}
.business-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.business-card--premium {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-pale);
}
.business-card--premium:hover {
  border-color: var(--gold);
}

.business-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.business-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--cream-dark);
}

.business-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
}

.placeholder-icon { font-size: 3rem; opacity: 0.4; }
.placeholder-icon--lg { font-size: 4rem; }

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.premium-badge--lg {
  position: static;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.business-card-body { padding: 16px 20px 20px; }

.business-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1.3;
}

.business-card-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
}

.business-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.business-card-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.business-card-address {
  font-size: 0.82rem;
  color: var(--text-lighter);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--green);
  padding: 48px 24px 56px;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--white);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.page-header .breadcrumbs a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumbs a:hover { color: var(--white); }
.page-header .breadcrumbs .breadcrumb-current { color: rgba(255,255,255,0.5); }

.business-single .breadcrumbs a { color: var(--green); }
.business-single .breadcrumbs .breadcrumb-current { color: var(--text-light); }

.breadcrumb-sep { margin: 0 6px; opacity: 0.5; }

/* ===== SUBCATEGORY PILLS ===== */
.subcategory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.pill:hover {
  border-color: var(--green);
  color: var(--green);
}
.pill--active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.pill--active:hover { color: var(--white); }

/* ===== SINGLE BUSINESS PAGE ===== */
.business-single {
  padding: 32px 24px 60px;
}
.business-single-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.business-header { margin-bottom: 32px; }

.business-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.business-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--green);
}

.business-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.business-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.badge--cat {
  background: var(--green);
  color: var(--white);
}
.badge--cat:hover { background: var(--green-light); color: var(--white); }
.badge--sub {
  background: var(--gold-pale);
  color: var(--green-dark);
}
.badge--sub:hover { background: var(--gold-light); color: var(--green-dark); }

/* Business Layout */
.business-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.business-image-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 300px;
  background: var(--cream-dark);
}
.business-image-hero img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.business-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 12px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
}
.placeholder-text {
  font-size: 0.9rem;
  color: var(--text-lighter);
}

.business-section { margin-bottom: 32px; }
.business-section h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 12px;
}
.business-section p {
  color: var(--text);
  line-height: 1.7;
}

/* Sidebar */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.contact-row a { color: var(--green); font-weight: 500; }
.contact-row a:hover { color: var(--green-light); }

.hours-table { width: 100%; font-size: 0.9rem; }
.hours-table tr { border-bottom: 1px solid var(--cream-dark); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 8px 0; }
.hours-table td:first-child { font-weight: 500; color: var(--text); width: 45%; }
.hours-table td:last-child { color: var(--text-light); text-align: right; }

.map-embed { border-radius: var(--radius); overflow: hidden; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text { font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.6); }

.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-categories ul { list-style: none; }
.footer-categories li { margin-bottom: 8px; }
.footer-categories a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-categories a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.footer-contact a { color: var(--gold-light); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .business-layout {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
  }
  .menu-open .main-nav { display: flex; }
  .mobile-menu-toggle { display: flex; }

  .nav-link {
    padding: 10px 0;
    font-size: 1rem;
  }

  .hero { padding: 48px 24px 64px; }
  .business-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }

  .business-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .category-grid, .category-grid--3col { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
  .cta-banner { flex-direction: column; text-align: center; }
}

/* ===== HERO EYEBROW ===== */
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ===== 3-COLUMN CATEGORY GRID ===== */
.category-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== SECTION CTA ===== */
.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold-light);
  color: var(--white);
}

/* ===== CTA BANNER ===== */
.cta-section {
  padding: 60px 24px;
}

.cta-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.5;
}

.cta-banner .btn--primary {
  flex-shrink: 0;
  font-size: 1.05rem;
  padding: 14px 32px;
}

/* ===== FOOTER QUICK LINKS ===== */
.footer-contact ul {
  list-style: none;
}
.footer-contact li {
  margin-bottom: 8px;
}
.footer-contact ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-contact ul a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 900px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  .category-grid--3col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid--3col {
    grid-template-columns: 1fr;
  }
}
