/* ============================================================
   CEMBORAIN · Site styles (layer 1: shell, nav, buttons, footer)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: var(--w-light);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}
.container--narrow { max-width: 880px; }

/* ----- density modifiers (Tweak) ----- */
body.density-cozy .section { padding-block: clamp(48px, 6vw, 88px); }
body.density-airy .section { padding-block: clamp(80px, 12vw, 160px); }

/* ----- Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* page transition */
.route-stage > .page { animation: pageIn 420ms var(--ease-out) both; }
@keyframes pageIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--c-line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
  gap: 24px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px;
  flex-shrink: 0;
}
.nav__logo img { height: 38px; width: auto; }

.nav__primary { flex: 1; display: flex; justify-content: center; }
.nav__list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.nav__list a {
  display: inline-block;
  font: 400 14px/1 var(--font-sans);
  color: var(--fg);
  letter-spacing: 0.005em;
  padding: 10px 16px;
  border-radius: 2px;
  position: relative;
  transition: color var(--dur-1) var(--ease);
}
.nav__list a:hover { color: var(--c-eucalyptus); }
.nav__list a.is-active { color: var(--c-eucalyptus); }
.nav__list a.is-active::after {
  content: ""; position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 1px;
  background: var(--c-eucalyptus);
}

.nav__cta {
  flex-shrink: 0;
  position: relative;
}
.nav__cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6FCB7B;
  box-shadow: 0 0 0 0 rgba(111, 203, 123, 0.55);
  animation: pulseDot 2.6s ease-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 203, 123, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(111, 203, 123, 0); }
}

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__sheet {
  display: none;
  position: fixed; inset: 75px 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--c-line);
  padding: 24px 28px 32px;
  z-index: 55;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.nav__sheet.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav__sheet ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.nav__sheet a {
  display: block;
  font: 400 22px/1.2 var(--font-serif);
  color: var(--fg);
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line-soft);
  letter-spacing: -0.005em;
}
.nav__sheet a.is-active { color: var(--c-eucalyptus); font-style: italic; }
.nav__sheet .btn { margin-top: 24px; align-self: flex-start; }

@media (max-width: 920px) {
  .nav__primary, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__sheet { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              transform var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--c-eucalyptus); color: var(--c-shell); }
.btn--primary:hover { background: var(--c-eucalyptus-deep); }
.btn--ghost { background: transparent; color: var(--c-eucalyptus); border-color: var(--c-eucalyptus); }
.btn--ghost:hover { background: var(--c-eucalyptus); color: var(--c-shell); }
.btn--soft { background: var(--c-oat); color: var(--fg); }
.btn--soft:hover { background: var(--c-line); }
.btn--inverse { background: var(--c-shell); color: var(--c-eucalyptus); }
.btn--inverse:hover { background: var(--c-sand); }
.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--c-oat); }
.section--deep {
  background: var(--c-eucalyptus);
  color: var(--c-shell);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(0,0,0,0.18), transparent 60%);
}
.section--deep h2, .section--deep h3 { color: var(--c-shell); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.section__eyebrow {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-driftwood);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 12px;
}
.section--deep .section__eyebrow { color: var(--c-sand); }
.section__title {
  font: 300 clamp(34px, 4.6vw, 52px)/1.12 var(--font-serif);
  letter-spacing: -0.012em;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}
.section__title em {
  font-style: italic; font-weight: 400; color: var(--c-eucalyptus);
}
.section--deep .section__title em { color: var(--c-sand); }
.section__sub {
  font: 300 17px/1.65 var(--font-sans);
  color: var(--c-driftwood);
  margin: 20px 0 0;
  max-width: 580px;
  text-wrap: pretty;
}
.section--deep .section__sub { color: rgba(249,249,248,0.78); }

/* Page hero (used on inner pages) */
.page-hero {
  padding: clamp(80px, 11vw, 132px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--c-line-soft);
  position: relative;
  overflow: hidden;
}
.page-hero__watermark {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
@media (max-width: 880px) { .page-hero__watermark { display: none; } }
.page-hero__eyebrow {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-driftwood);
  margin-bottom: 20px;
}
.page-hero__title {
  font: 400 clamp(40px, 5.6vw, 72px)/1.06 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  max-width: 900px;
  text-wrap: balance;
}
.page-hero__title em { font-style: italic; font-weight: 400; color: var(--c-eucalyptus); }
.page-hero__sub {
  font: 300 18px/1.65 var(--font-sans);
  color: var(--c-driftwood);
  margin: 24px 0 0;
  max-width: 620px;
  text-wrap: pretty;
}

/* ============================================================
   VALUES STRIP
   ============================================================ */
.values-strip {
  border-block: 1px solid var(--c-line);
  background: var(--bg);
}
.values-strip__row {
  padding-block: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.values-strip__item {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-driftwood);
  padding: 6px clamp(18px, 3vw, 36px);
  position: relative;
}
.values-strip__item:not(:last-child)::after {
  content: ""; position: absolute; right: -2px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-sand);
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .values-strip__item { padding: 6px 14px; font-size: 10px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-eucalyptus-deep);
  color: var(--c-shell);
  padding: 72px 0 32px;
  background-image:
    radial-gradient(ellipse at 90% 0%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(0,0,0,0.20), transparent 60%);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(249,249,248,0.10);
}
.footer__brand img { height: 56px; width: auto; }
.footer__logo {
  height: 110px !important;
  width: auto !important;
  opacity: 0.96;
}
.footer__tagline {
  font: 400 italic 19px/1.4 var(--font-serif);
  color: var(--c-sand);
  margin: 22px 0 14px;
  max-width: 240px;
}
.footer__brand-meta {
  font: 400 11px/1.5 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249,249,248,0.45);
  margin: 0;
  max-width: 260px;
}
.footer__heading {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin: 0 0 18px;
}
.footer__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font: 300 14px/1.4 var(--font-sans);
  color: rgba(249,249,248,0.78);
}
.footer__list a { transition: color var(--dur-1) var(--ease); }
.footer__list a:hover { color: var(--c-shell); }
.footer__phone {
  font: 600 16px/1 var(--font-sans);
  color: var(--c-shell);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px;
  font: 300 12px/1.4 var(--font-sans);
  color: rgba(249,249,248,0.55);
  flex-wrap: wrap; gap: 16px;
}
.footer__bottom-left {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer__bottom-left a { transition: color var(--dur-1) var(--ease); }
.footer__bottom-left a:hover { color: var(--c-shell); }
.footer__sep { color: rgba(249,249,248,0.3); }
.footer__remax {
  font: 400 11px/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249,249,248,0.55);
  display: inline-flex; align-items: center; gap: 12px;
}
.footer__remax .pip {
  width: 8px; height: 8px; border-radius: 1px;
  background: #E2001A;
  display: inline-block;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}
