/* inheritedhomesandiego.com
   Brand system shared with gerrycarrillo.com: navy, white, gold. */

:root {
  --navy: #0a1f44;
  --navy-2: #13306a;
  --navy-soft: #eef2f9;
  --gold: #c9a84c;
  --gold-dark: #a8872f;
  --gold-soft: #f8f2e2;
  --ink: #1d2433;
  --muted: #5a6478;
  --line: #dfe4ee;
  --white: #ffffff;
  --bg: #fbfaf7;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(10, 31, 68, 0.10);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: .8em;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Top bar */
.topbar { background: var(--navy); color: #dbe3f3; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { white-space: nowrap; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 700; }
.brand-sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--navy-soft); }
.nav .lang { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 1rem; color: var(--navy); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-family: var(--sans);
  padding: 14px 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.nav .btn { padding: 10px 16px; margin-left: 6px; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(201,168,76,.22), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: 84px 0 92px;
}
.hero h1 { color: var(--white); }
.hero .lead { color: #d5ddee; }
.hero .eyebrow { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; }
.hero-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.hero-card h2 { font-size: 1.45rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .95rem; color: #d5ddee; }
.trust-row span::before { content: "\2713"; color: var(--gold); font-weight: 700; margin-right: 8px; }

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #d5ddee; max-width: 760px; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { font-size: .85rem; color: #aebbd6; margin-bottom: 14px; }
.crumbs a { color: #d5ddee; }

/* Sections */
section { padding: 76px 0; }
.alt { background: var(--white); }
.soft { background: var(--navy-soft); }
.gold-band { background: var(--gold-soft); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(10,31,68,.04); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more::after { content: " \2192"; }
.card-accent { border-top: 4px solid var(--gold); }
.icon { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 78px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; display: grid; place-items: center;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* Checklist */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; }
.check li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 700; }

/* Callouts */
.callout { border-left: 5px solid var(--gold); background: var(--white); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout strong { color: var(--navy); }
.note { font-size: .9rem; color: var(--muted); background: var(--navy-soft); border-radius: 8px; padding: 14px 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat { background: var(--white); border-radius: var(--radius); padding: 22px 12px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); }
.stat span { font-size: .9rem; color: var(--muted); }

/* Quote */
.quote { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.5; }
.quote-by { margin-top: 12px; font-size: .95rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 52px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.5rem; color: var(--gold-dark); }
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 22px 18px; color: var(--ink); }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c9d1e0; border-radius: 8px; font: inherit; font-size: 1rem;
  background: var(--white); color: var(--ink); margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201,168,76,.4); border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.form-fine { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.hidden-field { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; font-weight: 400; color: var(--muted); }
.consent input { width: auto; margin: 4px 0 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d5ddee; max-width: 680px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* Bio */
.bio-badge { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy), var(--navy-2)); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 4.5rem; box-shadow: var(--shadow); overflow: hidden; }
.bio-badge img { width: 100%; height: 100%; object-fit: cover; }
.credentials { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.credentials b { color: var(--navy); }

/* Network band: links to gerrycarrillo.com */
.network { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0; }
.network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.network h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.net-cards { display: grid; gap: 12px; }
.net-card { display: block; text-decoration: none; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 14px 18px; background: var(--bg); transition: transform .15s ease, box-shadow .15s ease; }
.net-card:hover { transform: translateX(3px); box-shadow: 0 6px 18px rgba(10,31,68,.08); }
.net-card b { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.1rem; }
.net-card b::after { content: " \2192"; color: var(--gold-dark); }
.net-card span { color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .network-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #07162f; color: #b9c4da; font-size: .95rem; padding: 56px 0 28px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #dbe3f3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--serif); color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.tagline { color: var(--gold); font-weight: 600; }
.legal { border-top: 1px solid #1f3260; margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #8f9cb8; }
.legal p { margin-bottom: .6em; }
.eho { display: inline-flex; align-items: center; gap: 8px; }

/* Mobile call bar */
.call-bar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .site-header .container { position: relative; }
}
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 64px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-2, .grid-3, .grid-4, .footer-grid, form .row { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .stat { min-width: 0; padding: 18px 8px; }
  .stat b { font-size: 1.55rem; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .call-bar a { text-align: center; padding: 16px 8px; font-weight: 700; text-decoration: none; }
  .call-bar .c1 { background: var(--navy); color: var(--white); }
  .call-bar .c2 { background: var(--gold); color: var(--navy); }
}
