/*
Theme Name: Spring Home Search
Theme URI: https://springhomesearch.com
Author: Bruno Real Estate Group
Author URI: https://springhomesearch.com
Description: A premium, high-end real estate theme for Spring Home Search — Spring, Texas real estate. Navy & Gold design with IDX integration, animated hero, neighborhood sections, and a fully branded experience.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private
Text Domain: springhomesearch
Tags: real-estate, one-column, two-columns, custom-menu, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments
*/

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --navy-light: #1a3255;
  --gold:       #C9A84C;
  --gold-light: #e0c270;
  --gold-pale:  #f5e9c8;
  --cream:      #fdf8f0;
  --white:      #ffffff;
  --text:       #1a2a3a;
  --text-mid:   #4a5a6e;
  --text-light: #7a8da0;
  --border:     rgba(10,22,40,0.09);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow-sm:  0 2px 12px rgba(10,22,40,0.07);
  --shadow-md:  0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg:  0 24px 64px rgba(10,22,40,0.16);
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1.25rem; color: var(--text-mid); line-height: 1.75; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--text); }
em { color: var(--gold); font-style: italic; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 16px auto 0; }
.section-header-left { text-align: left; margin-bottom: 48px; }
.section-header-left .section-sub { margin: 16px 0 0; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,168,76,0.38);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-lg { padding: 18px 42px; font-size: 0.9rem; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.transparent { background: transparent; }
.site-header.scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; fill: var(--navy); }
.logo-text {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-text span { color: var(--gold); }
.main-navigation ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-navigation ul li a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
}
.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.main-navigation ul li a:hover { color: var(--gold); }
.main-navigation ul li a:hover::after { transform: scaleX(1); }
.nav-cta-wrap { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--gold); }

/* ─── INTERIOR PAGE HEADER (non-homepage) ───────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}
.page-header .page-description {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.breadcrumbs {
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumbs a { color: rgba(255,255,255,0.55); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 8px; }

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.site-main { min-height: 60vh; }
.entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 48px;
}
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  list-style: disc;
  color: var(--text-mid);
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 2rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.entry-content blockquote p { color: var(--navy); margin: 0; }
.entry-content img { border-radius: var(--radius); margin: 2rem 0; }
.entry-content a { color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.3); }
.entry-content a:hover { border-color: var(--gold); }
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.entry-content th { background: var(--cream); font-weight: 600; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── FULL-WIDTH PAGE TEMPLATE ───────────────────────────────── */
.page-template-full-width .entry-content { max-width: 100%; padding: 0; }

/* ─── BLOG / ARCHIVE ─────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 28px; }
.post-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.post-card-title { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; line-height: 1.35; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; margin-bottom: 20px; }
.post-card-meta { font-size: 0.78rem; color: var(--text-light); display: flex; gap: 12px; align-items: center; }
.post-card-meta .sep { color: var(--border); }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.widget { margin-bottom: 48px; }
.widget-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.widget ul li a { color: var(--text-mid); text-decoration: none; }
.widget ul li a:hover { color: var(--gold); }

/* ─── SINGLE POST ────────────────────────────────────────────── */
.post-hero-image { aspect-ratio: 21/9; overflow: hidden; }
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.post-meta-item { font-size: 0.82rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy-light);
  background: var(--cream);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
}
.post-tag:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 64px 0 32px;
}
.page-numbers {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
}

/* ─── GOLD DIVIDER ───────────────────────────────────────────── */
.gold-divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  margin: 0 auto 24px;
}
.gold-divider-left { margin: 0 0 24px; }

/* ─── CARDS & PANELS ─────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.panel-navy {
  background: var(--navy);
  border-color: transparent;
  color: var(--white);
}
.panel-cream {
  background: var(--cream);
  border-color: transparent;
}

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.02em; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
textarea { min-height: 140px; resize: vertical; }

/* ─── COMMENT FORM ───────────────────────────────────────────── */
.comment-form-wrap { max-width: 780px; margin: 0 auto; padding: 64px 48px; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.5rem; margin-bottom: 32px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #060d18;
  color: rgba(255,255,255,0.6);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 280px;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 24px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.47);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── ACCESSIBILITY ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px; left: -999px;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 0; left: 24px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 32px 48px; }
  .footer-bottom { padding: 24px 32px; }
  .content-sidebar-wrap { grid-template-columns: 1fr; padding: 60px 32px; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .main-navigation { display: none; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .entry-content { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; padding: 48px 24px 32px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
}
