/*
Theme Name: JWS Geo Directory
Author: Jedi Web Services
Description: Lightweight theme for JWS GeoBoost location × keyword directory sites, modeled on the classic GeoBoost directory layout. Per-page data comes from post meta (pd_*).
Version: 2.0.0
Requires PHP: 8.0
Text Domain: jws-geo-directory
*/

:root {
	--brand: #1b8089;
	--brand-dark: #156a72;
	--brand-light: #5ab0b8;
	--footer: #00545e;
	--footer-dark: #003c43;
	--ink: #111111;
	--text: #333333;
	--line: #1b8089;
	--soft: #f6f8f8;
	--white: #ffffff;
	--gold: #f5c518;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', 'Helvetica', 'Arial', sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.section-title { color: var(--brand); font-weight: 500; font-size: 2em; text-align: center; margin: 0 0 28px; line-height: 1.25; }

.btn { display: inline-block; padding: 12px 34px; border-radius: 4px; background: var(--brand); color: var(--white); font-weight: 500; text-decoration: none; text-align: center; line-height: 1.3; border: 0; }
.btn:hover { background: var(--brand-dark); color: var(--white); }
.btn-wide { min-width: min(100%, 520px); padding: 14px 40px; }

.top { position: relative; background: #f4f4f4; overflow: hidden; }
.top::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-bg); background-size: cover; background-position: center top; opacity: .11; pointer-events: none; }
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; max-width: 1440px; }
.site-header .logo img { height: 100px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--brand); text-decoration: none; font-size: 18px; }
.site-nav a:hover { color: var(--brand-dark); }
.site-nav a.btn { color: var(--white); padding: 9px 30px; font-size: 18px; border-radius: 0; }

.hero { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hero h1 { font-size: 2.65em; line-height: 1.32; font-weight: 700; color: var(--ink); margin: 0 0 26px; }
.hero .brand-line { font-size: 1.2em; color: var(--ink); margin: 0 0 6px; }
.hero .tagline { margin: 0 0 24px; color: var(--text); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 15px; }
.hero .actions { flex-wrap: nowrap; }
.hero .actions .btn { flex: 1; min-width: 0; padding: 12px 18px; white-space: nowrap; }
@media (max-width: 1100px) { .hero .actions { flex-wrap: wrap; } }
.hero-img { position: relative; margin: 0 30px 30px 0; justify-self: end; max-width: 520px; }
.hero-img::before { content: ""; position: absolute; top: 30px; left: 30px; right: -30px; bottom: -30px; background: var(--brand); border-radius: 0 0 22px 0; }
.hero-img img { position: relative; width: 100%; height: auto; border-radius: 22px 0 22px 0; }

.breadcrumbs { font-size: 14px; padding: 16px 0 0; color: #666; }
.breadcrumbs a { color: #666; }

.main { padding: 20px 0 30px; }
.content { max-width: 880px; margin: 0 auto; }
.content h2 { font-size: 1.6em; color: var(--brand); font-weight: 500; line-height: 1.3; margin: 1.6em 0 .5em; clear: both; }
.content h3 { font-size: 1.25em; color: var(--ink); margin: 1.3em 0 .4em; }
.content p { margin: 0 0 1em; }
.content a { display: inline; margin: 0; padding: 0; }
.sec-img { float: right; width: 40%; max-width: 360px; margin: 6px 0 14px 26px; }
.sec-img img { width: 100%; height: auto; border-radius: 14px 0 14px 0; box-shadow: 10px 10px 0 var(--brand); }

.about-band { background: var(--brand-light); padding: 60px 0; }
.about-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.about-card .about-img { margin: 0; min-height: 100%; }
.about-card .about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-card .about-text { padding: 36px 40px; }
.about-card .section-title { margin-bottom: 18px; }
.about-card p { font-size: 15px; }

.services { padding: 60px 0 50px; }
.services-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 30px; }
.services-grid li { display: flex; }
.services-grid a { flex: 1; display: flex; align-items: center; gap: 14px; padding: 18px 26px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; }
.services-grid a::before { content: "✓"; color: var(--brand); font-weight: 700; font-size: 20px; }
.services-grid a:hover { background: var(--soft); color: var(--brand-dark); }

.cta-band { position: relative; padding: 46px 0; text-align: center; background: #222 var(--cta-bg) center / cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cta-band .wrap { position: relative; }
.cta-band p { color: var(--white); margin: 0 0 18px; font-size: 17px; }

.reviews-sec { padding: 60px 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.review { border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; margin: 0; text-align: center; background: var(--white); }
.review cite { display: block; font-style: normal; font-weight: 700; color: var(--ink); font-size: 17px; }
.review .stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; margin: 4px 0 10px; }
.review blockquote { margin: 0; font-style: italic; font-size: 14px; }

.map-sec { padding: 0 0 50px; }
.map-frame { position: relative; padding-top: 40%; overflow: hidden; border-radius: 6px; background: var(--soft); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }

.directory { padding: 10px 0 60px; }
.directory .section-title { text-align: left; }
.directory details { border: 1px solid #e3e3e3; border-bottom: 0; }
.directory details:last-of-type { border-bottom: 1px solid #e3e3e3; }
.directory summary { cursor: pointer; list-style: none; padding: 12px 18px; color: #1a35d6; font-size: 17px; display: flex; justify-content: space-between; }
.directory summary::-webkit-details-marker { display: none; }
.directory summary::after { content: "⌄"; color: #333; }
.directory details[open] summary::after { content: "⌃"; }
.directory .link-cols { list-style: none; margin: 0; padding: 8px 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; }
.directory .link-cols a { text-decoration: none; font-size: 15px; }
.directory .link-cols a:hover { text-decoration: underline; }

.site-footer { background: var(--footer); color: var(--white); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 36px; padding-top: 34px; padding-bottom: 34px; }
.site-footer h4 { font-size: 22px; font-weight: 500; margin: 0 0 14px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer .nap div { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.site-footer .hours { width: 100%; border-collapse: collapse; }
.site-footer .hours td { padding: 5px 0; }
.site-footer .hours td:last-child { text-align: right; }
.site-footer .social { text-align: right; }
.site-footer .social .icons { display: inline-flex; gap: 12px; }
.site-footer .social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--white); border-radius: 4px; }
.site-footer .bottom { background: var(--footer-dark); }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }

@media (max-width: 900px) {
	.site-header .logo img { height: 70px; }
	.site-nav .nav-link { display: none; }
	.hero .wrap, .about-card, .site-footer .cols { grid-template-columns: 1fr; }
	.hero h1 { font-size: 2em; }
	.hero-img { justify-self: center; }
	.services-grid, .reviews { grid-template-columns: 1fr; }
	.sec-img { float: none; width: 100%; max-width: none; margin: 0 0 1em; }
	.map-frame { padding-top: 75%; }
	.site-footer .social { text-align: left; }
}
