/*
Theme Name: Susquehanna Local
Theme URI: https://susquehannalocal.com
Author: OpenAI
Description: A warm, community-first local business directory starter theme inspired by Susquehanna County.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: susquehanna-local
*/

:root {
  --navy: #103451;
  --ink: #17334c;
  --muted: #667789;
  --green: #2d6b3a;
  --green-dark: #1f522d;
  --gold: #d99524;
  --cream: #f8f7f2;
  --line: #e7ece8;
  --shadow: 0 16px 42px rgba(20, 50, 70, .09);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; color: var(--navy); font: 700 clamp(28px, 3vw, 40px)/1.05 Georgia, serif; }
.section-link { color: var(--navy); font-size: 13px; font-weight: 800; white-space: nowrap; }
.section-link::after { content: " →"; color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16, 52, 81, .14); }
.button-green { background: var(--green); color: #fff; }
.button-gold { background: var(--gold); color: #fff; }
.button-light { background: #fff; color: var(--navy); }

.site-header { position: relative; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(16,52,81,.08); }
.header-inner { display: flex; align-items: center; min-height: 68px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 38px; height: 40px; color: var(--green); }
.brand-name { color: var(--navy); font: 700 23px/1 Georgia, serif; }
.brand-tagline { display: block; margin-top: 4px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.primary-nav { display: flex; align-items: center; gap: 27px; font-size: 12px; font-weight: 700; }
.primary-nav a { padding: 26px 0; }
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--green); border-bottom: 2px solid var(--green); }
.header-search { font-size: 20px; }
.header-cta { min-height: 38px; padding: 0 18px; }

.hero { min-height: 475px; display: flex; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(11,38,54,.82) 0%, rgba(11,38,54,.52) 47%, rgba(11,38,54,.14) 100%), url('https://images.unsplash.com/photo-1473445361085-b9a07f55608b?auto=format&fit=crop&w=1900&q=85') center/cover; }
.hero-content { width: min(680px, 100%); padding: 76px 0 82px; }
.hero .eyebrow { color: #f6c568; }
.hero h1 { margin: 0 0 12px; font: 700 clamp(42px, 5.7vw, 72px)/.98 Georgia, serif; letter-spacing: -.035em; }
.hero h1 em { color: #f2b547; font-style: normal; }
.hero-lede { max-width: 560px; margin: 0 0 24px; font-size: 17px; line-height: 1.45; }
.directory-search { display: flex; max-width: 660px; padding: 5px; background: #fff; border-radius: 9px; box-shadow: 0 15px 30px rgba(0,0,0,.18); }
.directory-search input, .directory-search select { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 15px; color: var(--ink); font: inherit; }
.directory-search select { max-width: 190px; border-left: 1px solid var(--line); }
.directory-search .button { min-width: 110px; }
.hero-proof { display: flex; gap: 30px; margin-top: 22px; font-size: 12px; font-weight: 700; }
.hero-proof span::before { content: "✦"; margin-right: 8px; color: #f2b547; }

.category-strip { position: relative; z-index: 2; margin-top: -1px; padding: 22px 0 36px; background: var(--cream); }
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 13px; }
.category-card { padding: 13px 8px 15px; text-align: center; border: 1px solid rgba(16,52,81,.06); border-radius: 9px; background: #fff; box-shadow: 0 7px 22px rgba(20,50,70,.05); }
.category-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; color: #fff; background: var(--green); font-size: 20px; }
.category-card:nth-child(3n) .category-icon { background: var(--gold); }
.category-card:nth-child(4n) .category-icon { background: #29699c; }
.category-card span:last-child { display: block; font-size: 11px; font-weight: 800; }

.section { padding: 58px 0; }
.section-cream { background: var(--cream); }
.listing-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 8px 22px rgba(20,50,70,.04); }
.listing-image { position: relative; height: 132px; overflow: hidden; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-image img { transform: scale(1.05); }
.heart { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--navy); background: #fff; font-size: 14px; }
.listing-body { padding: 12px; }
.listing-title { margin: 0 0 7px; font-size: 13px; }
.rating { margin-bottom: 6px; color: #f3a900; font-size: 12px; letter-spacing: -2px; }
.rating small { margin-left: 3px; color: var(--muted); letter-spacing: 0; }
.location { color: var(--muted); font-size: 10px; }
.pill { display: inline-block; margin-top: 9px; padding: 4px 8px; border-radius: 99px; color: var(--green); background: #e8f1e9; font-size: 10px; font-weight: 700; }

.how-it-works { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 70px; }
.how-it-works h2 { margin: 0; font: 700 38px/1 Georgia, serif; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding-left: 51px; }
.step-number { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--navy); font-size: 12px; font-weight: 800; }
.step h3 { margin: 2px 0 6px; font-size: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.explore { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; }
.explore-copy h2 { margin: 0 0 13px; font: 700 38px/1.05 Georgia, serif; }
.explore-copy p { max-width: 400px; color: var(--muted); line-height: 1.5; }
.town-list { display: grid; gap: 9px; margin: 24px 0; }
.town { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(20,50,70,.04); }
.town img { width: 52px; height: 36px; border-radius: 4px; object-fit: cover; }
.town strong { display: block; font-size: 12px; }
.town small { color: var(--muted); font-size: 10px; }
.map-card { position: relative; min-height: 310px; border-radius: 18px; background: linear-gradient(135deg, #dceccf 0%, #b8d9d5 55%, #e9f0d3 100%); overflow: hidden; }
.map-card::before { content: ""; position: absolute; inset: 13% 11%; border: 2px dashed rgba(39,104,107,.4); border-radius: 45% 55% 50% 40%; transform: rotate(-8deg); }
.map-label { position: absolute; inset: 44% 25%; display: grid; place-items: center; color: rgba(27,92,103,.65); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-align: center; }
.pin { position: absolute; color: #fff; background: var(--navy); width: 25px; height: 25px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 9px rgba(0,0,0,.18); }
.pin::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pin:nth-child(1) { left: 27%; top: 30%; }.pin:nth-child(2) { left: 56%; top: 23%; }.pin:nth-child(3) { left: 72%; top: 55%; }.pin:nth-child(4) { left: 38%; top: 65%; }

.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.recent-card { display: flex; min-height: 105px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(20,50,70,.05); }
.recent-card img { width: 108px; object-fit: cover; }
.recent-card .listing-body { padding: 12px 10px; }

.owner-cta { padding: 42px 0; color: #fff; background: linear-gradient(90deg, rgba(12,52,74,.94), rgba(12,52,74,.72)), url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1800&q=80') center/cover; }
.owner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.owner-cta h2 { margin: 0 0 8px; font: 700 32px Georgia, serif; }
.owner-cta p { margin: 0; color: rgba(255,255,255,.8); }

.site-footer { color: #d7e2e7; background: #0d2c40; }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.1fr; gap: 50px; padding: 50px 0 35px; }
.footer-main h3 { margin: 0 0 17px; color: #fff; font-size: 12px; }
.footer-main p, .footer-main a { color: #b9cbd2; font-size: 11px; line-height: 1.7; }
.footer-links { display: grid; gap: 4px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { max-width: 230px; margin-top: 18px; }
.subscribe { display: flex; gap: 5px; margin-top: 12px; }
.subscribe input { width: 160px; padding: 10px; border: 0; border-radius: 5px; font-size: 11px; }
.subscribe .button { min-height: 35px; padding: 0 12px; font-size: 10px; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); color: #99b1bc; font-size: 10px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) { .primary-nav { display: none; } .category-grid { grid-template-columns: repeat(4, 1fr); } .listing-grid { grid-template-columns: repeat(3, 1fr); } .how-it-works, .explore { grid-template-columns: 1fr; gap: 28px; } .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .container { width: min(100% - 28px, 1180px); } .brand-name { font-size: 18px; } .header-cta { padding: 0 11px; font-size: 11px; } .hero { min-height: 560px; } .hero-content { padding: 55px 0; } .hero h1 { font-size: 48px; } .directory-search { display: grid; gap: 5px; padding: 8px; } .directory-search input, .directory-search select { max-width: none; min-height: 40px; border: 0; border-bottom: 1px solid var(--line); } .directory-search .button { width: 100%; } .hero-proof { flex-wrap: wrap; gap: 10px 20px; } .category-grid { grid-template-columns: repeat(2, 1fr); } .listing-grid, .recent-grid { grid-template-columns: repeat(2, 1fr); } .listing-image { height: 110px; } .recent-card { display: block; } .recent-card img { width: 100%; height: 100px; } .owner-inner, .footer-bottom-inner { display: grid; } .footer-main { grid-template-columns: 1fr; gap: 28px; } }
