/*
Theme Name: Gallatin Local Authority
Theme URI: https://gallatintnhomesforsale.com/
Author: GallatinTNHomesForSale.com
Description: Launch-focused local real estate resource theme for Gallatin, Tennessee.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: gallatin-local
*/

:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --cream: #f7f2e8;
  --paper: #fffdf9;
  --green: #526b57;
  --green-2: #e5ece5;
  --copper: #a9542b;
  --ink: #17212b;
  --muted: #5e6b75;
  --line: #d9d6cf;
  --white: #fff;
  --shadow: 0 16px 40px rgba(16,42,67,.10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: var(--navy-2); text-underline-offset: .2em; }
a:hover { color: var(--copper); }
img { max-width: 100%; height: auto; }
h1,h2,h3 { margin: 0 0 .65rem; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
button,input,select,textarea { font: inherit; }
:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10000; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--white); color: var(--navy); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.utility { background: var(--navy); color: #eaf0f5; font-size: .78rem; letter-spacing: .03em; }
.utility .wrap { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.utility-items { display: flex; flex-wrap: wrap; gap: 1rem; }
.utility a { color: white; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,249,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { color: var(--navy); text-decoration: none; font-weight: 900; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.brand small { display: block; color: var(--green); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: white; padding: .65rem .85rem; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 750; white-space: nowrap; }
.main-nav .nav-cta { padding: .7rem 1rem; color: white; background: var(--copper); border-radius: 999px; }
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0 4.5rem; background: var(--cream); }
.hero:after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -100px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), rgba(82,107,87,.18)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow { margin-bottom: .85rem; color: var(--copper); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 900; }
.lede { color: #384957; font-size: 1.13rem; max-width: 66ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--navy); color: white; text-decoration: none; font-weight: 850; cursor: pointer; }
.button:hover { color: white; background: var(--copper); border-color: var(--copper); }
.button.secondary { color: var(--navy); background: transparent; }
.button.secondary:hover { color: white; }
.trust-line { margin-top: 1.4rem; color: var(--green); font-weight: 750; font-size: .9rem; }
.photo-placeholder { min-height: 390px; display: grid; place-items: end start; padding: 1.4rem; color: white; background: linear-gradient(145deg, rgba(16,42,67,.2), rgba(16,42,67,.78)), linear-gradient(25deg, #8fa38d, #d7c7a8 52%, #718390); border-radius: 30px 30px 80px 30px; box-shadow: var(--shadow); }
.photo-placeholder span { max-width: 28ch; padding: .65rem .8rem; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; background: rgba(16,42,67,.78); font-size: .75rem; }
.search-panel { position: relative; z-index: 2; margin-top: -2rem; padding: 1.3rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-panel h2 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .82rem; font-weight: 800; }
.field input,.field select,.field textarea { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid #aeb6bc; border-radius: 8px; background: white; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }
.notice { margin: 1rem 0; padding: 1rem; border-left: 4px solid var(--green); background: var(--green-2); }
.admin-note { padding: .8rem; border: 1px dashed var(--copper); border-radius: 8px; color: #713a22; background: #fff8f1; font-size: .83rem; }
.section { padding: clamp(3.8rem, 8vw, 6.7rem) 0; }
.section.alt { background: var(--cream); }
.section.dark { color: #eaf0f5; background: var(--navy); }
.section.dark h2,.section.dark h3,.section.dark a { color: white; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p:last-child { color: #c8d4de; }
.local-copy { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: start; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { height: 100%; padding: 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: white; transition: transform .18s ease, border-color .18s ease; }
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card:hover { transform: translateY(-3px); border-color: var(--copper); }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card .arrow { color: var(--copper); font-weight: 900; }
.stat { min-height: 120px; }
.stat strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; }
.listing-card { overflow: hidden; padding: 0; }
.listing-image { min-height: 175px; display: grid; place-items: center; background: #e8e6df; color: var(--muted); font-size: .82rem; }
.listing-body { padding: 1.25rem; }
.listing-badge { display: inline-block; margin-bottom: .6rem; padding: .25rem .55rem; border-radius: 999px; background: var(--green-2); color: var(--green); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cta-panel { padding: 2rem; border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.section.dark .cta-panel { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.breadcrumbs { padding: 1rem 0; font-size: .83rem; color: var(--muted); }
.page-hero { padding: 4rem 0; background: var(--cream); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.prose { max-width: 800px; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.6rem; }
.authority-copy { margin-bottom: 2rem; }
.section > .wrap > .wp-block-heading,
.section > .wrap > .wp-block-list,
.section > .wrap > .wp-block-details,
.section > .wrap > p { max-width: 800px; }
.wp-block-details { margin: .75rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wp-block-details summary { color: var(--navy); font-weight: 850; cursor: pointer; }
.wp-block-details p { margin: .75rem 0 0; color: var(--muted); }
.source-box { margin: 2rem 0; padding: 1.5rem; border-left: 5px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; background: var(--green-2); }
.source-box h2 { font-size: 1.65rem; }
.source-box li { margin: .4rem 0; }
.faq-block,.related-block { margin-top: 3.5rem; }
.faq-block details { margin: .75rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.faq-block summary { color: var(--navy); font-weight: 850; cursor: pointer; }
.faq-block details p { margin: .75rem 0 0; color: var(--muted); }
.check-list { padding-left: 1.2rem; }
.check-list li { margin-bottom: .45rem; }
.site-footer { padding: 4rem 0 2rem; color: #dbe5ec; background: #0a1b2a; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; }
.site-footer h2 { overflow-wrap: anywhere; }
.site-footer h2,.site-footer h3 { color: white; }
.site-footer h3 { font: 800 .85rem/1.2 system-ui; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { display: block; margin: .35rem 0; color: #dbe5ec; text-decoration: none; }
.disclosure { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); color: #aebdca; font-size: .78rem; }
.menu-open { overflow: hidden; }

@media (max-width: 1500px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 1rem; align-items: stretch; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .55rem; }
}

@media (max-width: 1000px) {
  .hero-grid,.local-copy { grid-template-columns: 1fr; }
  .photo-placeholder { min-height: 280px; }
  .form-grid,.grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body.admin-bar .site-header { top: 46px; }
  .utility .wrap { padding: .45rem 0; align-items: flex-start; }
  .utility-items span:nth-child(2) { display: none; }
  .hero { padding-top: 3.5rem; }
  .hero:after { width: 360px; height: 360px; right: -80px; }
  .search-panel { margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .form-grid,.grid.two,.grid.three,.grid.four,.split,.footer-grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .section { padding: 3.7rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
