/*
Theme Name: RentalCounsel
Theme URI: https://rentalcounsel.com/
Author: The Law Office of Tyler Pentoliros
Description: A focused, responsive WordPress theme for RentalCounsel, serving landlords in Massachusetts and New Hampshire.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rentalcounsel
*/

:root {
  --navy: #0d2035;
  --navy-2: #16314d;
  --gold: #c6a15b;
  --gold-dark: #9b783c;
  --cream: #f6f1e7;
  --white: #ffffff;
  --ink: #192532;
  --muted: #5d6874;
  --line: #d9d4ca;
  --shadow: 0 18px 45px rgba(13, 32, 53, .12);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  margin-top: 0;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.15rem; }
ul { padding-left: 1.2rem; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.88); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section--navy .eyebrow { color: #e4c98f; }
.lead { max-width: 760px; font-size: 1.25rem; color: var(--muted); }
.section--navy .lead { color: rgba(255,255,255,.74); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(13,32,53,.09);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-main {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-sub {
  color: var(--gold-dark);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-top: 7px;
  text-transform: uppercase;
}
.nav-wrap { display: flex; align-items: center; gap: 26px; }
.primary-menu { display: flex; list-style: none; gap: 24px; margin: 0; padding: 0; }
.primary-menu a {
  color: var(--navy);
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--gold-dark); }
.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 13px;
}
.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 50px;
  padding: 0 24px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(198,161,91,.22); }
.btn--gold:hover { background: #d3b274; color: var(--navy); }
.btn--outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.header-phone { white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,22,38,.98) 0%, rgba(13,32,53,.93) 48%, rgba(13,32,53,.44) 100%),
    radial-gradient(circle at 76% 24%, rgba(198,161,91,.42), transparent 25%),
    linear-gradient(140deg, #183754, #0d2035);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .72;
  background-image: url("assets/coastal-linework.svg");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: min(890px, 67vw) auto;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--gold);
}
.hero-copy { max-width: 820px; padding: 110px 0 120px; }
.hero h1 { color: var(--white); margin-bottom: 26px; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 690px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 24px; color: rgba(255,255,255,.67); font-size: .9rem; }
.trust-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-item { padding: 25px 28px; text-align: center; font-weight: 800; color: var(--navy); }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid rgba(13,32,53,.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.card--flat { box-shadow: none; }
.card-number {
  color: var(--gold-dark);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow::after { content: " →"; }

.split { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.panel {
  background: var(--navy);
  border-radius: var(--radius);
  color: rgba(255,255,255,.8);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.panel h2, .panel h3 { color: var(--white); }
.panel::after {
  content: "";
  position: absolute;
  width: 210px; height: 210px;
  border: 1px solid rgba(198,161,91,.48);
  border-radius: 50%;
  right: -95px; bottom: -95px;
}
.check-list { list-style: none; padding: 0; margin: 26px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin: 13px 0; }
.check-list li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; font-size: .72rem; top: .35rem; }

.state-card { min-height: 320px; display: flex; flex-direction: column; }
.state-card .btn { align-self: flex-start; margin-top: auto; }

.process { counter-reset: step; }
.process-step { position: relative; padding-left: 72px; }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.cta-band {
  background: var(--gold);
  color: var(--navy);
  padding: 54px 0;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.cta-band p { margin: 0; }
.page-hero {
  background:
    linear-gradient(120deg, rgba(13,32,53,.98), rgba(22,49,77,.92)),
    url("assets/coastal-linework.svg") right center / 610px auto no-repeat;
  color: var(--white);
  padding: 90px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4.5rem); margin-bottom: 18px; }
.page-hero .lead { color: rgba(255,255,255,.77); }

.content-wrap { max-width: 840px; }
.content-wrap h2 { margin-top: 48px; }
.content-wrap h3 { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item h3 { margin-bottom: 10px; }
.notice {
  border-left: 5px solid var(--gold);
  background: var(--cream);
  padding: 24px 26px;
  margin: 30px 0;
}

.site-footer { background: #081726; color: rgba(255,255,255,.68); padding: 65px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 52px; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.74); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin: 9px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 46px;
  padding-top: 22px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 9999;
  background: var(--white); color: var(--navy);
  padding: 12px 16px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  .header-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-wrap { position: relative; }
  .primary-menu {
    display: none;
    position: absolute;
    right: 0; top: 56px;
    width: 270px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0;
    padding: 12px;
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu li a { display: block; padding: 12px; }
  .split, .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .hero { min-height: 650px; }
  .hero::before { background-size: 780px auto; opacity: .38; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 66px 0; }
  .header-inner { min-height: 72px; }
  .brand-main { font-size: 1.36rem; }
  .brand-sub { font-size: .56rem; }
  .hero-copy { padding: 88px 0 100px; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4.3rem); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .card, .panel { padding: 28px; }
}
