/*
Theme Name: Britney Auclair Real Estate
Theme URI: https://britneyauclair.ca
Author: Britney Auclair
Description: A clean, editable WordPress block theme for Britney Auclair, REALTOR®, Real Broker AB Ltd.
Version: 2.7.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: britney-auclair
*/

:root {
  --ba-ink: #1d1d1d;
  --ba-graphite: #615b56;
  --ba-blue: #BFDDDB;
  --ba-blue-dark: #527875;
  --ba-blue-wash: rgba(191, 221, 219, .24);
  --ba-warm: #fbfaf7;
  --ba-line: #e7e6e3;
  --ba-cobalt: #050e3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ba-ink); }
body, button, input, select, textarea { font-family: Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.wp-site-blocks { padding: 0; }
.ba-main p { color: var(--ba-graphite); line-height: 1.7; }

.ba-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 11px 3.2vw;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(191, 221, 219, .48);
}
.ba-brand-logo { margin: 0; width: 230px; }
.ba-brand-logo img { display: block; width: 100%; height: auto; }
.ba-nav { justify-self: center; }
.ba-nav .wp-block-navigation-item__content { font-size: 14px; }
.ba-header-cta {
  justify-self: end;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .17em;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--ba-blue);
}
.ba-brokerage-bar {
  margin: 0 !important;
  padding: 7px 20px !important;
  text-align: center;
  background: var(--ba-cobalt);
  color: #fff;
  font-size: 10px;
  letter-spacing: .09em;
}

.ba-section { padding: 125px max(7vw, 32px); }
.ba-eyebrow {
  margin-top: 0;
  color: var(--ba-blue) !important;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ba-display,
.ba-section-title {
  margin-top: 0;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.05em;
}
.ba-display { font-size: clamp(54px, 5.2vw, 86px); }
.ba-section-title { font-size: clamp(39px, 4vw, 64px); }
.ba-lead { max-width: 760px; font-size: 20px; }
.ba-button .wp-block-button__link,
.ba-submit {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 29px;
  border: 1px solid var(--ba-blue-dark);
  border-radius: 0;
  background: var(--ba-blue);
  color: #06101a;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.ba-button .wp-block-button__link:hover,
.ba-button .wp-block-button__link:focus-visible,
.ba-submit:hover,
.ba-submit:focus-visible {
  background: #d7eae8;
  border-color: var(--ba-blue-dark);
}
.ba-text-link {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ba-blue);
  color: var(--ba-ink);
  font-weight: 550;
}

.ba-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: stretch;
  overflow: hidden;
}
.ba-hero-copy {
  padding: clamp(64px, 8vh, 92px) 3vw clamp(50px, 6vh, 72px) 8vw;
  position: relative;
  z-index: 2;
}
.ba-hero-note { margin-top: 52px; }
.ba-hero-note-label { color: var(--ba-blue) !important; font-size: 11px; font-weight: 650; letter-spacing: .22em; }
.ba-accent-rule { width: 38px; height: 2px; margin: 23px 0; background: var(--ba-blue); }
.ba-hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 32px; }
.ba-hero-image {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--ba-warm);
}
.ba-hero-image:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 20%;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.75), transparent);
  pointer-events: none;
}
.ba-hero-image:after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 2;
  width: 16%;
  background: linear-gradient(270deg, #fff, rgba(255,255,255,.68), transparent);
  pointer-events: none;
}
.ba-hero-image figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.ba-hero-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 12%;
}

.ba-intro {
  width: 100%;
  max-width: 1240px;
  padding-top: 125px;
  padding-bottom: 125px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, rgba(191,221,219,.16) 100%);
}
.ba-intro .ba-eyebrow {
  margin-bottom: 0;
}
.ba-intro .ba-section-title {
  max-width: 1220px;
  margin: 30px auto;
}
.ba-intro .ba-lead {
  max-width: 900px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}
.ba-homes {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.9fr) minmax(0,1fr);
  align-items: center;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}
.ba-home-image { position: relative; margin: 0; }
.ba-home-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba-home-image:after { content: ""; position: absolute; inset: -1px; pointer-events: none; }
.ba-home-left:after { background: linear-gradient(90deg, transparent 58%, rgba(255,255,255,.35) 76%, #fff 100%); }
.ba-home-right:after { background: linear-gradient(270deg, transparent 58%, rgba(255,255,255,.35) 76%, #fff 100%); }
.ba-homes-copy { position: relative; z-index: 1; padding: 0 2.2vw; text-align: center; }
.ba-pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; background: var(--ba-blue-wash); }
.ba-card { border-top: 2px solid var(--ba-blue); padding-top: 28px; }
.ba-number { color: var(--ba-blue-dark) !important; font-size: 12px; letter-spacing: .2em; }
.ba-card h3, .ba-value h3, .ba-process-card h3 { font-size: 31px; font-weight: 450; letter-spacing: -.03em; }
.ba-quote { text-align: center; }
.ba-quote p:first-child { margin: 0 0 22px; color: var(--ba-ink); font-size: clamp(36px,4vw,64px); letter-spacing: -.04em; }
.ba-quote p:last-child { color: var(--ba-ink); font-size: 10px; letter-spacing: .23em; }
.ba-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(191,221,219,.32), rgba(251,250,247,.78));
}
.ba-cta .ba-section-title {
  margin: 30px auto 44px;
}

/*
 * Match the final Buying and Selling calls to action to the left-aligned
 * rhythm used throughout those pages. The page-specific body classes are
 * added in functions.php so the centred homepage call to action is unchanged.
 */
.ba-page-buying .ba-cta,
.ba-page-selling .ba-cta {
  text-align: left;
}
.ba-page-buying .ba-cta .ba-section-title,
.ba-page-selling .ba-cta .ba-section-title {
  margin-left: 0;
  margin-right: 0;
}
.ba-page-buying .ba-cta .wp-block-buttons,
.ba-page-selling .ba-cta .wp-block-buttons,
.ba-page-buying .ba-cta .is-content-justification-center,
.ba-page-selling .ba-cta .is-content-justification-center {
  justify-content: flex-start !important;
}

.ba-interior-hero {
  padding-top: 14vh;
  padding-bottom: 14vh;
  border-bottom: 1px solid rgba(191,221,219,.72);
  background: linear-gradient(135deg, #fff 0%, #fff 64%, rgba(191,221,219,.22) 100%);
}
.ba-interior-hero .ba-display { max-width: 1020px; margin: 25px 0 32px; }
.ba-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: center; }
.ba-about-image { margin: 0; overflow: hidden; background: #fff; }
.ba-about-image img { display: block; width: 100%; max-height: 760px; object-fit: cover; object-position: center top; }
.ba-story-copy p { font-size: 17px; }
.ba-story-copy > p:not(.ba-eyebrow) {
  line-height: 1.82;
}
.ba-story-copy > p:not(.ba-eyebrow) + p:not(.ba-eyebrow) {
  margin-top: 20px;
}
.ba-story-copy > .wp-block-buttons { margin-top: 32px; }
.ba-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 5vw; background: var(--ba-blue-wash); }
.ba-value > p:first-child, .ba-process-card > p:first-child { color: var(--ba-blue-dark) !important; font-size: 12px; letter-spacing: .18em; }
.ba-guide-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: var(--ba-cobalt);
  color: #fff;
}
.ba-guide-banner p { color: #d6d9e5; }
.ba-guide-banner .ba-eyebrow { color: var(--ba-blue) !important; }
.ba-guide-banner .ba-section-title { margin-bottom: 14px; }
.ba-process { display: grid; grid-template-columns: repeat(2,1fr); gap: 65px 8vw; }
.ba-process > .ba-eyebrow { grid-column: 1/-1; }
.ba-process-card { border-top: 2px solid var(--ba-blue); padding-top: 28px; }

.ba-contact {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 8vw, 130px);
  align-items: start;
}
.ba-contact h2 { margin: 25px 0 0; font-size: 44px; }
.ba-contact-note { margin-top: 60px; }
.ba-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: max-content;
  gap: 30px 28px;
  align-content: start;
  align-items: start;
}
.ba-form label {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .1em;
}
.ba-form label.ba-full, .ba-form .ba-full { grid-column: 1/-1; }
.ba-form input, .ba-form select, .ba-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #bfc3bf;
  border-radius: 0;
  background: transparent;
  color: var(--ba-ink);
  padding: 12px 2px 13px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  box-shadow: none;
}
.ba-form input,
.ba-form select {
  min-height: 48px;
}
.ba-form textarea {
  min-height: 150px;
  resize: vertical;
}
.ba-form input:focus,
.ba-form select:focus,
.ba-form textarea:focus {
  outline: 0;
  border-bottom-color: var(--ba-blue-dark);
}
.ba-form .ba-full {
  margin-top: 4px;
}
.ba-form-status {
  grid-column: 1/-1;
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--ba-blue-dark);
  background: rgba(191,221,219,.28);
  color: var(--ba-ink) !important;
  font-size: 14px;
  line-height: 1.55;
}
.ba-form-status.is-error {
  border-left-color: #a53b32;
  background: #fff4f2;
}
.ba-form .ba-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ba-guide-landing {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10vw;
  align-items: center;
  background: linear-gradient(135deg,#fff 0%,#fff 55%,rgba(191,221,219,.28) 100%);
}
.ba-guide-form { padding: 48px; background: #fff; box-shadow: 0 25px 80px rgba(5,14,61,.1); }
.ba-guide-form .ba-form { grid-template-columns: 1fr; gap: 24px; }
.ba-guide-form .ba-form label { grid-column: auto; }
.ba-guide-form small { color: #73777a; line-height: 1.5; }

.ba-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 45px;
  padding: 68px max(7vw,32px) 35px;
  background: var(--ba-ink);
  color: #fff;
}
.ba-footer p { color: #bbb; }
.ba-footer-logo { margin: 0 0 18px; width: 106px; }
.ba-footer-logo img { width: 100%; height: auto; }
.ba-footer-contact { display: grid; align-content: start; gap: 10px; font-size: 14px; }
.ba-footer-links { display: flex; justify-content: flex-end; align-content: flex-start; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.ba-footer-wide { grid-column: 1/-1; }
.ba-footer small { display: block; padding-top: 26px; border-top: 1px solid #363936; color: #9b9b9b; line-height: 1.6; }

/*
 * Keep the approved full-width section backgrounds while bringing the
 * desktop content into a calmer, centred reading width.
 */
@media (min-width: 1200px) {
  .ba-header {
    padding-left: max(3.2vw, calc((100vw - 1600px) / 2));
    padding-right: max(3.2vw, calc((100vw - 1600px) / 2));
  }

  .ba-hero,
  .ba-homes {
    width: 100%;
    max-width: 1600px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ba-hero-copy {
    padding-left: clamp(72px, 6vw, 110px);
    padding-right: clamp(28px, 3vw, 48px);
  }

  .ba-section:not(.ba-intro):not(.ba-homes) {
    padding-left: max(7vw, calc((100vw - 1280px) / 2));
    padding-right: max(7vw, calc((100vw - 1280px) / 2));
  }

  .ba-intro {
    width: 100%;
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px;
    padding-right: 32px;
  }

  .ba-footer {
    padding-left: max(7vw, calc((100vw - 1280px) / 2));
    padding-right: max(7vw, calc((100vw - 1280px) / 2));
  }
}

@media (max-width: 980px) {
  .ba-header { min-height: 78px; grid-template-columns: 1fr auto; }
  .ba-brand-logo { width: 185px; }
  .ba-nav { justify-self: end; }
  .ba-header-cta { display: none; }
  .ba-hero { min-height: auto; display: flex; flex-direction: column; }
  .ba-hero-copy { width: 100%; padding: 9vh 7vw 7vh; }
  .ba-hero-image { min-height: 0; height: 72vh; }
  .ba-hero-image:before { inset: 0 0 auto; width: 100%; height: 18%; background: linear-gradient(180deg,#fff,rgba(255,255,255,.6),transparent); }
  .ba-hero-image:after { display: none; }
  .ba-homes { grid-template-columns: 1fr 1fr; }
  .ba-homes-copy { grid-column: 1/-1; grid-row: 1; padding: 0 4vw 48px; }
  .ba-home-left:after, .ba-home-right:after { background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,.35) 25%,transparent 45%); }
  .ba-story, .ba-contact, .ba-guide-landing { grid-template-columns: 1fr; }
  .ba-contact { gap: 64px; }
  .ba-contact > label,
  .ba-contact > .ba-full { grid-column: 1; }
  .ba-values { grid-template-columns: 1fr; }
  .ba-guide-banner { align-items: flex-start; flex-direction: column; }
  .ba-footer { grid-template-columns: 1fr; }
  .ba-footer-links { justify-content: flex-start; }
  .ba-footer-wide { grid-column: auto; }
}

@media (max-width: 600px) {
  .ba-brand-logo { width: 160px; }
  .ba-header-cta { font-size: 9px; }
  .ba-brokerage-bar { font-size: 9px; }
  .ba-display { font-size: 45px; }
  .ba-hero-copy { padding-top: 8vh; }
  .ba-hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .ba-hero-image { height: 65vh; }
  .ba-section { padding: 88px 24px; }
  .ba-homes { grid-template-columns: 1fr; }
  .ba-homes-copy { grid-column: auto; padding: 0 24px 38px; }
  .ba-pathways, .ba-process, .ba-form { grid-template-columns: 1fr; }
  .ba-process > .ba-eyebrow, .ba-form label.ba-full, .ba-form .ba-full { grid-column: auto; }
  .ba-guide-form { padding: 30px 24px; }
  .ba-footer { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
