/*
Theme Name: EstatesX Signature
Theme URI: https://estatesx.ca/
Author: EstatesX
Description: A bespoke, conversion-focused Toronto real estate theme for Aaron Habibi.
Version: 1.1.0
Text Domain: estatesx
*/

:root {
  --ink: #101418;
  --paper: #f6f3ed;
  --white: #fff;
  --gold: #c5a46d;
  --line: rgba(16, 20, 24, .16);
  --muted: #666b6f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(42px, 5vw, 68px); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 27px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: .25s ease; }
.button:hover, .button:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button--outline { background: transparent; border-color: rgba(255,255,255,.65); color: var(--white); }
.button--outline:hover, .button--outline:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.2); }
.site-header__inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 500; letter-spacing: .22em; }
.brand__logo { width: 50px; height: 50px; object-fit: contain; }
.brand__mark { display: grid; width: 34px; height: 39px; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 19px; letter-spacing: 0; transform: rotate(45deg); }
.brand__mark span { transform: rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
.site-nav__phone { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.25); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px auto; background: currentColor; }

.hero { position: relative; display: grid; min-height: 100svh; align-items: center; color: var(--white); background: #101820 url("assets/images/toronto-hero.png") center/cover no-repeat; }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5,10,15,.84) 0%, rgba(5,10,15,.55) 42%, rgba(5,10,15,.22) 72%, rgba(5,10,15,.45) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 800px; padding-top: 100px; }
.hero h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(62px, 8vw, 112px); letter-spacing: -.015em; }
.hero__intro { max-width: 620px; margin: 0 0 34px; color: rgba(255,255,255,.84); font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__credit { position: absolute; right: 34px; bottom: 28px; z-index: 1; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.trustbar { background: var(--ink); color: var(--white); }
.trustbar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trustbar__item { padding: 30px 35px; border-right: 1px solid rgba(255,255,255,.15); text-align: center; }
.trustbar__item:last-child { border-right: 0; }
.trustbar strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.trustbar span { color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

.intro { padding: 130px 0; background: var(--paper); }
.intro__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 9vw, 130px); }
.agent-portrait { position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden; background: #d8d3c9; }
.agent-portrait::after { position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.55); content: ""; pointer-events: none; }
.agent-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.intro__copy h2 { margin-bottom: 26px; }
.intro__copy p:not(.eyebrow) { color: var(--muted); }
.signature { margin: 28px 0 33px; font-family: var(--serif); font-size: 30px; font-style: italic; }

.services { padding: 120px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-card { padding: 42px 34px 38px 0; border-bottom: 1px solid var(--line); }
.service-card + .service-card { padding-left: 34px; border-left: 1px solid var(--line); }
.service-card__number { color: var(--gold); font-size: 11px; letter-spacing: .15em; }
.service-card h3 { margin: 55px 0 18px; font-size: 38px; }
.service-card p { min-height: 82px; color: var(--muted); }
.text-link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }

.valuation { position: relative; padding: 130px 0; color: var(--white); background: #141b20; overflow: hidden; }
.valuation::after { position: absolute; width: 540px; height: 540px; right: -170px; top: -220px; border: 1px solid rgba(197,164,109,.3); border-radius: 50%; content: ""; }
.valuation__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.valuation h2 { max-width: 560px; }
.valuation p { color: rgba(255,255,255,.65); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form label { display: block; color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; margin-top: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0; outline: 0; background: transparent; color: var(--white); font: inherit; }
.lead-form select option { color: var(--ink); }
.lead-form textarea { min-height: 72px; resize: vertical; }
.lead-form__full { grid-column: 1/-1; }
.lead-form .button { border-color: var(--gold); background: var(--gold); color: var(--ink); cursor: pointer; }

.communities { padding: 120px 0; background: var(--paper); }
.communities__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.community { position: relative; display: flex; grid-column: span 3; min-height: 430px; align-items: end; padding: 34px; overflow: hidden; background: #20272b; color: var(--white); isolation: isolate; }
.community::before { position: absolute; z-index: 2; inset: 16px; border: 1px solid rgba(255,255,255,.44); content: ""; pointer-events: none; }
.community::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(8,12,15,.05) 30%, rgba(8,12,15,.82) 100%); content: ""; }
.community img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.community:hover img { transform: scale(1.045); }
.community:nth-child(1) { grid-column: span 7; min-height: 620px; }
.community:nth-child(2) { grid-column: span 5; min-height: 620px; }
.community:nth-child(1) h3, .community:nth-child(2) h3 { font-size: clamp(42px, 4vw, 60px); }
.community::marker { display: none; }
.community__content::before { display: block; margin-bottom: 13px; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.community:nth-child(1) .community__content::before { content: "01 / Neighbourhood"; }
.community:nth-child(2) .community__content::before { content: "02 / Neighbourhood"; }
.community:nth-child(3) .community__content::before { content: "03 / Neighbourhood"; }
.community:nth-child(4) .community__content::before { content: "04 / Neighbourhood"; }
.community:nth-child(5) .community__content::before { content: "05 / Neighbourhood"; }
.community:nth-child(6) .community__content::before { content: "06 / Neighbourhood"; }
.community__content { position: relative; z-index: 3; }
.community h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 38px; font-weight: 500; }
.community span { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.contact-strip { padding: 100px 0; text-align: center; }
.contact-strip h2 { max-width: 880px; margin: 0 auto 28px; }
.contact-strip__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-bottom: 32px; color: var(--muted); }
.site-footer { padding: 65px 0 28px; background: #0b0e11; color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; padding-bottom: 55px; }
.site-footer h3 { font-family: var(--sans); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .08em; }
.page-hero { padding: 180px 0 90px; color: var(--white); background: #172027; }
.page-hero h1 { margin: 0; font-size: clamp(54px, 7vw, 90px); }
.page-content { padding: 90px 0; }

@media (max-width: 920px) {
  .community, .community:nth-child(1), .community:nth-child(2) { grid-column: 1 / -1; min-height: 500px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; background: rgba(10,14,17,.98); opacity: 0; pointer-events: none; transition: .25s; }
  .site-nav.is-open { z-index: 10; opacity: 1; pointer-events: auto; }
  .site-nav a { font-family: var(--serif); font-size: 30px; letter-spacing: .03em; text-transform: none; }
  .site-nav__phone { padding-left: 0; border-left: 0; }
  .menu-toggle { position: relative; z-index: 11; }
  .intro__grid, .valuation__grid { grid-template-columns: 1fr; }
  .services__grid, .communities__grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { padding: 35px 0; border-left: 0; }
  .service-card h3 { margin-top: 25px; }
  .service-card p { min-height: 0; }
  .community { min-height: 320px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .community, .community:nth-child(1), .community:nth-child(2) { min-height: 430px; }
  .container { width: min(100% - 28px, 1180px); }
  .brand { font-size: 18px; }
  .hero h1 { font-size: 57px; }
  .hero__credit { display: none; }
  .trustbar__grid { grid-template-columns: 1fr; }
  .trustbar__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .intro, .services, .communities, .valuation { padding: 82px 0; }
  .section-heading { display: block; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form__full { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 35px; }
  .footer__bottom { display: block; }
}

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

