/*
Theme Name: Bridgepoint Exchange
Theme URI: https://www.bridgepoint-exchange.com
Author: Bridgepoint Exchange (LMH Group, LLC)
Description: Custom theme for Bridgepoint Exchange, a Section 1031 Qualified Intermediary. Includes Home, How It Works, and About & Contact pages, a contact form, a 45/180-day deadline calculator, and Customizer settings for contact details.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bridgepoint
*/

/* ---------- Design tokens ---------- */
:root {
  --navy: #344e64;
  --navy-deep: #26394a;
  --navy-soft: #4a6580;
  --taupe: #948b7e;
  --taupe-light: #c9c2b7;
  --sand: #f5f2ec;
  --sand-deep: #ebe6dd;
  --white: #ffffff;
  --ink: #223140;
  --ink-soft: #55636f;
  --line: #dcd6cc;
  --success: #2f6b4f;
  --error: #9b3b3b;
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(38, 57, 74, 0.10);
  --max: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, .hero__fee, .deadline__day, .fee-box__price, .card__num, .timeline__marker, .card__icon, .trustbar__item strong, .calc__result strong {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 0.6em 1em; z-index: 999; }
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #e9eef3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #d8e0e8; }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 14px;
  font-weight: 600;
}
.section--navy .eyebrow { color: var(--taupe-light); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 720px; }
.section--navy .lead { color: #c9d4de; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.rule { width: 64px; height: 2px; background: var(--taupe); border: 0; margin: 18px 0 26px; }
.center .rule { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  body { font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); text-decoration: none; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar {
  background: var(--navy);
  color: #d8e0e8;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__states { color: #b9c6d2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-logo img { height: 66px; width: auto; }
.site-logo { display: inline-block; line-height: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.site-nav a { font-weight: 500; font-size: 0.95rem; letter-spacing: 0.03em; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--navy); border-bottom-color: var(--taupe); text-decoration: none; }
.site-nav .menu-item-cta a { background: var(--navy); color: #fff; padding: 11px 20px; border-radius: var(--radius); border-bottom: 0; }
.site-nav .menu-item-cta a:hover { background: var(--navy-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; padding-bottom: 16px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .menu-item-cta a { text-align: center; margin-top: 8px; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .site-logo img { height: 52px; }
  .topbar__states { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(148,139,126,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #3f5b74 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .eyebrow { color: var(--taupe-light); }
.hero p.lead { color: #d3dde6; font-size: 1.22rem; margin-bottom: 34px; }
.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 30px 32px;
  backdrop-filter: blur(4px);
}
.hero__card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 18px; }
.hero__card ul { list-style: none; padding: 0; margin: 0; }
.hero__card li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.14); display: flex; gap: 12px; color: #e3e9ef; }
.hero__card li:first-child { border-top: 0; padding-top: 0; }
.hero__card li::before { content: "\2713"; color: var(--taupe-light); font-weight: 700; flex: none; }
.hero__fee { font-family: var(--serif); font-size: 2.4rem; color: #fff; line-height: 1; }
.hero__fee small { font-family: var(--sans); font-size: 0.85rem; color: #c9d4de; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 70px 0 64px; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--sand); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trustbar__item { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.trustbar__item:first-child { border-left: 0; }
.trustbar__item strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.trustbar__item span { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 860px) {
  .trustbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item:nth-child(3) { border-left: 0; }
  .trustbar__item { border-top: 1px solid var(--line); }
  .trustbar__item:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 30px;
  box-shadow: 0 2px 0 rgba(38,57,74,0.03);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 12px; }
.card__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--taupe);
  font-weight: 600;
}
.card__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sand); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
}
.section--navy .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); color: #dfe6ec; }
.section--navy .card h3 { color: #fff; }
.section--navy .card p { color: #cfd9e2; }

/* ---------- Deadlines ---------- */
.deadlines { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.deadline {
  border-radius: 10px; padding: 36px 34px;
  background: #fff; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.deadline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--taupe); }
.deadline--180::before { background: var(--navy); }
.deadline__day { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--navy); font-weight: 700; }
.deadline__day small { font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--taupe); display: block; margin-bottom: 8px; }
.deadline h3 { margin-top: 14px; }
@media (max-width: 760px) { .deadlines { grid-template-columns: 1fr; } }

/* ---------- Timeline (How It Works) ---------- */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 44px 84px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px #fff;
}
.timeline__marker--accent { background: var(--taupe); }
.timeline h3 { margin-bottom: 6px; }
.timeline .when { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); font-weight: 600; margin-bottom: 10px; display: block; }
@media (max-width: 640px) {
  .timeline::before { left: 21px; }
  .timeline li { padding-left: 66px; }
  .timeline__marker { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ---------- Page header ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; padding: 76px 0 64px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: #d3dde6; }
.page-hero .eyebrow { color: var(--taupe-light); }

/* ---------- Content blocks ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.callout {
  background: var(--sand);
  border-left: 5px solid var(--taupe);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0;
}
.callout--navy { background: var(--navy); color: #e4ebf1; border-left-color: var(--taupe-light); }
.callout--navy strong { color: #fff; }
.callout--warn { border-left-color: var(--error); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "\2713"; position: absolute; left: 6px; top: 10px; color: var(--taupe); font-weight: 700; }
.states { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.state {
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px;
  padding: 10px 22px; font-weight: 600; letter-spacing: 0.06em; color: #fff;
  background: rgba(255,255,255,0.06);
}
.state--more { border-style: dashed; color: #c9d4de; font-weight: 500; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; font-size: 1.05rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--taupe); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; color: var(--ink-soft); }
.fee-box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px;
  display: grid; grid-template-columns: 1fr; gap: 18px; box-shadow: var(--shadow);
}
.fee-box__price { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fee-box__price { font-family: var(--serif); font-size: 4.2rem; color: var(--navy); font-weight: 700; line-height: 1; }
.fee-box__price small { display: block; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); margin-top: 8px; font-weight: 600; }
@media (max-width: 760px) { .fee-box { padding: 28px; } }
.entry-content { max-width: 760px; }
.entry-content h2 { margin-top: 1.4em; }

/* ---------- Calculator ---------- */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: var(--shadow);
}
.calc label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.calc input[type="date"] {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; max-width: 320px;
}
.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.calc__result { background: var(--sand); border-radius: var(--radius); padding: 20px; }
.calc__result span { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); font-weight: 600; }
.calc__result strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin-top: 6px; }
.calc__note { font-size: 0.88rem; color: var(--ink-soft); margin: 18px 0 0; }
@media (max-width: 560px) { .calc__results { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe); font-weight: 600; margin-top: 22px; }
.contact-info dd { margin: 4px 0 0; font-size: 1.1rem; }
.contact-info dd a { font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.form label .req { color: var(--error); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy-soft); outline-offset: 1px; border-color: var(--navy-soft); }
.form__consent { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 18px; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; }
.notice--ok { background: #e6f2ec; color: var(--success); border: 1px solid #bfdccc; }
.notice--err { background: #f8e8e8; color: var(--error); border: 1px solid #e6c4c4; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c6d2; padding: 64px 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #e3e9ef; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo img { width: 240px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 44px; padding-top: 22px; font-size: 0.82rem; color: #8fa1b3; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-disclaimer { font-size: 0.82rem; color: #8fa1b3; margin-top: 22px; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WordPress defaults ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-soft); }
.sticky {}
.bypostauthor {}
.gallery-caption {}
