/* =========================================================
   Owning Happiness Real Estate
   Blue + Deep Purple brand · Bold minimalist / editorial
   ========================================================= */

:root {
  /* Brand */
  --blue:        #1E6FE0;   /* site accent */
  --logo-orange: #F2871E;   /* logo only */
  --blue-dark:   #1657B8;
  --purple:      #3A2B5C;   /* the "Happiness" deep purple */
  --purple-deep: #2A1F45;
  --ink:         #1B1A22;

  /* Neutrals (warm, editorial) */
  --bg:          #F3EFE6;   /* page background */
  --bg-hero:     #EDE8DC;   /* warm hero backdrop */
  --surface:     #FBF9F4;
  --line:        #DED8C9;
  --muted:       #6D6A63;

  --on-dark:     #F3EFE6;
  --white:       #ffffff;

  /* Type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Scale / rhythm */
  --maxw: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(27,26,34,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--purple); color: var(--white);
  padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
/* Logo uses its own orange (brand), independent of the site's blue. */
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark { width: 68px; height: 56px; flex: 0 0 auto; }
.lm-roof-f { fill: var(--logo-orange); }
.lm-house  { stroke: var(--purple); }
.lm-bag-a { fill: var(--purple); }
.lm-bag-a-h { stroke: var(--purple); }
.lm-bag-b { fill: var(--logo-orange); }
.lm-bag-b-h { stroke: var(--logo-orange); }
.lm-face { fill: #FBF9F4; }
.lm-face-s { stroke: #FBF9F4; }

.logo-word { display: flex; flex-direction: column; line-height: .96; font-family: 'Montserrat', var(--font-display); }
.lw-line { font-weight: 800; font-size: 1.58rem; letter-spacing: -.01em; text-transform: uppercase; }
.lw-owning { color: var(--logo-orange); }
.lw-happiness { color: var(--purple); }
.lw-happiness-light { color: #C9BEE6; }
.lw-sub { font-weight: 700; color: var(--logo-orange); font-size: .82rem; margin-top: 3px; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .7rem clamp(1rem, 4vw, 2rem);
}
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  position: relative; padding: .3rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .2s var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.header-cta { margin-left: .3rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border: 0; margin-top: .6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-hero);
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
}
.hero-name {
  position: relative;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 26vw, 22rem);   /* JS refines this to fit exactly */
  line-height: .82;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--blue);
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);   /* own layer -> reliable first paint behind the portrait */
}

.hero-grid {
  position: relative;
  max-width: var(--maxw); margin: -7vw auto 0;  /* pull you up so your head rises into the name */
  display: grid;
  grid-template-columns: 1fr minmax(300px, 560px) 1fr;
  align-items: end;
  gap: clamp(1rem, 2vw, 2rem);
}

/* portrait */
.hero-center { position: relative; text-align: center; }
.hero-portrait {
  width: auto; max-width: 100%; max-height: 76vh; margin: 0 auto;
  filter: drop-shadow(0 26px 42px rgba(27, 26, 34, .22));
  animation: heroRise .8s var(--ease) .08s both;
}
.hero-headline {
  display: flex; flex-direction: column; align-items: center;
  margin-top: -1.2rem; position: relative; z-index: 4;
  animation: heroRise .8s var(--ease) .22s both;
}
.hero-cta-row { animation: heroRise .8s var(--ease) .34s both; }
.hero-left  { animation: heroRise .8s var(--ease) .34s both; }
.hero-right { animation: heroRise .8s var(--ease) .34s both; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hl-1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1; color: var(--ink); }
.hl-2 { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.05; color: var(--blue); }
.hero-cta-row { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

/* side columns */
.hero-left, .hero-right { padding-bottom: 2.4rem; }
.stat-card {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem; margin-bottom: .8rem;
  display: flex; gap: .7rem; align-items: center;
  backdrop-filter: blur(4px);
}
.stat-ico { width: 30px; height: 30px; stroke: var(--blue); flex: 0 0 auto; }
.stat-card strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.stat-card span { font-size: .82rem; color: var(--muted); }
.hero-tagline-left { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: .78rem; color: var(--purple); margin: 1rem 0 0; }

/* Promo banners (pulsing, click to reveal terms) */
/* Both banners live in one row, pinned at the SAME height, up around the middle. */
.hero-promos {
  position: absolute; top: clamp(11rem, 21vw, 18rem); left: 0; right: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.hero-promos .promo { width: min(31%, 330px); margin: 0; pointer-events: auto; }
.promo summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .015em;
  color: #fff; text-align: center;
  padding: 1.3rem 1.2rem; border-radius: 16px;
  transition: filter .15s var(--ease);
}
.promo summary::-webkit-details-marker { display: none; }
.promo summary:hover { filter: brightness(1.06); }
.promo-chev { width: 26px; height: 26px; flex: 0 0 auto; transition: transform .25s var(--ease); }
.promo[open] .promo-chev { transform: rotate(180deg); }

.promo-green summary { background: #16A34A; animation: promoPulseGreen 1.7s ease-in-out infinite; }
.promo-red summary   { background: #DC2626; animation: promoPulseRed   1.7s ease-in-out infinite; }

.promo-tc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .85rem 1rem; margin-top: .5rem;
  font-size: .84rem; line-height: 1.55; color: #3d3b45; text-align: left;
}
.promo-tc strong { display: block; color: var(--ink); margin-bottom: .4rem; font-family: var(--font-display); font-size: .95rem; }
.promo-tc p { margin: 0 0 .6rem; }
.promo-tc p:last-child { margin-bottom: 0; }

@keyframes promoPulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.0);  opacity: .92; }
  50%      { box-shadow: 0 0 20px 3px rgba(22,163,74,.6); opacity: 1; }
}
@keyframes promoPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.0);  opacity: .92; }
  50%      { box-shadow: 0 0 20px 3px rgba(220,38,38,.6); opacity: 1; }
}

.hero-right { text-align: left; }
.hero-right-label { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--ink); margin: 0 0 .6rem; }
.hero-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.hero-list li { display: flex; align-items: center; gap: .55rem; font-weight: 600; padding: .18rem 0; color: var(--ink); }
.hero-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.hero-right-copy { font-size: .9rem; color: var(--muted); max-width: 30ch; }

/* ---------- Sections shared ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  color: var(--blue); margin-bottom: .8rem;
}
.eyebrow-light { color: #B9AEE0; }
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .95;
  letter-spacing: -.03em; margin: 0; color: var(--ink);
}
.section-title-light { color: var(--white); }
.section-sub { margin: 1.2rem 0 0; max-width: 52ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-role { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--blue); }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--purple); box-shadow: var(--shadow); position: sticky; top: 92px; }
.about-photo img { width: 100%; aspect-ratio: 4/4; object-fit: cover; object-position: 50% 18%; }
.about-lead { font-size: 1.28rem; line-height: 1.5; font-weight: 600; color: var(--ink); margin-top: 0; }
.about-body p { color: #3d3b45; margin: 0 0 1.05rem; }
.about-body p strong { color: var(--purple); font-weight: 700; }
.about-body .btn { margin-top: .6rem; }
.about-points { list-style: none; padding: 1.2rem 1.3rem 1.4rem; margin: 0; display: grid; gap: .55rem; }
.about-points li { position: relative; padding-left: 1.7rem; font-weight: 500; font-size: .95rem; color: #EDE9F5; }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: .7rem; height: .38rem; border-left: 2.5px solid var(--secondary, #58A6FF); border-bottom: 2.5px solid #6FA8FF;
  transform: rotate(-45deg);
}

/* ---------- Listings ---------- */
.listings { max-width: none; padding: 0; }
.listings-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem); }
.listing-teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0 0 2.5rem; }
.teaser { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teaser-img { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--muted); }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser-tag { position: absolute; top: .8rem; left: .8rem; background: var(--white); color: var(--purple); font-family: var(--font-display); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .7rem; border-radius: 999px; }
.teaser-body { padding: 1rem 1.1rem 1.2rem; }
.teaser-price { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin: 0; color: var(--ink); }
.teaser-meta { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.listings-cta { text-align: center; }
.listings-note { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Sell / Appraisal ---------- */
.sell { max-width: none; padding: 0; background: var(--purple); color: var(--on-dark); }
.sell-grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sell-lead { font-size: 1.15rem; color: #E6E0F2; max-width: 46ch; }
.sell-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.sell-points li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.sell-points .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; position: relative; }
.sell-points .tick::after { content: ""; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); }

/* Forms */
.sell-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-title { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 0 0 1.2rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.req { color: var(--blue); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,111,224,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #D33; }
.err { color: #C22; font-size: .82rem; margin: .3rem 0 0; min-height: 0; }
.err:empty { display: none; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.ok { color: #157A3F; }
.form-status.bad { color: #C22; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-item {
  display: flex; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; transition: border-color .18s var(--ease), transform .18s var(--ease);
}
a.contact-item:hover { border-color: var(--blue); transform: translateX(3px); }
.contact-item svg { width: 30px; height: 30px; stroke: var(--blue); flex: 0 0 auto; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.contact-item strong { font-size: 1.08rem; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: var(--on-dark); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem); display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-logo .lw-owning { color: var(--logo-orange); }
.footer-tag { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; color: #C9BEE6; margin: 1rem 0 .4rem; }
.footer-region { max-width: 34ch; color: #B7AECF; font-size: .92rem; margin: 0; }
.footer-nav { display: grid; gap: .6rem; align-content: start; }
.footer-nav a { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; color: #E7E2F2; }
.footer-nav a:hover { color: #7FB0F5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem clamp(1rem, 4vw, 2rem); max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #A79ECB; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; margin-top: -12vw; }
  .hero-promos { position: static; order: 1; flex-direction: column; gap: .8rem; margin: 1rem auto 0; max-width: 440px; z-index: auto; }
  .hero-promos .promo { width: auto; }
  .hero-left { order: 2; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; padding-bottom: 0; }
  .hero-left .stat-card { margin-bottom: 0; }
  .hero-tagline-left { width: 100%; text-align: center; }
  .hero-right { order: 3; text-align: center; }
  .hero-list { display: inline-flex; flex-wrap: wrap; gap: .3rem 1.2rem; justify-content: center; }
  .hero-right-copy { margin: .6rem auto 0; }
  .about-grid, .sell-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 460px; }
  .listing-teasers { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(4rem, 30vw, 8rem); }
  .footer-inner { flex-direction: column; }
}
