@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Libre+Baskerville:wght@400;700&family=Varela+Round&display=swap');

:root {
  --dusty-blue: #76a2ad;
  --white: #ffffff;
  --slate: #374f59;
  --clay-blue: #a1b2bf;
  --charcoal: #333234;
  --terracotta: #d4ae8c;
  --aqua: #c0e4e4;
  --cream: #e9dfde;

  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Varela Round", Arial, sans-serif;

  --max: 1180px;
  --shadow: 0 18px 50px rgba(51,50,52,.10);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: #fcfbfb;
  font-family: var(--sans);
  line-height: 1.68;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--slate); }
a:hover { color: #223942; }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4 { margin-top: 0; color: var(--slate); }
h1 {
  font-family: var(--serif-display);
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  line-height: .92;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
}
h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--slate);
  font-weight: 700;
}
.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.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:focus {
  left: 20px; top: 20px; z-index: 10000;
  background: var(--white); padding: 12px 18px; border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252,251,251,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(55,79,89,.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 154px;
  height: 54px;
  border-radius: 0;
  background: url("../logos/remax-op-black-left.png") center / contain no-repeat;
  display: block;
  flex: 0 0 auto;
}
.brand-mark svg { display: none; }
.footer .brand-mark {
  width: 176px;
  height: 70px;
  background-image: url("../logos/remax-op-black-centre-large.png");
}
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .04em;
  display: block;
  color: var(--charcoal);
}
.brand-text span {
  font-size: .68rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  text-decoration: none;
  color: var(--charcoal);
  padding: 11px 12px;
  border-radius: 999px;
  font-size: .92rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); }
.nav .nav-cta {
  background: var(--slate);
  color: white;
  padding-inline: 18px;
}
.nav .nav-cta:hover { background: #263e47; color: white; }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--cream);
  color: var(--charcoal);
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
}

.hero {
  padding: 90px 0 76px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 64px;
  align-items: center;
}
.hero-copy p.lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 760px;
  color: #4c4a4b;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  border: 1px solid var(--slate);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--slate); color: white; }
.btn-primary:hover { background: #263e47; color: white; }
.btn-secondary { background: transparent; color: var(--slate); }
.btn-soft { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }

.hero-art {
  position: relative;
  min-height: 470px;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
}
.hero-circle.one {
  width: 360px; height: 360px;
  right: 30px; top: 30px;
  background: var(--dusty-blue);
}
.hero-circle.two {
  width: 200px; height: 200px;
  left: 15px; bottom: 5px;
  background: var(--terracotta);
}
.hero-circle.three {
  width: 150px; height: 150px;
  right: -20px; bottom: 15px;
  background: var(--aqua);
}
.house-line {
  position: absolute;
  width: 275px;
  height: 220px;
  right: 70px;
  top: 115px;
  z-index: 2;
}
.house-line svg { width: 100%; height: 100%; }

.section { padding: 86px 0; }
.section-sm { padding: 58px 0; }
.section-cream { background: var(--cream); }
.section-blue { background: #eef4f5; }
.section-dark {
  background: var(--slate);
  color: white;
}
.section-dark h2, .section-dark h3, .section-dark a { color: white; }
.section-dark .eyebrow { color: var(--aqua); }

.intro {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 64px;
  align-items: start;
}
.intro-copy {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(55,79,89,.10);
  box-shadow: 0 8px 30px rgba(51,50,52,.035);
}
.card.accent-blue { background: #eaf2f4; }
.card.accent-cream { background: #f2eceb; }
.card.accent-aqua { background: #e8f5f5; }
.card-number {
  font-family: var(--serif-display);
  font-size: 2.2rem;
  color: var(--dusty-blue);
  line-height: 1;
  margin-bottom: 16px;
}
.card p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-card {
  padding: 44px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 7px solid var(--terracotta);
  box-shadow: var(--shadow);
}
.quote-card p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.55;
}

.page-hero {
  padding: 74px 0 64px;
  background:
    radial-gradient(circle at 90% 20%, rgba(192,228,228,.65), transparent 26%),
    radial-gradient(circle at 8% 80%, rgba(212,174,140,.28), transparent 27%),
    #fbfafa;
}
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); max-width: 980px; }
.page-hero .lead {
  max-width: 840px;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.tip-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.tip {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(55,79,89,.10);
}
.tip-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--aqua);
  color: var(--slate);
  font-weight: 700;
}
.tip strong {
  font-family: var(--serif);
  color: var(--slate);
  display: block;
  margin-bottom: 4px;
  font-size: 1.07rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(55,79,89,.14);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif-display);
  font-size: 2rem;
  color: var(--dusty-blue);
}

.story {
  max-width: 900px;
  margin-inline: auto;
}
.story h2 {
  margin-top: 3.2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}
.story p {
  font-size: 1.05rem;
}
.story .opening {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.65;
}

.giving-box {
  background: var(--slate);
  color: white;
  border-radius: 32px;
  padding: clamp(34px, 6vw, 70px);
}
.giving-box h2, .giving-box h3, .giving-box a { color: white; }
.giving-box .eyebrow { color: var(--aqua); }
.giving-stat {
  font-family: var(--serif-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: .9;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.contact-panel {
  border-radius: 32px;
  padding: clamp(32px, 5vw, 60px);
  background:
    linear-gradient(145deg, rgba(192,228,228,.8), rgba(233,223,222,.8));
}
.contact-details { display: grid; gap: 12px; margin-top: 24px; }
.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff7ec;
  border: 1px solid #efd5b7;
  font-size: .92rem;
}

.footer {
  background: var(--aqua);
  color: var(--text-aaa, #1f2528);
  padding: 54px 0 26px;
}
.footer a { color: var(--link-aaa, #233942); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 42px;
}
.footer h3 { color: var(--text-aaa, #1f2528); font-size: 1.1rem; }
.footer small { color: var(--muted-aaa, #454143); }
.footer .brand-text strong,
.footer .brand-text span,
.footer .muted { color: var(--text-aaa, #1f2528) !important; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(31,37,40,.24);
  margin-top: 36px;
  padding-top: 20px;
  font-size: .78rem;
  color: var(--muted-aaa, #454143);
}

.brokerage-showcase {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px 24px;
  border: 1px solid rgba(55,79,89,.16);
  border-radius: 24px;
  background: #ffffff;
}
.brokerage-showcase img {
  width: min(430px, 88vw);
  height: auto;
}
.brokerage-showcase p {
  margin: 16px auto 0;
  color: var(--muted-aaa, #454143);
}
.brokerage-badge::after {
  content: "";
  display: block;
  width: min(330px, 100%);
  aspect-ratio: 2048 / 901;
  margin-top: 18px;
  background: url("../logos/remax-op-black-ioao.png") left center / contain no-repeat;
}

.brokerage-badge {
  margin-top: 16px;
  display: inline-block;
  padding: 10px 14px;
  border: 1px dashed rgba(31,37,40,.48);
  border-radius: 10px;
  font-size: .82rem;
}
.placeholder {
  border: 2px dashed var(--clay-blue);
  background: #f4f7f8;
  color: #66777e;
  border-radius: 18px;
  padding: 22px;
}
.content-narrow { max-width: 820px; }
.muted { color: #6f6c6d; }
.kicker {
  font-family: var(--serif);
  color: var(--slate);
  font-size: 1.15rem;
}
.inline-link { font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px;
    top: calc(100% + 8px);
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(55,79,89,.12);
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .hero-grid, .split, .intro, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-art { min-height: 360px; order: -1; }
  .hero-circle.one { width: 275px; height: 275px; right: 50%; transform: translateX(50%); }
  .hero-circle.two { width: 145px; height: 145px; left: 5%; }
  .hero-circle.three { width: 120px; height: 120px; right: 4%; }
  .house-line { width: 230px; height: 180px; right: 50%; transform: translateX(50%); top: 95px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 74px; }
  .brand-mark { width: 122px; height: 44px; }
  .brand-text { display: none; }
  .footer .brand-mark { width: 166px; height: 66px; }
  .footer .brand-text { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-text span { display: none; }
  .hero { padding: 48px 0 58px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 52px 0; }
  .tip { grid-template-columns: 38px 1fr; padding: 18px; }
  .tip-icon { width: 34px; height: 34px; }
  .button-row .btn { width: 100%; }
}


/* Photography */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo {
  min-height: 540px;
}
.hero-photo img {
  object-position: 48% 42%;
}
.photo-caption {
  margin-top: 10px;
  color: #777174;
  font-size: .78rem;
}
.about-lead-photo {
  min-height: 560px;
}
.about-lead-photo img {
  object-position: 50% 34%;
}
.about-secondary-photo {
  min-height: 430px;
}
.about-secondary-photo img {
  object-position: 48% 40%;
}
.community-photo {
  min-height: 520px;
}
.community-photo img {
  object-position: 48% 34%;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 24px;
  margin: 42px 0 18px;
}
.photo-pair .photo-frame:first-child { min-height: 430px; }
.photo-pair .photo-frame:last-child { min-height: 430px; }
.photo-pair img { object-position: center 38%; }

@media (max-width: 900px) {
  .hero-photo, .about-lead-photo, .community-photo { min-height: 430px; }
  .photo-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-photo, .about-lead-photo, .community-photo { min-height: 370px; }
  .photo-frame { border-radius: 22px; }
}


/* =========================================================
   WCAG 2.2 AAA-TARGETED ACCESSIBILITY OVERRIDES
   Brand pastels remain available for backgrounds/decor.
   Text colors are intentionally darker for enhanced contrast.
   ========================================================= */

:root {
  --text-aaa: #1f2528;
  --link-aaa: #233942;
  --muted-aaa: #454143;
  --accent-text-aaa: #425c65;
  --terracotta-light-aaa: #dec0a6;
}

/* Enhanced text contrast on light brand backgrounds */
body { color: var(--text-aaa); }
a { color: var(--link-aaa); text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { color: #172a32; }

h1, h2, h3, h4 { color: var(--link-aaa); }
.eyebrow { color: var(--text-aaa); }
.brand-text strong { color: var(--text-aaa); }
.brand-text span { color: var(--link-aaa); }
.nav a { color: var(--text-aaa); }
.muted, .photo-caption { color: var(--muted-aaa); }
.placeholder { color: var(--text-aaa); border-color: #526f78; }

/* Keep primary dark controls high contrast */
.nav .nav-cta,
.btn-primary {
  background: var(--slate);
  color: #ffffff;
  border-color: var(--slate);
}
.nav .nav-cta:hover,
.btn-primary:hover {
  background: #263e47;
  color: #ffffff;
}

/* Secondary controls remain dark-on-light */
.btn-secondary {
  color: var(--link-aaa);
  border-color: var(--link-aaa);
}
.btn-soft {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--text-aaa);
}

/* Specificity fix: prevents white text on the cream button in Community Giving */
.giving-box a.btn-soft,
.section-dark a.btn-soft {
  color: var(--text-aaa);
}

/* Dark panels */
.section-dark,
.giving-box {
  background: var(--slate);
  color: #ffffff;
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark a:not(.btn-soft),
.giving-box h1,
.giving-box h2,
.giving-box h3,
.giving-box h4,
.giving-box a:not(.btn-soft),
.section-dark .eyebrow,
.giving-box .eyebrow {
  color: #ffffff;
}

/* Large decorative numerals still use the brand family, but at AAA large-text contrast */
.card-number,
.step::before {
  color: var(--accent-text-aaa);
}
.giving-stat {
  color: var(--terracotta-light-aaa);
}


/* Readability: line length and spacing */
p,
li,
.tip span {
  max-width: 72ch;
}
body {
  line-height: 1.7;
}
p {
  margin-bottom: 1.35em;
}
.story p,
.content-narrow,
.intro-copy {
  max-width: 72ch;
}

/* Enhanced keyboard focus: visible against both light and dark surfaces */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px #ffffff;
}

/* Larger interactive targets */
.nav a,
.menu-toggle,
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a { width: fit-content; }

/* Preserve clear links without relying on color alone in body content */
main p a,
main li a,
.inline-link {
  text-decoration: underline;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Support Windows High Contrast / forced-colors modes */
@media (forced-colors: active) {
  .btn,
  .nav a,
  .menu-toggle,
  .card,
  .tip,
  .contact-panel,
  .giving-box,
  .placeholder {
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }
}

/* User text selection remains obvious */
::selection {
  background: #1f2528;
  color: #ffffff;
}
