/*
  styles-shared.css
  Shared base styles for all Will Morrison Real Estate pages.
  Loaded by: index.html, buyer-guide.html, seller-guide.html, north-georgia-guide.html, portal.html
  To update design system-wide, edit this file only.
*/

:root {
  --green: #1a3328;
  --green-mid: #2a5040;
  --green-light: #3d7058;
  --sage: #8aab96;
  --gold: #c4781a;
  --gold-light: #d4901a;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d2;
  --cream-darker: #d4c9b5;
  --white: #ffffff;
  --off-white: #fafaf8;
  --charcoal: #1e1e1e;
  --text: #2c2c2c;
  --text-mid: #555555;
  --text-light: #888888;
  --amber: #c8851a;
  --crim: #a82318;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; font-weight: 300; color: var(--text); background: var(--white); }
img { max-width: 100%; }

/* ── TYPOGRAPHY SHARED ── */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.serif-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1;
}
.serif-heading em { font-style: italic; font-weight: 400; }
.gold-rule { width: 36px; height: 2px; background: var(--gold); margin-bottom: 22px; }

/* ── BUTTONS SHARED ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 2px;
  background: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 2px;
  background: var(--green);
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-green:hover { background: var(--green-mid); }

/* ── FORMS SHARED ── */
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-input {
  background: var(--off-white);
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
  padding: 11px 13px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea.form-input { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%;
  margin-top: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: var(--white);
  transition: background 0.2s;
}
.form-submit:hover { background: var(--green-mid); }

/* ── MODAL SHARED ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 4px;
  padding: 36px;
  max-width: 440px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-light);
}

/* ── GUIDE PAGE NAV (buyer/seller/north-ga guide pages) ── */
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 72px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-nav-logo em { font-style: italic; font-weight: 400; }
.guide-nav-back {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.guide-nav-back:hover { color: var(--gold); }
.guide-nav-cta {
  padding: 10px 20px;
  border-radius: 2px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.guide-nav-cta:hover { background: var(--gold-light); }

/* ── GUIDE PAGE HERO / BODY ── */
.guide-hero {
  background: var(--green);
  padding: 80px 72px 72px;
}
.guide-hero-dark { background: var(--charcoal); }
.guide-hero-photo {
  position: relative;
  overflow: hidden;
}
.guide-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('photo_hero_sunset.jpg') center/cover;
  opacity: 0.22;
}
.guide-hero-inner {
  max-width: 720px;
  position: relative;
}
.guide-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.guide-hero-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 20px;
}
.guide-hero-h em { font-style: italic; }
.guide-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
}
.guide-hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.85;
  max-width: 560px;
}
.guide-hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.guide-chip {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}
.guide-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 72px;
}

/* ── FOOTER SHARED (guide pages) ── */
.guide-footer {
  background: var(--charcoal);
  padding: 36px 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.guide-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.guide-footer-brand em { font-style: italic; }
.guide-footer-links { display: flex; gap: 24px; align-items: center; }
.guide-footer-link {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.guide-footer-link:hover { color: var(--white); }

/* ── CTA BLOCK SHARED ── */
.cta-block {
  background: var(--green);
  border-radius: 3px;
  padding: 36px;
  margin: 48px 0;
  text-align: center;
}
.cta-block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-block-title em { font-style: italic; }
.cta-block-sub {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  line-height: 1.7;
}
.cta-block-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── STEP / CALLOUT SHARED (guide pages) ── */
.step-block {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--cream-dark);
}
.step-block:last-child { border-bottom: none; }
.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 16px;
}
.step-title em { font-style: italic; }
.step-body p {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 18px;
}
.step-body strong { font-weight: 600; color: var(--text); }
.step-callout {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 3px 3px 0;
  margin: 24px 0;
}
.step-callout-title {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.step-callout-text {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
}
.step-list {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list li {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.step-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 12px; }

/* ── GUIDE PAGE TABLES ── */
.costs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.costs-table th {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--cream-dark);
}
.costs-table td {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  padding: 12px 14px;
  border-bottom: 1px solid var(--cream-dark);
}
.costs-table tr:last-child td { border-bottom: none; }
.costs-table td:last-child { color: var(--text); font-weight: 400; }

@media (max-width: 768px) {
  .guide-nav { padding: 0 24px; }
  .guide-hero { padding: 56px 24px 48px; }
  .guide-body { padding: 56px 24px; }
  .guide-footer { padding: 28px 24px; }
}
