/* ========================================
   CSS Variables — UrbanBizFinder
   Added: 2026-03-27 by Atlas
   ======================================== */
:root {
  --ph-primary: #059669;
  --ph-primary-hover: #047857;
  --ph-primary-light: #ecfdf5;
  --ph-primary-rgb: 5, 150, 105;
  --ph-accent: #8b5cf6;
  --ph-accent-hover: #7c3aed;
  --ph-dark: #022c22;
  --ph-text: #374151;
  --ph-text-light: #6b7280;
  --ph-bg: #ffffff;
  --ph-bg-alt: #f9fafb;
  --ph-border: #e5e7eb;
  --ph-radius: 12px;
  --ph-radius-sm: 8px;
  --ph-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --ph-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --ph-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --ph-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

/* ============================================
   UrbanBizFinder Premium v4.0 — custom.css
   Local Business Directory
   Redesigned: 2026-03-21 (T014)
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ph-text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--ph-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .wp-block-heading {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ph-dark);
  line-height: 1.2;
}

a { color: var(--ph-primary); transition: all 0.2s ease; }
a:hover { color: var(--ph-primary-hover); }
::selection { background: var(--ph-primary); color: #fff; }

header[data-header], .site-header {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  box-shadow: var(--ph-shadow-sm);
}

.site-title, .site-title a, .ct-logo .site-title,
header .site-branding .site-title a {
  color: var(--ph-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

[data-id="menu"] > a, header nav a, .primary-menu a, .main-navigation a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ph-dark);
  letter-spacing: -0.01em;
}
[data-id="menu"] > a:hover, [data-id="menu"] > a[aria-current],
header nav a:hover, .primary-menu a:hover {
  color: var(--ph-primary);
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--ph-radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.ph-btn-primary {
  background: linear-gradient(135deg, var(--ph-primary), #172e4a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--ph-primary-rgb), 0.3);
}
.ph-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--ph-primary-rgb), 0.4);
  color: #fff;
}
.ph-btn-accent {
  background: var(--ph-accent);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.ph-btn-accent:hover {
  background: var(--ph-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: #000;
}
.ph-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.ph-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
.ph-btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.ph-btn-lg { padding: 18px 40px; font-size: 1.1rem; }

.ph-hero {
  background: linear-gradient(160deg, #0a1628 0%, #172e4a 30%, #1e3a5f 60%, #2563eb 100%);
  padding: 100px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ph-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.ph-shape { position: absolute; border-radius: 50%; opacity: 0.08; }
.ph-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--ph-accent) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: ph-float 20s ease-in-out infinite;
}
.ph-shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation: ph-float 25s ease-in-out infinite reverse;
}
.ph-shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--ph-accent) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: ph-float 15s ease-in-out infinite;
}
@keyframes ph-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-15px, 15px); }
}

.ph-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.ph-hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--ph-accent);
  font-size: 0.82rem; font-weight: 700;
  padding: 6px 18px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ph-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900; margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.ph-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem; max-width: 600px;
  margin: 0 auto 36px; line-height: 1.7;
}
.ph-hero-actions {
  display: flex; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 48px;
}
.ph-hero-badges {
  display: flex; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.ph-hero-badge {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem; font-weight: 500;
}
.ph-badge-dot {
  width: 8px; height: 8px;
  background: var(--ph-accent);
  border-radius: 50%; display: inline-block;
}

.ph-stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative; z-index: 2;
}
.ph-stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: center;
  align-items: center; gap: 48px; padding: 32px 24px;
}
.ph-stat { text-align: center; }
.ph-stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem; font-weight: 900;
  color: var(--ph-primary); line-height: 1; margin-bottom: 6px;
}
.ph-stat-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ph-text-light);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ph-stat-divider { width: 1px; height: 40px; background: var(--ph-border); }

.ph-section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
.ph-section-alt { background: var(--ph-bg-alt); padding: 72px 24px; }
.ph-container { max-width: 1200px; margin: 0 auto; }
.ph-section-title { text-align: center; margin-bottom: 48px; }
.ph-section-tag {
  display: inline-block;
  background: var(--ph-primary-light); color: var(--ph-primary);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.ph-section-title h2 { font-size: 2.2rem; color: var(--ph-dark); margin-bottom: 8px; }
.ph-section-title p {
  color: var(--ph-text-light); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto;
}
.ph-accent-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--ph-accent), var(--ph-primary));
  margin: 16px auto 0; border-radius: 2px;
}
.ph-section-cta { text-align: center; margin-top: 48px; }

.ph-featured-post {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 0; border-radius: var(--ph-radius);
  overflow: hidden; border: 1px solid var(--ph-border);
  background: #fff; transition: all 0.3s ease; text-decoration: none;
}
.ph-featured-post:hover {
  box-shadow: var(--ph-shadow-xl);
  border-color: transparent; transform: translateY(-2px);
}
.ph-featured-img { overflow: hidden; }
.ph-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  min-height: 340px; transition: transform 0.5s ease;
}
.ph-featured-post:hover .ph-featured-img img { transform: scale(1.03); }
.ph-featured-post-body {
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.ph-featured-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ph-primary-light); color: var(--ph-primary);
  font-size: 0.75rem; font-weight: 800;
  padding: 5px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px; width: fit-content;
}
.ph-featured-post h2 {
  font-size: 1.6rem; margin-bottom: 12px;
  line-height: 1.3; color: var(--ph-dark);
}
.ph-featured-post p { color: var(--ph-text-light); line-height: 1.7; margin-bottom: 16px; }
.ph-featured-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ph-text-light); margin-bottom: 24px;
}

.ph-articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1200px; margin: 0 auto;
}
.ph-article-card {
  background: #fff; border-radius: var(--ph-radius);
  overflow: hidden; border: 1px solid var(--ph-border);
  transition: all 0.3s ease; text-decoration: none;
  display: flex; flex-direction: column;
}
.ph-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ph-shadow-lg); border-color: transparent;
}
.ph-card-img-wrap { overflow: hidden; height: 200px; }
.ph-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.ph-article-card:hover .ph-card-img-wrap img { transform: scale(1.05); }
.ph-card-placeholder {
  height: 100%; background: var(--ph-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.ph-article-card-body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column;
}
.ph-card-meta-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.ph-article-card-cat {
  display: inline-block;
  background: var(--ph-primary-light); color: var(--ph-primary);
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ph-card-date { font-size: 0.8rem; color: var(--ph-text-light); font-weight: 500; }
.ph-article-card h3 {
  font-size: 1.1rem; color: var(--ph-dark);
  margin-bottom: 8px; line-height: 1.35;
}
.ph-article-card p {
  color: var(--ph-text-light); font-size: 0.9rem;
  line-height: 1.6; flex: 1;
}
.ph-card-footer {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 16px;
  padding-top: 12px; border-top: 1px solid var(--ph-border);
}
.ph-read-time { font-size: 0.8rem; color: var(--ph-text-light); font-weight: 500; }
.ph-read-more { color: var(--ph-primary); font-weight: 600; font-size: 0.88rem; }

.ph-cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.ph-cat-card {
  background: #fff; border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius); padding: 32px 24px;
  text-align: center; text-decoration: none;
  transition: all 0.3s ease; display: block;
  position: relative; overflow: hidden;
}
.ph-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-gradient, linear-gradient(135deg, var(--ph-primary), #172e4a));
  opacity: 0; transition: opacity 0.3s ease;
}
.ph-cat-card:hover {
  border-color: transparent; transform: translateY(-4px);
  box-shadow: var(--ph-shadow-lg);
}
.ph-cat-card:hover::before { opacity: 1; }
.ph-cat-icon-wrap {
  width: 64px; height: 64px;
  background: var(--ph-bg-alt); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: all 0.3s ease;
}
.ph-cat-card:hover .ph-cat-icon-wrap { background: var(--ph-primary-light); }
.ph-cat-icon { font-size: 1.8rem; }
.ph-cat-card h3 { font-size: 1.05rem; color: var(--ph-dark); margin-bottom: 8px; }
.ph-cat-card p {
  color: var(--ph-text-light); font-size: 0.88rem;
  line-height: 1.5; margin-bottom: 12px;
}
.ph-cat-count {
  font-size: 0.78rem; font-weight: 600; color: var(--ph-primary);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.ph-why-trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1200px; margin: 0 auto;
}
.ph-why-card {
  background: #fff; border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius); padding: 36px 28px;
  text-align: center; transition: all 0.3s ease;
}
.ph-why-card:hover {
  border-color: var(--ph-primary);
  box-shadow: var(--ph-shadow-md); transform: translateY(-2px);
}
.ph-why-step {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--ph-primary), #172e4a);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem; font-weight: 900;
}
.ph-why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.ph-why-card p { color: var(--ph-text-light); font-size: 0.92rem; line-height: 1.6; }

.ph-newsletter {
  background: linear-gradient(135deg, var(--ph-dark), var(--ph-primary));
  border-radius: var(--ph-radius); padding: 56px 48px;
  text-align: center; max-width: 800px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.ph-newsletter::before {
  content: ''; position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.ph-newsletter-content { position: relative; z-index: 1; margin-bottom: 28px; }
.ph-newsletter h2 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.ph-newsletter p {
  color: rgba(255, 255, 255, 0.8); font-size: 1rem;
  max-width: 500px; margin: 0 auto;
}
.ph-newsletter-form {
  display: flex; gap: 12px;
  max-width: 460px; margin: 0 auto;
  position: relative; z-index: 1;
}
.ph-newsletter-form input {
  flex: 1; padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ph-radius-sm);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff; outline: none;
  transition: border-color 0.2s ease;
}
.ph-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.ph-newsletter-form input:focus { border-color: var(--ph-accent); }
.ph-newsletter-form .ph-btn { white-space: nowrap; }
.ph-newsletter-disclaimer {
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.4);
  margin-top: 16px; position: relative; z-index: 1;
}

.ph-bottom-cta { background: var(--ph-bg-alt); padding: 80px 24px; text-align: center; }
.ph-bottom-cta-inner { max-width: 600px; margin: 0 auto; }
.ph-bottom-cta h2 { font-size: 2rem; margin-bottom: 12px; }
.ph-bottom-cta p { color: var(--ph-text-light); font-size: 1.1rem; margin-bottom: 32px; }

.entry-content ,
.ph-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--ph-primary), #172e4a);
  color: #fff; padding: 14px 32px;
  border-radius: var(--ph-radius-sm);
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 15px rgba(var(--ph-primary-rgb), 0.3);
  text-decoration: none; transition: all 0.3s ease;
}
.entry-content :hover,
.ph-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--ph-primary-rgb), 0.4);
  color: #fff;
}

.ct-sidebar .widget, .sidebar .widget {
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 24px; background: #fff;
}
.ct-sidebar .widget-title, .sidebar .widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--ph-dark);
  border-bottom: 2px solid var(--ph-primary-light);
  padding-bottom: 10px; margin-bottom: 16px;
}

footer[data-footer], .site-footer {
  background: var(--ph-dark);
  color: rgba(255, 255, 255, 0.7);
}
footer[data-footer] a, .site-footer a { color: rgba(255, 255, 255, 0.8); }
footer[data-footer] a:hover, .site-footer a:hover { color: var(--ph-accent); }
footer .widget-title, footer[data-footer] .widget-title,
.site-footer .widget-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
}

.wp-block-button__link, .ct-button {
  background: var(--ph-primary);
  border-radius: var(--ph-radius-sm);
  font-weight: 700; padding: 12px 28px;
  transition: all 0.2s ease;
}
.wp-block-button__link:hover, .ct-button:hover {
  background: var(--ph-primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .ph-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ph-hero { padding: 60px 20px 50px; }
  .ph-hero h1 { font-size: 1.8rem; }
  .ph-hero-actions { flex-direction: column; align-items: center; }
  .ph-hero-badges { gap: 16px; }
  .ph-stats-inner { gap: 24px; flex-wrap: wrap; }
  .ph-stat-divider { display: none; }
  .ph-stat-number { font-size: 1.4rem; }
  .ph-section, .ph-section-alt { padding: 48px 20px; }
  .ph-section-title h2 { font-size: 1.6rem; }
  .ph-featured-post { grid-template-columns: 1fr; }
  .ph-featured-img img { min-height: 220px; }
  .ph-featured-post-body { padding: 28px 24px; }
  .ph-articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .ph-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ph-why-trust { grid-template-columns: 1fr; gap: 20px; }
  .ph-newsletter { padding: 40px 24px; }
  .ph-newsletter-form { flex-direction: column; }
  .ph-bottom-cta { padding: 48px 20px; }
  .ph-bottom-cta h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .ph-cat-grid { grid-template-columns: 1fr; }
  .ph-hero-badges { flex-direction: column; align-items: center; }
  .ph-stats-inner { gap: 16px; }
}

/* === NAV FIX (post-audit) === */
.main-nav ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.main-nav ul.menu li { list-style: none; margin: 0; padding: 0; }
.main-nav ul.menu li a { display: block; padding: 12px 16px; text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--ph-dark, #1e293b); transition: color 0.2s; }
.main-nav ul.menu li a:hover { color: var(--ph-primary, #2563eb); }
.main-nav { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
/* Hide excess menu items on desktop */
.main-nav ul.menu li.menu-item--user-login { display: none; }
/* Mobile nav */
@media (max-width: 768px) {
  .main-nav ul.menu { flex-direction: column; }
  .main-nav ul.menu li a { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; }
}
/* Logo fix - force custom-logo display */
.site-logo img, .custom-logo-link img, .hp-page__title img { max-height: 48px; width: auto; }
.site-header .custom-logo { display: block !important; }

