/* Shared styles for ericsellsmt.com content pages (About, Buy, Sell, Contact, and future pillar pages).
   Tokens match the homepage so every page reads as one site. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F7F3EE; --cream2: #EFE9E1; --sage: #7A9B87; --sage-dk: #5A7A67; --gold: #C4A46B;
  --charcoal: #1C1C1C; --mid: #5A5A5A; --light: #8A8A8A; --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,.07); --shadow-lg: 0 12px 48px rgba(0,0,0,.10);
  --radius: 16px; --radius-sm: 10px;
  --ff-head: 'Playfair Display', Georgia, serif; --ff-body: 'Inter', system-ui, sans-serif;
  --max: 1100px; --px: clamp(16px, 5vw, 64px);
}
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--cream); color: var(--charcoal); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-dk); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,243,238,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cream2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 18px; list-style: none; }
.nav a { white-space: nowrap; font-size: 14px; color: var(--mid); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--charcoal); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 50px; padding: 13px 26px; font-size: 15px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: inherit; }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: var(--sage-dk); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 24px; margin: 5px auto; background: var(--charcoal); }
.mobile-nav { display: none; }
@media (max-width: 1240px) {
  .nav, .site-header .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--px) 20px; border-top: 1px solid var(--cream2); }
  .mobile-nav a { padding: 10px 0; color: var(--charcoal); text-decoration: none; font-weight: 500; }
  .mobile-nav .btn { margin-top: 8px; color: var(--white); }
}

/* Page hero */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dk); margin-bottom: 14px; }
h1 { font-family: var(--ff-head); font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; font-weight: 700; margin-bottom: 18px; }
h1 em { color: var(--sage); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--mid); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid .photo { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; }
.hero-grid .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .photo { max-width: 360px; } }

/* Sections */
section.block { padding: clamp(44px, 7vw, 80px) 0; }
section.alt { background: var(--white); }
h2 { font-family: var(--ff-head); font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin-bottom: 14px; }
h3 { font-family: var(--ff-head); font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.bar { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 4px 0 24px; }
p + p { margin-top: 14px; }
.prose p, .prose li { font-size: 17px; color: #3d3d3d; }
.prose ul { margin: 12px 0 0 20px; }
.prose li + li { margin-top: 6px; }
.quote { font-family: var(--ff-head); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45; font-style: italic; color: var(--charcoal); border-left: 3px solid var(--gold); padding-left: 22px; margin: 8px 0 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.card { background: var(--cream); border-radius: var(--radius-sm); padding: 26px; }
section.block:not(.alt) .card { background: var(--white); box-shadow: var(--shadow); }
.card p { font-size: 15px; color: var(--mid); }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--sage-dk); }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { position: relative; background: var(--cream); border-radius: var(--radius-sm); padding: 22px 22px 22px 76px; }
section.block:not(.alt) .step { background: var(--white); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--sage); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-family: var(--ff-body); font-size: 17px; font-weight: 700; }
.step p { font-size: 15px; color: var(--mid); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fact { background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); }
.fact dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--light); }
.fact dd { font-size: 16px; font-weight: 600; margin-top: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.rounded { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.note { background: rgba(122,155,135,.10); border-left: 4px solid var(--sage); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; font-size: 15px; color: #3d3d3d; margin-top: 20px; }
.sources { font-size: 13px; color: var(--light); margin-top: 24px; }
.sources a { color: var(--mid); }
.updated { font-size: 13px; color: var(--light); margin-top: 10px; }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.form-grid .field { margin-top: 0; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); }
.field input, .field select, .field textarea { width: 100%; background: var(--cream); border: 1.5px solid #D6CEC4; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; color: var(--charcoal); font-family: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-fine { font-size: 12px; color: var(--light); text-align: center; margin-top: 10px; }
.success { display: none; text-align: center; padding: 20px 0; }
.success h3 { margin-top: 8px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-out { background: var(--charcoal); color: var(--white); border-radius: var(--radius); padding: 32px; }
.calc-out .big { font-family: var(--ff-head); font-size: clamp(40px, 6vw, 54px); font-weight: 700; line-height: 1; margin: 6px 0 24px; }
.calc-out .row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; color: rgba(255,255,255,.75); }
.calc-out .row b { color: var(--white); }
.calc-out small { display: block; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.5); }
.tabs { display: inline-flex; background: var(--cream2); border-radius: 50px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.tabs button { border: 0; border-radius: 50px; padding: 10px 20px; font-weight: 600; font-size: 14px; background: transparent; color: var(--mid); cursor: pointer; font-family: inherit; }
.tabs button[aria-selected="true"] { background: var(--charcoal); color: var(--white); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--sage); color: var(--white); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 540px; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-dark { background: var(--white); color: var(--sage-dk); }
.cta-band .btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.65); padding: 56px 0 32px; font-size: 14px; margin-top: clamp(44px, 7vw, 80px); }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 12px; font-weight: 600; }
.foot-grid li { list-style: none; margin-bottom: 8px; }
.foot-logo { background: var(--white); border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 12px; }
.foot-logo img { height: 64px; width: auto; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Data table */
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
table.data th, table.data td { padding: 12px 18px; text-align: right; border-bottom: 1px solid var(--cream2); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { background: var(--charcoal); color: var(--white); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:last-child { font-weight: 600; }

.prose p.sources, .prose p.updated { font-size: 13px; color: var(--light); }
.prose p.note { font-size: 15px; }
