/* RSKL Real Estate — static theme, close in feel to the Twenty Twenty-Four homepage */
:root {
  --base: #f9f9f9;
  --base-2: #ffffff;
  --contrast: #111111;
  --contrast-2: #636363;
  --contrast-3: #a4a4a4;
  --accent: #cfcabe;
  --accent-2: #c2a990;
  --accent-3: #d8613c;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: Cardo, "Iowan Old Style", Georgia, serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --content: 42rem;
  --wide: 68rem;
  --radius: 0.33rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--contrast);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--contrast); }
a:hover { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--contrast);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 2.5rem + 1.3vw, 3.27rem); line-height: 1.15; }
h2 { font-size: clamp(1.85rem, 1.85rem + 1.1vw, 2.5rem); }
h3 { font-size: clamp(1.39rem, 1.39rem + 0.8vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1.1rem + 0.8vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

hr {
  border: 0;
  border-top: 1px solid var(--accent);
  margin: 2rem 0;
}

/* Header */
.site-header {
  background: var(--base);
  padding: 20px var(--space);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--contrast);
}

.nav-toggle svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.site-nav a:hover { text-decoration: underline; }

.site-nav a[aria-current="page"] { text-decoration: underline; }

/* Buttons */
.btn,
a.btn,
.wp-element-button,
.wp-block-button__link {
  display: inline-block;
  background: var(--contrast);
  color: var(--base) !important;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.6rem 1rem;
  text-decoration: none !important;
  cursor: pointer;
}

.btn:hover,
a.btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--contrast-2);
}

.btn-wrap { text-align: center; margin: 1.25rem 0 0; }

/* Main / layout */
.site-main { margin: 0; }

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space);
}

.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: var(--space) 0;
}

.section-alt {
  background: var(--base-2);
  padding: calc(var(--space) * 1.4) 0;
}

/* Hero */
.hero {
  text-align: center;
  padding: calc(var(--space) * 1.6) var(--space) var(--space);
}

.hero h1 { margin-bottom: 0.5em; }

.hero .lede {
  font-size: 1.05rem;
  margin: 0 auto 0.4em;
  max-width: 36rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: var(--wide);
  margin: 2rem auto 0;
  padding: 0 var(--space);
}

.hero-gallery figure { margin: 0; }

.hero-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-gallery figure:first-child img { aspect-ratio: 3 / 4; }

/* Why choose us */
.why-head { text-align: center; margin-bottom: 2rem; }

.why-head h2 { margin-bottom: 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

.why-grid h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.why-grid p {
  margin: 0;
  color: var(--contrast);
}

/* Listings */
.listings-head {
  text-align: center;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--base-2);
  border: 1px solid #eceae4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card:hover { box-shadow: 0 2px 12px rgba(17, 17, 17, 0.08); }

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent);
}

.card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35em;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--contrast-2);
  margin-bottom: 0.6em;
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--contrast-2);
  margin: 0;
}

/* Page / post content */
.page-header {
  padding: calc(var(--space) * 1.15) var(--space) 0.5rem;
  max-width: var(--content);
  margin: 0 auto;
}

.page-header .meta {
  color: var(--contrast-2);
  font-size: 0.9rem;
  margin-top: -0.4rem;
  margin-bottom: 0;
}

.content {
  padding: 0.5rem 0 calc(var(--space) * 1.4);
}

.content .wp-block-group,
.content .wp-block-columns,
.content .wp-block-column {
  display: block;
}

.content img,
.content figure img {
  width: 100%;
  height: auto;
  margin: 0;
}

.content figure {
  margin: 1.25rem 0;
}

.content figcaption {
  font-size: 0.85rem;
  color: var(--contrast-2);
  margin-top: 0.4rem;
}

.wp-block-gallery,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.wp-block-gallery figure {
  margin: 0;
}

.wp-block-gallery.is-cropped img,
.wp-block-gallery.has-nested-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured {
  margin: 0 auto 1.5rem;
  max-width: var(--wide);
  padding: 0 var(--space);
}

.featured img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
}

.cta-block {
  margin: 2.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--accent);
  text-align: center;
}

.cta-block p { margin-bottom: 1rem; }

/* Offers (footer-ish page links on home) */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem 1.5rem;
}

.offer-grid a {
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eceae4;
  display: block;
}

.offer-grid a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--base-2);
  border-top: 1px solid #eceae4;
  padding: calc(var(--space) * 1.3) var(--space) var(--space);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .brand { margin-bottom: 0.25rem; }

.footer-tagline,
.footer-note {
  color: var(--contrast-2);
  font-size: 0.9rem;
  margin: 0;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: var(--wide);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #eceae4;
  font-size: 0.85rem;
  color: var(--contrast-2);
}

/* 404 */
.not-found {
  text-align: center;
  padding: 5rem var(--space);
}

/* Archive */
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list li {
  border-bottom: 1px solid #eceae4;
  padding: 1.1rem 0;
}

.archive-list a { text-decoration: none; }
.archive-list a:hover { text-decoration: underline; }
.archive-list .meta { color: var(--contrast-2); font-size: 0.85rem; display: block; margin-top: 0.2rem; }

@media (max-width: 800px) {
  .hero-gallery { grid-template-columns: 1fr 1fr; }
  .hero-gallery figure:first-child { grid-column: 1 / -1; }
  .hero-gallery figure:first-child img { aspect-ratio: 16 / 10; }
  .why-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100px;
    left: var(--space);
    right: var(--space);
    background: var(--base-2);
    border: 1px solid #eceae4;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(17,17,17,0.08);
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery figure:first-child { grid-column: auto; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
}
