/* Reliable Estate Management — brand theme (see images/reliable-theme.png) */

:root {
  /* Official palette */
  --navy: #1d3557;
  --navy-mid: #254a6e;
  --gold: #b79a61;
  --gold-hover: #a68952;
  --cream: #f1efe9;
  --slate: #65707d;
  --charcoal: #2e3840;
  --warm-gray: #65707d;
  --muted: #7a8490;
  --stone: #c4bfb6;
  --stone-light: #e5e2db;
  --off-white: #f1efe9;
  --paper: #faf9f6;
  --slate-accent: #65707d;
  --slate-deep: #4a5a68;
  --border: rgba(29, 53, 87, 0.1);
  --shadow: 0 24px 48px rgba(29, 53, 87, 0.1);
  --shadow-sm: 0 8px 24px rgba(29, 53, 87, 0.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 72rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--slate-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--cream);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

/* Wide logo: size by width so ultra-wide art stays legible (max-height-only made new assets tiny). */
.logo-mark img {
  display: block;
  width: min(320px, 72vw);
  max-width: 100%;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 400px) {
  .logo-mark img {
    width: min(280px, 88vw);
    max-height: 80px;
  }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--navy);
  background: rgba(29, 53, 87, 0.07);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta a {
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(29, 53, 87, 0.25);
}

.btn-secondary:hover {
  background: rgba(29, 53, 87, 0.06);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-deep);
  padding: 0.5rem 0.75rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

@media (max-width: 960px) {
  /* backdrop-filter creates a containing block; fixed nav would be sized to the header bar
     and peek at the edge. Use a solid header on small screens instead. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(253, 252, 250, 0.98);
  }

  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 110;
    background: var(--paper);
    padding: 1.5rem;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid var(--border);
    pointer-events: none;
  }

  body.nav-open .nav-wrap {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .nav-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-primary a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--off-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(183, 154, 97, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(101, 112, 125, 0.15), transparent 50%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6rem) 1.5rem clamp(4rem, 12vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 239, 233, 0.85);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--cream);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(241, 239, 233, 0.9);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.hero .btn-primary:hover {
  background: var(--gold-hover);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.hero .btn-secondary {
  border-color: rgba(241, 239, 233, 0.45);
  color: var(--cream);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.hero-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(transparent, rgba(29, 53, 87, 0.82));
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy-mid);
  color: var(--off-white);
}

.section-navy a {
  color: var(--stone-light);
}

.section-navy a:hover {
  color: var(--gold);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-navy .section-eyebrow {
  color: rgba(183, 154, 97, 0.95);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--navy);
}

.section-navy h2 {
  color: var(--cream);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  margin: 0;
}

.section-navy .section-intro {
  color: rgba(241, 239, 233, 0.88);
}

.anchor-block {
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 1.75rem 2rem;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  border-radius: 0 8px 8px 0;
}

.anchor-block p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
}

.anchor-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--navy);
}

.anchor-block .role-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--warm-gray);
  margin: 0;
  line-height: 1.65;
}

/* Credibility strip */
.strip {
  background: var(--navy);
  color: var(--cream);
  padding: 2rem 1.5rem;
}

.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.strip h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(183, 154, 97, 0.95);
  margin: 0 0 1.25rem;
  text-align: center;
}

ul.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  text-align: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip-grid li {
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cards & grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--warm-gray);
}

.icon-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.icon-card h3::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.list-check {
  margin: 0;
  padding: 0;
}

.list-check li {
  list-style: none;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--charcoal);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--navy);
  grid-column: 2;
}

.step p {
  margin: 0;
  color: var(--warm-gray);
  grid-column: 2;
}

.step strong {
  color: var(--charcoal);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gold);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  color: var(--warm-gray);
  font-size: 0.98rem;
}

/* Forms */
.form {
  max-width: 36rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--charcoal);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 154, 97, 0.25);
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(241, 239, 233, 0.88);
  padding: 3rem 1.5rem 2rem;
}

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

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: block;
  width: min(220px, 70vw);
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(183, 154, 97, 0.95);
  margin: 0 0 1rem;
}

.footer-contact {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-contact a {
  color: var(--cream);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--gold);
  text-decoration: underline;
}

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

.footer-nav a {
  color: rgba(241, 239, 233, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(241, 239, 233, 0.45);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--paper) 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--warm-gray);
  max-width: 42rem;
  margin: 0;
  line-height: 1.7;
}

/* Service blocks (What We Do) */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-block .lead {
  color: var(--warm-gray);
  margin: 0 0 1rem;
}

.service-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-deep);
  margin: 1.25rem 0 0.5rem;
}

.service-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-examples li {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  background: var(--off-white);
  border-radius: 6px;
  color: var(--charcoal);
  border: 1px solid var(--border);
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--warm-gray);
}

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

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--slate-deep);
}

.link-arrow:hover {
  color: var(--navy);
}

.mt-lg {
  margin-top: 2.5rem;
}

.text-center {
  text-align: center;
}

.service-label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-label-grid li {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  text-align: center;
}

/* FAQ preview */
.faq-preview .faq-item summary {
  font-size: 1rem;
}

/* CTA bands (navy sections) */
.cta-band-title {
  color: var(--cream);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-band-lead {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.cta-on-dark {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.cta-on-dark:hover {
  background: var(--gold-hover) !important;
  color: var(--navy) !important;
}

/* Contact */
.contact-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.contact-layout {
  align-items: start;
  gap: 3rem;
}

.contact-aside-lead {
  margin-bottom: 1.5rem;
  color: var(--warm-gray);
}

.contact-aside-note {
  color: var(--warm-gray);
  font-size: 0.9375rem;
  margin: 0;
}

.form-success {
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.form-success p {
  margin: 0;
  color: var(--charcoal);
  line-height: 1.6;
}

.form-note code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: rgba(29, 53, 87, 0.07);
  border-radius: 4px;
}

/* Narrow content */
.narrow {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.prose-narrow {
  max-width: 42rem;
}

.center-lead {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.center-lead-sm {
  max-width: 28rem;
}

.fit-list {
  max-width: 36rem;
}
