/* ==========================================================================
   My Rent Return — styles.css
   Smart Leasing. Real Returns.
   ========================================================================== */

:root {
  --green:        #5CB46D;   /* brand green (accents, highlights) */
  --green-btn:    #377743;   /* button green — WCAG AA on white text */
  --green-btn-dk: #2c5f35;   /* button hover */
  --forest:       #142623;   /* dark forest green (headers, text) */
  --forest-soft:  #1c342f;
  --teal:         #485C57;   /* muted teal-gray (secondary text) */
  --sage:         #B3C9B9;   /* light sage accent */
  --sage-bg:      #F2F8F6;   /* light page background */
  --line:         #E2ECE6;   /* dividers */
  --white:        #ffffff;
  --shadow-sm: 0 1px 3px rgba(20,38,35,.06), 0 1px 2px rgba(20,38,35,.04);
  --shadow-md: 0 10px 30px rgba(20,38,35,.08);
  --shadow-lg: 0 24px 60px rgba(20,38,35,.12);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--forest);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green-btn); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

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

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-btn); margin-bottom: 14px;
}
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--sage { background: var(--sage-bg); }
.section--forest { background: var(--forest); color: var(--white); }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--forest .eyebrow { color: var(--sage); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--teal); font-size: 1.1rem; }
.section--forest .section-head p { color: var(--sage); }
.text-center { text-align: center; }
.muted { color: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green-btn); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-btn-dk); color: var(--white); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--sage); }
.btn--ghost:hover { border-color: var(--green-btn); color: var(--green-btn); }
.btn--light { background: var(--white); color: var(--forest); }
.btn--light:hover { background: #eef5f1; color: var(--forest); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn-sub { font-size: .85rem; color: var(--teal); margin-top: 12px; }
.section--forest .btn-sub { color: var(--sage); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo--footer { height: 44px; }
@media (max-width: 480px){ .brand-logo { height: 36px; } }
.brand-word { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--forest); }
.brand-word .g { color: var(--green-btn); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { color: var(--forest); font-weight: 600; font-size: .98rem; }
.nav a.navlink:hover { color: var(--green-btn); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { width: 100%; margin-top: 10px; }
}

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--sage-bg), var(--white)); padding: 80px 0 64px; }
.hero h1 span.hl { color: var(--green-btn); }
.hero p.lead { font-size: 1.2rem; color: var(--teal); max-width: 620px; margin: 0 auto 28px; }
.hero.text-center .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 30px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: .92rem; font-weight: 600; }
.hero-badges span::before { content: "✓"; color: var(--green-btn); font-weight: 800; }

/* ---- Stat band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--green); line-height: 1; }
.stat .lbl { color: var(--teal); font-size: .95rem; margin-top: 8px; }
.section--forest .stat .num { color: var(--green); }
.section--forest .stat .lbl { color: var(--sage); }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--teal); margin: 0; }
.card .step-num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-btn); }
.card .tag { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--green-btn); background: #eaf3ec; padding: 5px 12px; border-radius: 999px; }
.card--forest { background: var(--forest-soft); border-color: rgba(255,255,255,.08); }
.card--forest h3 { color: var(--white); }
.card--forest p { color: var(--sage); }

.icon-dot {
  width: 46px; height: 46px; border-radius: 12px; background: #eaf3ec; color: var(--green-btn);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin-bottom: 16px;
}
.section--forest .icon-dot { background: rgba(92,180,109,.16); color: var(--green); }

/* numbered list feature */
.feature-row { display: flex; gap: 18px; align-items: flex-start; }
.feature-row .n { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--green-btn); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.feature-row h3 { margin-bottom: 4px; }
.feature-row p { color: var(--teal); margin: 0; }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 12px; }
.checklist li::before { content: "✓"; color: var(--green-btn); font-weight: 800; flex: 0 0 auto; }
.checklist li b { display: block; }
.checklist li span { color: var(--teal); }

/* ---- Comparison sample table ---- */
.report {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white);
  border: 1px solid var(--line);
}
.report-head { background: var(--forest); color: #fff; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.report-head .title { font-weight: 700; }
.report-head .sub { font-size: .82rem; color: var(--sage); }
.report-head .pill { background: rgba(255,255,255,.12); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; }
.report table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.report th, .report td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.report th { font-weight: 700; }
.report td.rowlbl, .report th.rowlbl { text-align: left; color: var(--teal); font-weight: 600; }
.report .grp td { background: var(--sage-bg); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--teal); text-align: left; font-weight: 700; }
.report .top { background: rgba(179,201,185,.22); }
.report .cashback { color: var(--green-btn); font-weight: 700; }
.report .win { background: var(--green-btn); color: #fff; font-weight: 800; border-radius: 8px; }
.report .pick { display: inline-block; margin-top: 4px; font-size: .68rem; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 999px; }
.report-foot { padding: 12px 16px; font-size: .78rem; color: var(--teal); text-align: center; background: var(--sage-bg); }
.report-wrap { overflow-x: auto; }

/* ---- Calculator ---- */
.calc { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); text-align: center; }
.section--forest .calc { background: var(--forest-soft); border-color: rgba(255,255,255,.1); }
.calc .rentval { font-size: 1.6rem; font-weight: 800; color: var(--forest); }
.section--forest .calc .rentval { color: #fff; }
.calc input[type=range] { width: 100%; margin: 20px 0 6px; accent-color: var(--green-btn); height: 6px; }
.calc .rng-lbls { display: flex; justify-content: space-between; font-size: .8rem; color: var(--teal); }
.calc .result { margin-top: 24px; padding: 22px; border-radius: var(--radius-sm); background: var(--sage-bg); }
.section--forest .calc .result { background: rgba(92,180,109,.12); }
.calc .result .cash { font-size: 3rem; font-weight: 800; color: var(--green-btn); line-height: 1; }
.section--forest .calc .result .cash { color: var(--green); }
.calc .result .cap { color: var(--teal); font-size: .95rem; }
.section--forest .calc .result .cap { color: var(--sage); }

/* ---- Neighborhoods ---- */
.hoods { display: flex; flex-wrap: wrap; gap: 10px; }
.hoods a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; color: var(--forest); font-size: .92rem; }
.hoods a:hover { border-color: var(--green-btn); color: var(--green-btn); text-decoration: none; }
.hood-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin-bottom: 14px; }

.hood-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:900px){ .hood-cards{ grid-template-columns: repeat(2,1fr);} }
@media(max-width:620px){ .hood-cards{ grid-template-columns: 1fr;} }

/* ---- Map embed ---- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--white); }
.map-wrap iframe { width: 100%; height: 620px; border: 0; display: block; }
@media(max-width:700px){ .map-wrap iframe { height: 460px; } }
.map-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.map-tags span { background: #eaf3ec; color: var(--green-btn); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }

/* ---- FAQ accordion ---- */
.faq-cat { font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-btn); margin: 40px 0 12px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; background: var(--white); }
.faq button.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px;
  font-size: 1.05rem; font-weight: 700; color: var(--forest); display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: inherit;
}
.faq button.faq-q .ico { flex: 0 0 auto; color: var(--green-btn); transition: transform .2s; font-size: 1.4rem; line-height: 1; }
.faq.open button.faq-q .ico { transform: rotate(45deg); }
.faq .faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq .faq-a p { padding: 0 22px 20px; color: var(--teal); margin: 0; }

/* ---- Intake form ---- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:640px){ .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #cdd9d3; border-radius: 10px;
  background: #fff; color: var(--forest); transition: border .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-btn); box-shadow: 0 0 0 3px rgba(55,119,67,.15); }
.field .err { color: #c0392b; font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; color: var(--teal); margin-top: 16px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eaf6ed; color: var(--green-btn-dk); }
.form-status.bad { background: #fbeaea; color: #a5281e; }
.form-success { text-align: center; padding: 30px 10px; display: none; }
.form-success.show { display: block; }
.form-success .big { font-size: 3rem; }

/* ---- Split CTA cards ---- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:760px){ .dual { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--forest); color: var(--sage); padding: 64px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media(max-width:900px){ .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width:560px){ .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .brand-word { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: var(--sage); display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .tagline { margin: 16px 0; max-width: 320px; color: var(--sage); }
.site-footer .contact-line { margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: var(--sage); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal a { display: inline; color: var(--sage); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Guides / Blog
   ========================================================================== */
.article-meta { display:flex; flex-wrap:wrap; gap:8px 16px; justify-content:center; color:var(--teal); font-size:.9rem; margin-top:14px; }
.article-meta .cat { color:var(--green-btn); font-weight:700; }
.article { max-width:730px; margin:0 auto; font-size:1.06rem; }
.article h2 { font-size:1.6rem; margin-top:44px; }
.article h3 { font-size:1.2rem; margin-top:30px; }
.article p, .article li { color:#2a3d38; }
.article ul, .article ol { padding-left:22px; }
.article li { margin-bottom:8px; }
.article a { color:var(--green-btn); font-weight:600; }
.article strong { color:var(--forest); }
.article .lead-in { font-size:1.18rem; color:var(--teal); }
.article figure { margin:24px 0; }
.callout { background:var(--sage-bg); border-left:4px solid var(--green-btn); border-radius:0 12px 12px 0; padding:20px 22px; margin:28px 0; }
.callout p:last-child { margin-bottom:0; }
.callout .callout-h { font-weight:800; color:var(--forest); display:block; margin-bottom:6px; }
.article-table { width:100%; border-collapse:collapse; margin:24px 0; font-size:.96rem; }
.article-table th, .article-table td { border:1px solid var(--line); padding:11px 13px; text-align:left; vertical-align:top; }
.article-table th { background:var(--sage-bg); font-weight:700; color:var(--forest); }
.toc { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px 24px; margin:28px 0; }
.toc h4 { margin:0 0 10px; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color:var(--teal); }
.toc ol { margin:0; padding-left:20px; }
.toc a { color:var(--green-btn); }
.article-cta { background:var(--forest); color:#fff; border-radius:var(--radius); padding:32px; text-align:center; margin:44px 0 0; }
.article-cta h3 { color:#fff; }
.article-cta p { color:var(--sage); max-width:520px; margin:0 auto 20px; }
.byline { display:flex; align-items:center; gap:12px; justify-content:center; margin-top:20px; color:var(--teal); font-size:.92rem; }
.article-foot { border-top:1px solid var(--line); margin-top:44px; padding-top:24px; }
.related-title { font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color:var(--teal); font-weight:800; margin-bottom:16px; }

/* Guides hub cards */
.guide-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); height:100%; transition:transform .15s, box-shadow .15s; }
.guide-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); text-decoration:none; }
.guide-card .gc-top { height:8px; background:linear-gradient(90deg,var(--green),var(--green-btn)); }
.guide-card .gc-body { padding:26px; display:flex; flex-direction:column; flex:1; }
.guide-card .gc-cat { font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--green-btn); }
.guide-card h3 { margin:10px 0 8px; font-size:1.2rem; color:var(--forest); }
.guide-card p { color:var(--teal); margin:0 0 18px; flex:1; }
.guide-card .gc-meta { font-size:.85rem; color:var(--teal); font-weight:600; }
.guide-card .gc-more { color:var(--green-btn); font-weight:700; margin-top:8px; }
