/* ============================================================
   RentalPropertyExplained.com
   Main Stylesheet
   Theme: calm residential / practical rental guide
   ============================================================ */

/* -----------------------------
   Root theme variables
----------------------------- */

:root {
  --bg: #f7f4ee;
  --bg-soft: #fbf8f2;
  --surface: #ffffff;
  --surface-warm: #fffaf1;

  --text: #1f2933;
  --text-soft: #4b5563;
  --muted: #6b7280;

  --brand: #2f5d50;
  --brand-dark: #24483e;
  --brand-soft: #dcebe5;

  --accent: #b98545;
  --accent-soft: #f3e2c9;

  --line: #ddd5c8;
  --line-strong: #cbbfae;

  --shadow: 0 18px 45px rgba(31, 41, 51, 0.10);
  --shadow-soft: 0 10px 28px rgba(31, 41, 51, 0.08);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --wrap: 1680px;
  --content: 1100px;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -----------------------------
   Base reset
----------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 133, 69, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  line-height: 1.65;
  font-size: 17px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid rgba(185, 133, 69, 0.65);
  outline-offset: 3px;
}

p {
  margin: 0 0 1.05rem;
}

ul,
ol {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.35rem;
}

strong {
  color: #17212b;
}

/* -----------------------------
   Layout helpers
----------------------------- */

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.content-wrap {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 52px 0;
}

.section-tight {
  padding: 34px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(47, 93, 80, 0.20);
  border-radius: 999px;
  background: rgba(220, 235, 229, 0.75);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.08rem, 1vw + 0.9rem, 1.34rem);
  color: #334155;
  line-height: 1.72;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 999;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

/* -----------------------------
   Header / navigation
----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.94);
  border-bottom: 1px solid rgba(203, 191, 174, 0.70);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1.4rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 240px;
  color: var(--text);
  text-decoration: none;
}

.site-brand img,
.site-brand svg {
  display: block;
  height: 68px;
  width: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: #17212b;
}

.brand-tagline {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: #344054;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.site-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

/* -----------------------------
   Hero
----------------------------- */

.hero {
  position: relative;
  padding: 54px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(47, 93, 80, 0.13), rgba(185, 133, 69, 0.08)),
    radial-gradient(circle at 92% 10%, rgba(47, 93, 80, 0.18), transparent 30rem);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(185, 133, 69, 0.10);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 980px;
  color: #14211d;
  font-size: clamp(2.15rem, 3.6vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 920px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.hero-card {
  padding: clamp(1.15rem, 2.2vw, 1.75rem);
  border: 1px solid rgba(203, 191, 174, 0.9);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.92));
  box-shadow: var(--shadow);
}

.hero-card h2,
.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-card p:last-child {
  margin-bottom: 0;
}

/* -----------------------------
   Buttons
----------------------------- */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(47, 93, 80, 0.18);
}

.button:hover,
.button:focus,
.btn:hover,
.btn:focus {
  background: var(--brand-dark);
  color: #fff;
}

.button.secondary,
.btn.secondary {
  background: #fff;
  border-color: rgba(47, 93, 80, 0.25);
  color: var(--brand-dark);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus,
.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--brand-soft);
}

/* -----------------------------
   Cards / grids
----------------------------- */

.card {
  padding: clamp(1rem, 1.55vw, 1.45rem);
  border: 1px solid rgba(203, 191, 174, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-soft);
}

.card.warm {
  background: var(--surface-warm);
}

.card h2,
.card h3,
.card h4 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover .card,
.card-link:focus .card,
.card-link:hover,
.card-link:focus {
  color: inherit;
}

.card-link .card {
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-link:hover .card,
.card-link:focus .card {
  transform: translateY(-3px);
  border-color: rgba(47, 93, 80, 0.35);
  box-shadow: 0 18px 45px rgba(31, 41, 51, 0.13);
}

.card-title {
  margin: 0 0 0.45rem;
  color: #17212b;
  font-size: 1.13rem;
  line-height: 1.25;
}

.card-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* -----------------------------
   Page titles / content pages
----------------------------- */

.page-hero {
  padding: 44px 0 34px;
  background:
    linear-gradient(120deg, rgba(47, 93, 80, 0.13), rgba(185, 133, 69, 0.10)),
    rgba(255, 250, 241, 0.62);
  border-bottom: 1px solid rgba(203, 191, 174, 0.65);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  color: #14211d;
  font-size: clamp(2rem, 3vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.page-hero .lead {
  max-width: 1060px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-top: 1rem;
  color: #40514a;
  font-size: 0.94rem;
}

.article-meta a {
  color: var(--brand-dark);
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  align-items: start;
}

.article-body {
  padding: clamp(1.1rem, 2.4vw, 2rem);
  border: 1px solid rgba(203, 191, 174, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.article-body h2 {
  margin: 2.1rem 0 0.8rem;
  color: #17212b;
  font-size: clamp(1.45rem, 1.2vw + 1rem, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 1.5rem 0 0.55rem;
  color: #1f2f2a;
  font-size: 1.25rem;
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: #2f3a44;
}

.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-warm);
  color: #344054;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-body th,
.article-body td {
  padding: 0.78rem 0.82rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
}

.sidebar-box {
  padding: 1.05rem;
  border: 1px solid rgba(203, 191, 174, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.93);
  box-shadow: var(--shadow-soft);
}

.sidebar-box h2,
.sidebar-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.sidebar-box ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.sidebar-box a {
  font-weight: 700;
}

/* -----------------------------
   Article lists / indexes
----------------------------- */

.article-list {
  display: grid;
  gap: 1rem;
}

.article-list-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem;
  border: 1px solid rgba(203, 191, 174, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.article-list-item h2,
.article-list-item h3 {
  margin: 0;
  font-size: 1.22rem;
}

.article-list-item p {
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

/* -----------------------------
   Highlights / callouts
----------------------------- */

.callout {
  margin: 1.5rem 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(47, 93, 80, 0.20);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(220, 235, 229, 0.55);
}

.callout.warning {
  border-color: rgba(185, 133, 69, 0.35);
  border-left-color: var(--accent);
  background: rgba(243, 226, 201, 0.52);
}

.callout h2,
.callout h3,
.callout h4 {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.stat {
  padding: 1rem;
  border: 1px solid rgba(203, 191, 174, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 1.2vw + 1rem, 2rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* -----------------------------
   AdSense ad slots
----------------------------- */

.ad-slot {
  margin: 1.65rem 0;
  padding: 0.65rem;
  border: 1px dashed rgba(107, 114, 128, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.ad-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-slot ins.adsbygoogle {
  display: block;
  min-height: 90px;
}

/* -----------------------------
   Breadcrumbs
----------------------------- */

.breadcrumbs {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  text-decoration: underline;
}

/* -----------------------------
   Footer
----------------------------- */

.site-footer {
  margin-top: 48px;
  padding: 42px 0;
  border-top: 1px solid rgba(203, 191, 174, 0.78);
  background: #1f2f2a;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  gap: 1.5rem;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: #f3e2c9;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* -----------------------------
   Forms / contact styling
----------------------------- */

.form-note {
  padding: 1rem;
  border: 1px solid rgba(203, 191, 174, 0.84);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 750;
}

/* -----------------------------
   Utility spacing
----------------------------- */

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.center {
  text-align: center;
}

.max-readable {
  max-width: 980px;
}

/* -----------------------------
   Responsive behavior
----------------------------- */

@media (max-width: 1100px) {
  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .content-wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 0.9rem 0;
    gap: 0.8rem;
  }

  .site-brand {
    min-width: 0;
  }

.site-brand img,
.site-brand svg {
  height: 58px;
}

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0.36rem 0.58rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 38px 0 36px;
  }

  .page-hero {
    padding: 34px 0 28px;
  }

  .section {
    padding: 38px 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .stat-strip,
  .article-sidebar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 1rem;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .wrap,
  .content-wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .brand-tagline {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .btn {
    width: 100%;
  }

  .card,
  .hero-card,
  .sidebar-box,
  .article-list-item {
    border-radius: 16px;
  }
}

/* -----------------------------
   Print
----------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .article-sidebar,
  .ad-slot,
  .hero-actions {
    display: none !important;
  }

  .wrap,
  .content-wrap {
    width: 100%;
  }

  .article-body,
  .card,
  .hero-card {
    border: 0;
    box-shadow: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ------------------------------------------------------------
   Logo size override - RentalPropertyExplained.com
   Added to make the header logo and tagline more readable
------------------------------------------------------------ */

.site-header .site-brand img {
  height: 92px !important;
  width: auto !important;
  max-width: none !important;
}

.site-header .header-inner {
  min-height: 112px;
}

@media (max-width: 820px) {
  .site-header .site-brand img {
    height: 76px !important;
    width: auto !important;
    max-width: none !important;
  }

  .site-header .header-inner {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-header .site-brand img {
    height: 70px !important;
  }
}