:root {
  --white: #ffffff;
  --paper: #f6f4ee;
  --paper-2: #eeece4;
  --ink: #11131a;
  --dark: #080a10;
  --dark-2: #121620;
  --muted: #666d7e;
  --muted-dark: rgba(255,255,255,.72);
  --line: rgba(17,19,26,.12);
  --line-dark: rgba(255,255,255,.12);
  --red: #d91f2b;
  --red-dark: #a9151f;
  --yellow: #f5c542;
  --max: 1160px;
  --radius: 22px;
  --shadow: 0 18px 56px rgba(8,10,16,.10);
  --shadow-dark: 0 20px 70px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 9999; background: var(--yellow); color: var(--dark); padding: 8px 12px; border-radius: 999px; font-weight: 800; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3000;
  background: rgba(8,10,16,.96);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
  transition: transform .28s ease, box-shadow .22s ease, background .22s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(0,0,0,.28); background: rgba(8,10,16,.985); }
.nav-row { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.brand-logo, .custom-logo-link { display: inline-flex; align-items: center; }
.brand-logo img, .custom-logo { display: block; max-width: 205px; max-height: 48px; width: auto; }
.desktop-nav { display: flex; justify-content: center; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.primary-menu > li { position: relative; }
.primary-menu a, .more-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 800; cursor: pointer; }
.primary-menu a:hover, .more-toggle:hover, .menu-more:focus-within .more-toggle, .menu-more.is-open .more-toggle { background: rgba(255,255,255,.08); color: var(--yellow); }
.more-toggle::after { content: '⌄'; margin-left: 6px; font-size: 13px; transform: translateY(-1px); }
.more-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 260px; display: grid; gap: 4px; list-style: none; margin: 0; padding: 10px; background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 18px; box-shadow: var(--shadow-dark); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.menu-more:hover .more-menu, .menu-more:focus-within .more-menu, .menu-more.is-open .more-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.more-menu a { justify-content: flex-start; width: 100%; border-radius: 12px; min-height: 42px; color: rgba(255,255,255,.9); }
.more-menu a:hover { background: rgba(255,255,255,.08); color: var(--yellow); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.mobile-menu-toggle { display: none; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font-weight: 800; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; background: var(--yellow); border-radius: 999px; }
.mobile-menu-toggle b { margin-left: 6px; font-size: 13px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 3990; background: rgba(8,10,16,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 4000; width: min(410px, 92vw); background: var(--dark); color: #fff; padding: 20px; transform: translateX(105%); transition: transform .24s ease; overflow-y: auto; box-shadow: -22px 0 70px rgba(0,0,0,.32); }
.admin-bar .mobile-drawer { top: 32px; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer-head .brand-logo img { max-width: 205px; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.drawer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.drawer-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 15px; border-radius: 15px; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); font-size: 17px; font-weight: 800; color: #fff; }
.drawer-menu a::after { content: '→'; color: var(--yellow); }
.drawer-section-label { margin: 12px 0 2px; padding-left: 4px; color: var(--yellow); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.drawer-actions { display: grid; gap: 10px; margin-top: 18px; }
.drawer-phone { display: block; text-align: center; color: rgba(255,255,255,.78); font-weight: 800; }

/* Buttons */
.btn, .wp-block-button__link, .directorist-btn, .wpforms-submit, .adverts-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, button[type="submit"], input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 999px; font-weight: 800; line-height: 1; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover, .wp-block-button__link:hover, .directorist-btn:hover, .wpforms-submit:hover, .adverts-button:hover { transform: translateY(-1px); }
.btn-primary, .directorist-btn.directorist-btn-primary, .wpforms-submit, .adverts-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, input[type="submit"] { background: var(--red); color: #fff !important; box-shadow: 0 10px 28px rgba(217,31,43,.22); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(8,10,16,.05); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--dark); box-shadow: 0 10px 28px rgba(245,197,66,.22); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-small { min-height: 40px; padding: 10px 14px; font-size: 13px; }
.btn-xl { min-height: 54px; padding: 15px 22px; font-size: 16px; }
.btn-wide { width: 100%; }
.site-header .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line-dark); box-shadow: none; }
.site-header .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-header .btn-primary { box-shadow: none; }

.site-main { padding-top: 74px; overflow: hidden; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
h1, .h1 { margin: 0 0 16px; font-size: clamp(34px, 7.4vw, 58px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 5.4vw, 44px); line-height: 1.06; letter-spacing: -.032em; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -.022em; font-weight: 800; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: #3f4657; }
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.section-head p { color: var(--muted); }

/* Light / dark alternation */
.parallax-hero { background: radial-gradient(circle at 82% 20%, rgba(217,31,43,.10), transparent 24%), radial-gradient(circle at 8% 84%, rgba(245,197,66,.16), transparent 28%), linear-gradient(180deg, var(--white), var(--paper)); background-attachment: fixed; }
.hero-minimal { padding: 58px 0 48px; }
.hero-grid.simple { display: grid; grid-template-columns: 1fr .92fr; gap: 28px; align-items: center; }
.hero-copy { max-width: 610px; }
.hero-actions.compact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.locator-shell { display: flex; justify-content: end; }
.locator-card { background: var(--dark); color: #fff; border: 1px solid var(--line-dark); box-shadow: var(--shadow-dark); border-radius: 26px; padding: 24px; width: 100%; max-width: 470px; }
.locator-card h2 { font-size: 28px; margin-bottom: 6px; }
.locator-card p { color: var(--muted-dark); }
.locator-form { display: grid; gap: 10px; margin-top: 16px; }
.locator-form input, .locator-form select, input, textarea, select, .directorist-form-element { width: 100%; min-height: 48px; padding: 12px 14px !important; border-radius: 14px !important; border: 1px solid var(--line) !important; background: #fff; color: var(--ink); }
.quick-links { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); color: #fff; font-size: 14px; font-weight: 700; }
.quick-links a::after { content: '→'; color: var(--yellow); }

.action-strip { background: var(--dark); color: #fff; padding: 56px 0; }
.action-grid, .cards-3, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.action-card { background: var(--dark-2); color: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; box-shadow: none; }
.action-card span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--yellow); color: var(--dark); font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.action-card p { color: var(--muted-dark); }
.action-card:hover h3 { color: var(--yellow); }

.section-soft { background: var(--paper); }
.mini-card, .price-card, .panel, .agency-card, .post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.mini-card p, .price-card p { color: var(--muted); }
.mini-card a { color: var(--red); font-weight: 800; }
.card-actions-inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.card-actions-inline a { display: inline-flex; align-items: center; min-height: 32px; }

.plans-section { background: var(--dark); color: #fff; }
.plans-section .section-head p { color: var(--muted-dark); }
.plans-section .pricing-grid-simple { grid-template-columns: repeat(4, minmax(0,1fr)); }
.plans-section .price-card { background: var(--dark-2); color: #fff; border: 1px solid var(--line-dark); box-shadow: 0 18px 56px rgba(0,0,0,.22); }
.price-card .price { font-size: 34px; font-weight: 800; letter-spacing: -.035em; margin: 10px 0 12px; }
.price-card .price small { font-size: 14px; font-weight: 700; color: var(--muted-dark); }
.price-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted-dark); }
.price-card li { margin-bottom: 8px; }
.plan-badge { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.09); color: var(--yellow); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plan-badge.yellow { background: rgba(245,197,66,.15); color: var(--yellow); }
.plan-badge.red { background: rgba(217,31,43,.18); color: #ff6c75; }
.price-card.highlight { border-color: rgba(245,197,66,.62); }

.parallax-band { background: radial-gradient(circle at 12% 10%, rgba(245,197,66,.13), transparent 24%), linear-gradient(180deg, var(--white), var(--paper-2)); background-attachment: fixed; color: var(--ink); }
.simple-split { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: center; }
.bullet-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.bullet-panel ul { margin: 0 0 16px; padding-left: 18px; color: #3f4657; }
.bullet-panel li { margin-bottom: 8px; font-weight: 700; }

.page-hero { padding: 74px 0 48px; background: linear-gradient(180deg, var(--white), var(--paper)); }
.page-hero .container { max-width: 900px; }
.content-wrap { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 72px; }
.entry-content { font-size: 18px; }
.entry-content p, .entry-content li { color: #3f4657; }
.entry-content a { color: var(--red); font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.post-body { padding: 20px; }
.post-thumb { display: grid; place-items: center; min-height: 170px; background: var(--paper); font-size: 44px; font-weight: 800; }

/* Plugin surface cleanup */
.directorist-search-form, .directorist-listing-single, .directorist-card, .directorist-pricing__single, .wpforms-container-full form, .adverts-form, .adverts-flexbox-item, .job_listing, .woocommerce ul.products li.product, .woocommerce div.product { border-radius: var(--radius) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; }
.directorist-search-form, .wpforms-container-full form, .adverts-form { background: #fff !important; padding: 22px !important; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--red) !important; font-weight: 800 !important; }

.site-footer { background: var(--dark); color: #fff; padding: 58px 0 96px; }
.simple-footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 28px; padding: 26px; margin-bottom: 30px; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.simple-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.site-footer p, .site-footer a { color: var(--muted-dark); }
.site-footer h3 { color: var(--yellow); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 28px; padding-top: 16px; font-size: 14px; }
.back-to-top { position: fixed; right: 16px; bottom: 92px; z-index: 2600; width: 50px; height: 50px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--dark); font-size: 24px; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-sticky-cta { display: none; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 2500; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(8,10,16,.94); box-shadow: 0 16px 36px rgba(0,0,0,.22); }
.mobile-sticky-cta a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; }
.mobile-sticky-cta a:nth-child(2) { background: var(--red); }
.mobile-sticky-cta a:nth-child(3) { background: var(--yellow); color: var(--dark); }

@media (max-width: 1080px) {
  .desktop-nav, .header-actions { display: none; }
  .mobile-menu-toggle { display: inline-flex; justify-self: end; }
  .nav-row { grid-template-columns: auto 1fr auto; }
  .hero-grid.simple, .simple-split, .simple-footer-cta, .simple-footer-grid { grid-template-columns: 1fr; }
  .locator-shell { justify-content: stretch; }
  .locator-card { max-width: none; }
  .action-grid, .cards-3 { grid-template-columns: 1fr 1fr; }
  .plans-section .pricing-grid-simple, .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-main { padding-top: 70px; }
  .nav-row { min-height: 70px; }
  .parallax-hero, .parallax-band { background-attachment: scroll; }
  .hero-minimal { padding: 34px 0 30px; }
  .hero-actions.compact { flex-direction: column; }
  .section { padding: 56px 0; }
  .action-strip { padding: 44px 0; }
  .mobile-sticky-cta { display: flex; }
  .site-footer { padding-bottom: 110px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  h1, .h1 { font-size: clamp(32px, 10.5vw, 48px); letter-spacing: -.028em; }
  h2 { font-size: clamp(26px, 8.2vw, 36px); }
  .lead { font-size: 16px; }
  .action-grid, .cards-3, .plans-section .pricing-grid-simple, .post-grid { grid-template-columns: 1fr; }
  .brand-logo img, .custom-logo { max-width: 178px; max-height: 40px; }
  .locator-card { padding: 18px; border-radius: 22px; }
}


/* v3 footer/button corrections */
.site-footer .btn-light,
.site-footer a.btn-light,
.footer-cta-actions .btn-light {
  background: #ffffff !important;
  color: var(--dark) !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.site-footer .btn-light:hover,
.site-footer a.btn-light:hover,
.footer-cta-actions .btn-light:hover {
  background: var(--yellow) !important;
  color: var(--dark) !important;
}
.footer-bottom { display: none !important; }
.footer-bottom-strip {
  background: #ffffff;
  color: var(--dark);
  border-top: 1px solid rgba(17,19,26,.12);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-bottom-inner p { margin: 0; color: #353a49; }
.footer-bottom-inner a {
  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
}
.footer-bottom-inner a:hover { color: var(--red); }
@media (max-width: 620px) {
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
