/*
Theme Name: IDX Pro 2026
Theme URI: https://www.idx-pro.com/
Author: Carolinas Coastline Technologies, LLC
Description: Custom hand-coded theme for IDX Pro — lead-generating IDX websites for real estate agents and brokers. Built for the Classic Editor, no page builders.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: idx-pro-2026
*/

:root {
  --navy: #1e3a5c;
  --navy-deep: #162c47;
  --blue: #2f6fb5;
  --blue-dark: #265d99;
  --green: #85b03a;
  --green-dark: #6e9430;
  --ink: #1f2733;
  --text: #4a5568;
  --muted: #8a94a3;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #e3e9f0;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(30, 58, 92, 0.10);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn, .entry-content .btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff !important; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid rgba(255,255,255,.7); color: #fff !important; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(30,58,92,.06);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}
.site-logo img { display: block; max-height: 44px; width: auto; }
.site-logo .logo-text { font-size: 1.5rem; font-weight: 800; }
.site-logo .logo-text .idx { color: var(--green); }
.site-logo .logo-text .pro { color: var(--blue); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.header-cta { white-space: nowrap; padding: 10px 22px; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #2b4f7d 100%);
  color: #d7e2ee;
  padding: 96px 0 88px;
}
.hero h1 { color: #fff; max-width: 720px; margin-bottom: 0.4em; }
.hero .lede { font-size: 1.25rem; max-width: 640px; margin: 0 0 1.8em; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .accent { color: var(--green); }

/* Trust bar */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.trustbar .wrap {
  display: flex; gap: 12px 40px; flex-wrap: wrap; justify-content: center;
  padding-top: 18px; padding-bottom: 18px;
  font-size: .95rem; color: var(--muted); font-weight: 500;
}

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Services grid */
.services-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(47,111,181,.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-weight: 800; font-size: 1.1rem;
}
.service-card p { margin: 0; font-size: .97rem; }

/* Portfolio */
.work-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.work-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none !important;
  transition: box-shadow .2s ease, transform .2s ease;
}
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work-card .thumb {
  aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%);
}
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .thumb .ph {
  color: #fff; font-weight: 700; font-size: 1.2rem; padding: 0 18px; text-align: center;
}
.work-card .meta { padding: 18px 20px; }
.work-card .meta h3 { margin: 0 0 4px; font-size: 1.05rem; }
.work-card .meta span { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: #d7e2ee; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .phone { font-size: 1.6rem; font-weight: 700; color: var(--green); display: block; margin: 10px 0 26px; }

/* Content pages */
.page-hero {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin: 0; font-size: 2rem; }
.entry-content { max-width: 820px; margin: 0 auto; padding: 56px 24px 84px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .45em; }

/* Content tables (incl. legacy .mls-idx-data-update tables) */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  font-size: .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30,58,92,.06);
}
.entry-content table caption {
  caption-side: top;
  background: #e7f0fa;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.entry-content table caption + * { border-radius: 0; }
.entry-content th,
.entry-content thead td {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 12px 18px;
  border: 0;
  white-space: nowrap;
}
.entry-content td {
  padding: 10px 18px;
  text-align: center;
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  white-space: nowrap;
}
.entry-content tbody tr:nth-child(even) td { background: var(--bg-soft); }
.entry-content tbody tr:hover td { background: #eaf3e0; }
/* Tables break out of the 820px text column: sized to content, centered, capped near site width */
@media (min-width: 701px) {
  .entry-content table {
    width: max-content;
    min-width: 100%;
    max-width: min(var(--maxw), calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 700px) {
  .entry-content table { display: block; overflow-x: auto; width: 100%; max-width: 100%; }
}

/* Gravity Forms light polish */
.gform_wrapper input[type=text], .gform_wrapper input[type=email], .gform_wrapper input[type=tel],
.gform_wrapper textarea, .gform_wrapper se