/* ============ TOKENS: Bilien's brand colors (green, white, light gray) ============ */
:root {
  --green: #1f4d3a;        /* forest, primary */
  --green-rgb: 31, 77, 58;
  --green-deep: #163a2b;
  --leaf: #3f8a5f;         /* accent */
  --sage: #9cc5a8;         /* accent on dark */
  --mint: #e7f1ea;         /* tint */
  --white: #ffffff;
  --gray-50: #f6f7f5;      /* light gray background */
  --gray-100: #eceeeb;
  --gray-300: #d3d8d2;
  --text: #1d2420;
  --muted: #5c6660;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(var(--green-rgb), .10);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--green-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
h2 em, h1 em { font-style: italic; color: var(--leaf); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.head { max-width: 680px; margin-bottom: 48px; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin: 0 0 14px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px;
  background: var(--green); color: var(--white); text-decoration: none; font: 500 .95rem var(--sans);
  border: 0; cursor: pointer; transition: background .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--leaf); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--green-rgb), .25); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--full { width: 100%; }
.link-arrow { color: var(--green); font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .25s; }
.link-arrow:hover span { transform: translateX(5px); }

/* ============ NAV ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; transition: background .3s, box-shadow .3s, padding .3s; }
.nav.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--gray-100); padding: 10px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--green-deep); margin: 0; }
.logo__sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--text); position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--leaf); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; position: relative; z-index: 2; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green-deep); margin: 6px 0; }

/* ============ HERO ============ */
.hero { position: relative; padding: 140px 0 80px; background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--gray-300); padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: var(--muted); margin: 0 0 26px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(63,138,95,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63,138,95,0); } 100% { box-shadow: 0 0 0 0 rgba(63,138,95,0); } }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero__ctas { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

/* Swapping word with marker-highlight swipe */
.swap { display: block; position: relative; height: 1.25em; }
.swap__word { position: absolute; left: 0; top: 0; font-style: italic; color: var(--green); white-space: nowrap; opacity: 0; transform: translateY(.3em); transition: opacity .5s, transform .5s; }
.swap__word::before {
  content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .08em; height: .38em; z-index: -1;
  background: var(--mint); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.7,0,.2,1) .25s;
}
.swap__word.is-on { opacity: 1; transform: none; }
.swap__word.is-on::before { transform: scaleX(1); background: #cfe6d6; }

/* Trust row */
.trust { list-style: none; padding: 26px 0 0; margin: 40px 0 0; display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid var(--gray-100); }
.trust li { display: flex; flex-direction: column; }
.trust strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--green-deep); }
.trust span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* Hero visual */
.hero__visual { position: relative; justify-self: center; width: min(440px, 100%); }
.arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); outline: 1.5px solid var(--sage); outline-offset: 10px; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 30%; animation: slowzoom 14s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.blob { position: absolute; width: 120%; height: 90%; left: -10%; top: 12%; background: var(--mint); border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; animation: morph 12s ease-in-out infinite alternate; }
@keyframes morph { 50% { border-radius: 60% 40% 38% 62% / 42% 60% 40% 58%; transform: rotate(6deg); } 100% { border-radius: 40% 60% 55% 45% / 58% 38% 62% 42%; transform: rotate(-4deg); } }
.ring { position: absolute; width: 150px; height: 150px; right: -36px; top: -20px; border: 1.5px dashed var(--sage); border-radius: 50%; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: var(--white);
  padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: 0 14px 34px rgba(var(--green-rgb), .16);
  animation: bob 5s ease-in-out infinite;
}
.float strong { display: block; font-size: .9rem; color: var(--green-deep); }
.float span { font-size: .78rem; color: var(--muted); }
.float__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.float__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.float--1 { left: -48px; top: 14%; }
.float--2 { right: -40px; top: 52%; animation-delay: -1.7s; }
.float--3 { left: -24px; bottom: 6%; animation-delay: -3.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Entrance */
.in { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ MARQUEE ============ */
.marquee { background: var(--green); color: var(--white); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic; align-items: center; }
.marquee__track i { font-style: normal; color: var(--sage); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__text p { color: var(--muted); }
.about__lic { font-size: .82rem; margin-top: 24px; }
.values { display: grid; gap: 16px; }
.value { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid transparent; transition: border-color .3s, transform .3s, background .3s; }
.value:hover { border-color: var(--sage); background: var(--white); transform: translateX(6px); }
.value__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: var(--sage); display: grid; place-items: center; flex-shrink: 0; }
.value__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin: 2px 0 4px; font-size: 1.3rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============ PRESS ============ */
.press { background: var(--mint); padding: clamp(64px, 9vw, 110px) 0; text-align: center; position: relative; overflow: hidden; }
.press::before { content: "\201C"; position: absolute; top: -.15em; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 22rem; line-height: 1; color: rgba(var(--green-rgb), .07); pointer-events: none; }
.press__inner { position: relative; max-width: 900px; }
.press blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3; color: var(--green-deep); margin: 0 0 22px; }
.press__by { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }

/* ============ STATS ============ */
.stats { padding: 56px 0; border-bottom: 1px solid var(--gray-100); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 8px 16px; }
.stat + .stat { border-left: 1px solid var(--gray-100); }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--green); line-height: 1.1; }
.stat__label { font-size: .85rem; color: var(--muted); }

/* ============ SERVICES TABS ============ */
.services { background: var(--gray-50); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button {
  font: 500 .92rem var(--sans); padding: 11px 20px; border-radius: 999px; border: 1px solid var(--gray-300);
  background: var(--white); color: var(--text); cursor: pointer; transition: all .25s;
}
.tabs button:hover { border-color: var(--leaf); }
.tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }
.panel.is-on { animation: fadeup .5s ease; }
.panel[hidden] { display: none; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.panel p { color: var(--muted); margin: 0 0 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 14px 16px 14px 50px; background: var(--gray-50); border-radius: 14px; font-weight: 500; font-size: .95rem; }
.checks li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* ============ PROCESS ============ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px; background: var(--gray-100); }
.steps::after { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.6,0,.2,1); }
.steps.visible::after { transform: scaleX(1); }
.step { position: relative; }
.step__num { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; background: var(--white); border: 2px solid var(--leaf); color: var(--green); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 20px; transition: background .4s, color .4s; }
.steps.visible .step__num { background: var(--green); color: var(--white); border-color: var(--green); }
.steps.visible .step:nth-child(2) .step__num { transition-delay: .45s; }
.steps.visible .step:nth-child(3) .step__num { transition-delay: .9s; }
.steps.visible .step:nth-child(4) .step__num { transition-delay: 1.35s; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============ NEIGHBORHOODS CAROUSEL ============ */
.hoods { background: var(--gray-50); }
.hoods__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.hoods__head h2 { margin: 0; }
.hoods__nav { display: flex; gap: 10px; flex-shrink: 0; }
.circle-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gray-300); background: var(--white); font-size: 1.15rem; color: var(--green); cursor: pointer; transition: all .25s; }
.circle-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.hoods__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(16px, calc((100% - 1200px) / 2)) 24px; scroll-padding-inline: max(16px, calc((100% - 1200px) / 2));
}
.hoods__track::-webkit-scrollbar { display: none; }
.hood { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(var(--green-rgb), .06); transition: transform .3s, box-shadow .3s; }
.hood:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hood img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.hood:hover img { transform: scale(1.04); }
.hood__body { padding: 22px 24px 26px; }
.hood__body h3 { margin-bottom: 6px; }
.hood__body p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ============ LISTINGS ============ */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); transition: transform .3s, box-shadow .3s; }
.listing:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ph { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, var(--gray-50) 0 14px, var(--gray-100) 14px 28px); display: grid; place-items: center; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.listing__body { padding: 20px 22px 24px; }
.listing__body p { margin: 0; color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; background: var(--mint); color: var(--green); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }

/* ============ REVIEWS ============ */
.reviews { background: var(--green); color: var(--white); text-align: center; }
.reviews__inner { max-width: 860px; }
.reviews .kicker { color: var(--sage); }
.stars { color: var(--sage); letter-spacing: .3em; font-size: 1.1rem; margin-bottom: 20px; }
.reviews blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.35; margin: 0 0 24px; }
.reviews__by { color: rgba(255,255,255,.7); margin: 0; }
.reviews__by strong { color: var(--white); }

/* ============ CONTACT ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__copy > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact__list li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.contact__list span { width: 96px; flex-shrink: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); font-weight: 600; padding-top: 3px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--leaf); }
.form { display: grid; gap: 18px; background: var(--gray-50); padding: clamp(26px, 4vw, 42px); border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 500; }
.form input:not([type="radio"]), .form textarea {
  font: inherit; font-size: .95rem; padding: 13px 14px; border: 1px solid var(--gray-300); border-radius: 12px; background: var(--white); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--mint); }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-size: .84rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.form__chips label { display: block; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); cursor: pointer; font-size: .88rem; transition: all .2s; }
.form__chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.form__chips input:focus-visible + span { box-shadow: 0 0 0 3px var(--sage); }

/* ============ FOOTER ============ */
.footer { background: var(--gray-50); border-top: 1px solid var(--gray-100); padding: 44px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__small { font-size: .82rem; color: var(--muted); margin: 6px 0 0; line-height: 1.7; }
.footer__small p { margin: 0; }
.footer__right { text-align: right; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .contact__grid, .panel { grid-template-columns: 1fr; }
  .hero__visual { width: min(380px, 80%); margin-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); flex-direction: column; align-items: flex-start; background: var(--white); padding: 100px 32px; gap: 22px; transform: translateX(100%); transition: transform .35s; box-shadow: -10px 0 30px rgba(0,0,0,.08); }
  .nav.open .nav__links { transform: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .float--1 { left: -14px; top: auto; bottom: 30%; } .float--2 { right: -14px; top: auto; bottom: 8%; } .float--3 { display: none; }
  .float { padding: 9px 14px 9px 9px; } .float__icon { width: 32px; height: 32px; }
  .ring { display: none; }
  .steps, .listing-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hoods__nav { display: none; }
  .footer__right { text-align: left; }
  .trust { gap: 22px; }
  .swap { font-size: .85em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .arch img, .blob, .ring, .float, .marquee__track, .pill__dot { animation: none; }
  .steps::after { transition: none; }
}
