/* ============================================================
   Cédric LeBlanc — REALTOR® landing page
   Palette: graphite black · EXIT teal · stone  (Oswald + Manrope)
   ============================================================ */

:root {
  /* Palette: graphite black · EXIT teal · stone */
  --ink:        #22252b;
  --ink-soft:   #2d3138;
  --accent:        #00acbc;  /* EXIT brand teal */
  --accent-deep:   #008c9a;
  --accent-bright: #44c2d2;  /* brighter teal highlight */
  --cream:      #efeeec;
  --cream-2:    #e6e4e0;
  --paper:      #ffffff;
  --text:       #15171b;
  --muted:      #5b6066;
  --line:       rgba(15, 17, 20, 0.12);

  --font-serif: "Oswald", "Arial Narrow", sans-serif;
  --font-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 24px 60px -28px rgba(34, 37, 43, 0.5);
  --shadow-sm: 0 12px 30px -18px rgba(34, 37, 43, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.1px;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--light { color: var(--accent); }

.section__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.section__title--light { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.45s var(--ease), background 0.4s var(--ease),
              color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--lg { padding: 1.15rem 2.6rem; font-size: 1rem; }
.btn--gold { background: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: padding 0.5s var(--ease);
  padding: 0.5rem 0;
}
/* Background/blur on a pseudo-element so it does NOT create a containing
   block that would trap the fixed mobile menu inside the header strip. */
.nav::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(239, 238, 236, 0);
  box-shadow: 0 1px 0 transparent;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
}
.nav.scrolled::before {
  background: rgba(34, 37, 43, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Dim scrim behind the open mobile menu */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 28, 0.65);
  z-index: 880;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--paper);
}
.brand__sub {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--accent);
  color: var(--paper) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); background: var(--accent-deep); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.3s;
}
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("hero-living-room.jpg?v=1") center/cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.18); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(34,37,43,0.5) 0%, rgba(34,37,43,0.76) 70%, rgba(34,37,43,0.88) 100%),
    linear-gradient(to top, rgba(34,37,43,0.88), transparent 55%);
}
.hero__content {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  color: var(--paper);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.4rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 1.8rem auto 2.4rem;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- About ---------- */
.about { padding-block: clamp(5rem, 10vw, 9rem); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 50%, #3b4048 100%);
}
.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about__badge {
  position: absolute;
  bottom: -22px; right: -14px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.95rem 1.3rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.about__badge-logo { width: 116px; height: auto; display: block; }

.about__body p:not(.eyebrow) { color: var(--text); margin: 0 0 1.1rem; max-width: 56ch; }
.about__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
  margin: 1.8rem 0 2.2rem;
}
.about__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: var(--cream); }
.stats__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.stat { text-align: center; position: relative; padding: 0.5rem; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat__num, .stat__plus {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat__num--word { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 2px; }
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ---------- Listings carousel ---------- */
.listings { padding-bottom: clamp(4rem, 8vw, 6rem); }
.listings__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.listings__head .section__title { margin-bottom: 0; }
.listings__note { color: var(--muted); max-width: 38ch; font-size: 0.95rem; }
.listings__note a { color: var(--accent-deep); font-weight: 700; }
.listings__note a:hover { text-decoration: underline; }

/* Draft: two stacked carousels (Homes / Lots) instead of one combined feed */
.listings__group + .listings__group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.listings__subhead {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.listings__subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.carousel { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.carousel__viewport { overflow: hidden; flex: 1; padding: 0.5rem; margin: -0.5rem; }
.carousel__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.card {
  flex: 0 0 auto;
  width: var(--card-w, 360px);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__status {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}
.card__price {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.2rem 1.2rem 0.9rem;
  background: linear-gradient(to top, rgba(34,37,43,0.88), transparent);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
}
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__addr { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.card__city { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.card__type {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}
.card__specs {
  display: flex;
  gap: 1.3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.card__specs span { display: flex; align-items: baseline; gap: 0.35rem; }
.card__specs b { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); }
.card__link {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--ease);
}
.card:hover .card__link { gap: 0.7rem; }

.carousel__arrow {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), opacity 0.3s;
  z-index: 3;
}
.carousel__arrow:hover { background: var(--accent); color: var(--ink); transform: scale(1.08); }
.carousel__arrow:disabled { opacity: 0.35; cursor: default; transform: none; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
}
.carousel__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(34,37,43,0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}
.carousel__dots button.active { width: 28px; border-radius: 100px; background: var(--accent-deep); }

/* ---------- Recent listings (Google Sheet driven) ---------- */
/* Tighter top gap after the Approach section (still comfortable on mobile) */
.listings.section { padding-top: clamp(2.25rem, 4.5vw, 4rem); }
.listings__head { display: block; max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.listings__head .section__title { margin-bottom: 1.4rem; }
.listings__head .eyebrow { display: inline-flex; justify-content: center; }
.listings__lead { color: var(--muted); font-size: 1.05rem; margin: 0 auto; }

.listings__carousel { position: relative; margin-top: clamp(2rem, 4vw, 3rem); }

.listings__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.6rem) / 4); /* 4 cards per row */
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.75rem 0 3.5rem;
}
.listings__grid::-webkit-scrollbar { display: none; }
.listing { scroll-snap-align: start; }

/* Hover/click edges that rotate the carousel */
.listings__edge {
  position: absolute;
  top: 0; bottom: 0;
  width: 9%;
  min-width: 56px;
  border: 0;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.listings__edge[hidden] { display: none; }
.listings__carousel:hover .listings__edge { opacity: 1; }
.listings__edge--prev { left: 0; justify-content: flex-start; padding-left: 0.6rem;
  background: linear-gradient(to right, var(--cream) 30%, rgba(239,238,236,0)); }
.listings__edge--next { right: 0; justify-content: flex-end; padding-right: 0.6rem;
  background: linear-gradient(to left, var(--cream) 30%, rgba(239,238,236,0)); }
.listings__edge::before {
  content: "";
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}
.listings__edge--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efeeec' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}
.listings__edge--next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efeeec' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.listing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.listing:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.listing__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  overflow: hidden;
}
.listing__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.listing:hover .listing__media img { transform: scale(1.06); }

.listing__status {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border-radius: 100px;
  color: var(--paper);
  background: var(--ink);
  backdrop-filter: blur(2px);
}
.listing__status--active  { background: #2f7d54; }
.listing__status--pending { background: #b8862b; }
.listing__status--sold    { background: #9a3b3b; }

.listing__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.listing__type { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); margin: 0; }
.listing__price { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.listing__addr { font-size: 1.05rem; margin: 0; color: var(--text); }
.listing__city { font-size: 0.85rem; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.08em; }

.listing__specs {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
  margin: 0.4rem 0 0;
  font-size: 0.85rem; color: var(--text);
}
.listing__specs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.listing__specs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-deep); }

.listing__link {
  margin-top: auto; padding-top: 0.9rem;
  font-weight: 700; font-size: 0.9rem; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.listing__link:hover { color: var(--ink); }

.listings__empty { text-align: center; color: var(--muted); font-size: 1.05rem; padding: 2rem 0; }

/* Tablet: show 2 per row, still scrollable */
@media (max-width: 900px) {
  .listings__grid { grid-auto-columns: calc((100% - 1.6rem) / 2); }
}

/* Phone: mostly one card, with a peek of the next; hide hover edges (touch) */
@media (max-width: 600px) {
  .listings__grid {
    grid-auto-columns: 68%;
    margin-inline: calc(-1 * clamp(1.25rem, 5vw, 4rem));
    padding-inline: clamp(1.25rem, 5vw, 4rem);
    padding-bottom: 3rem;
  }
  .listings__edge { display: none !important; }
}

/* ---------- Reviews ---------- */
.reviews.section { padding-top: clamp(2.25rem, 4.5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.reviews__head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.reviews__head .section__title { margin-bottom: 0; }

.reviews__carousel {
  position: relative;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.reviews__cta { text-align: center; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.reviews__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.reviews__cta-link:hover { background: var(--ink-soft); transform: translateY(-3px); }

/* Continuous auto-scrolling marquee: the track holds the review cards once
   in markup; script.js clones that set so translating -50% loops seamlessly. */
.reviews__track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: 1rem 0 2.75rem;
  animation: reviews-scroll var(--reviews-duration, 45s) linear infinite;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews__track { animation: none; }
}

.review {
  flex: 0 0 340px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review__stars { color: var(--accent-deep); font-size: 1.05rem; letter-spacing: 0.18em; line-height: 1; }
.review__quote { color: var(--text); font-size: 0.98rem; line-height: 1.65; flex: 1; margin: 0; }
.review__author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.review__avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.review__name { font-weight: 700; color: var(--ink); font-size: 0.92rem; }

@media (max-width: 600px) {
  .review { flex-basis: 68vw; }
}

/* ---------- Listings: small "view more" links (replaces the old boxed CTA) ---------- */
.listings__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
.listings__more-eyebrow { justify-content: center; margin-bottom: 1.1rem; }
.listings__more-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.listings__more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.listings__more-link:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

/* ---------- Areas banner (dark photo backdrop, separator before Reviews) ---------- */
.areas-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background:
    linear-gradient(120deg, rgba(34,37,43,0.93), rgba(34,37,43,0.8)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=70") center/cover no-repeat;
}
.areas-banner__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(0,172,188,0.18), transparent 55%);
}
.areas-banner__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  color: var(--paper);
}
.areas-banner__inner .eyebrow { display: inline-flex; }
.areas-banner__lead {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Approach (dark timeline) ---------- */
.approach { background: var(--ink); color: var(--cream); max-width: none; }
.approach__head { max-width: var(--container); margin: 0 auto 3.5rem; text-align: center; }
.approach__head .eyebrow { display: inline-flex; }
.approach__steps {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 1.8rem;
}
.approach__steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.16);
  z-index: 0;
}
.approach__step { position: relative; }
.approach__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.approach__step h3 { font-size: 1.35rem; color: var(--paper); text-transform: uppercase; margin-bottom: 0.6rem; }
.approach__step p { color: rgba(255,255,255,0.66); font-size: 0.92rem; line-height: 1.6; margin: 0; max-width: 32ch; }

/* ---------- Services ---------- */
.services__head { text-align: center; margin-bottom: 3rem; }
.services__head .eyebrow { display: inline-flex; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.services__card {
  display: block;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.services__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.services__arrow {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.services__card:hover .services__arrow,
.services__card:focus-visible .services__arrow {
  opacity: 1;
  transform: translate(0, 0);
}
@media (hover: none) {
  .services__arrow { opacity: 1; transform: translate(0, 0); }
}
.services__icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.services__icon svg { width: 100%; height: 100%; }
.services__card h3 { font-size: 1.5rem; color: var(--ink); text-transform: uppercase; margin-bottom: 0.6rem; }
.services__card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--cream); max-width: none; }
.contact__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro form"
    "details form";
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__intro { grid-area: intro; }
.contact__form { grid-area: form; }
.contact__details-wrap { grid-area: details; }
.contact__lead { color: rgba(255,255,255,0.78); max-width: 44ch; margin: 0; }
.contact__details { display: grid; gap: 1.3rem; margin-bottom: 2rem; }
.contact__details li { display: flex; flex-direction: column; }
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact__details a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.contact__details a:hover { color: var(--accent); }
.contact__hours {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--paper);
}
.contact__social { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.contact__social a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color 0.3s, border-color 0.3s;
}
.contact__social a:hover { color: var(--accent); border-color: var(--accent); }

.contact__form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  backdrop-filter: blur(6px);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.field__opt { color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.06em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.38); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.field select option { color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(0,172,188,0.18);
}
.form-status { font-size: 0.9rem; margin: 1rem 0 0; text-align: center; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status--success { color: #7fd6a6; font-weight: 600; }
.form-status--error { color: #f0a3a3; font-weight: 600; }
.contact__formnote { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 1rem 0 0; text-align: center; }
.contact__formnote a { color: var(--accent); font-weight: 600; }
.contact__logo { width: 168px; height: auto; margin-top: 2.4rem; opacity: 0.9; }

/* ---------- Footer ---------- */
.footer { background: #16181c; color: rgba(255,255,255,0.7); }
.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 3rem clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.6rem 2rem;
  align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.footer__brand div { display: flex; flex-direction: column; }
.footer__brand strong { font-family: var(--font-serif); font-size: 1.25rem; color: var(--paper); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.footer__brand span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__logo { width: 124px; height: auto; margin-top: 0.85rem; opacity: 0.92; }
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a { font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.footer__links a:hover { color: var(--accent); }
.footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about__media { max-width: 420px; margin-inline: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(odd)::before,
  .stat + .stat::before { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .approach__steps { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.8rem; }
  .approach__steps::before { display: none; }
  .contact__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "form" "details";
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 330px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    background:
      linear-gradient(180deg, var(--ink-soft), var(--ink));
    padding: 5.5rem 2.4rem 2.4rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
    overflow-y: auto;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a,
  .nav:not(.scrolled) .nav__links a {
    color: rgba(255,255,255,0.92);
    font-size: 1.18rem;
    font-family: var(--font-serif);
  }
  .nav__links a:not(.nav__cta)::after { bottom: -4px; background: var(--accent-bright); }
  .nav__cta {
    background: var(--accent);
    color: var(--paper) !important;
    align-self: stretch;
    text-align: center;
    margin-top: 0.6rem;
    font-family: var(--font-sans) !important;
  }
  .nav__toggle { display: flex; z-index: 950; }
  .listings__head { text-align: center; }
  .carousel__arrow { display: none; }
}

@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .approach__steps { grid-template-columns: 1fr; gap: 2rem; }
  .approach__step p { max-width: none; }
  .about__list { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; flex-direction: column; margin-bottom: 2.5rem; }
  .hero__actions .btn { width: 100%; }
  .hero { padding-top: 6rem; padding-bottom: 3rem; }
  .hero__scroll { bottom: 1.25rem; }
  .hero__lead { font-size: 1rem; }
  /* Darker overlay on phones so the centered text stays legible */
  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(34,37,43,0.65) 0%, rgba(34,37,43,0.8) 100%),
      radial-gradient(ellipse at center, rgba(34,37,43,0.4) 0%, rgba(34,37,43,0.75) 100%);
  }
  .about__badge { right: 8px; bottom: -18px; padding: 0.7rem 0.9rem; }
  .about__badge-logo { width: 92px; }
  .contact__details a { font-size: 1.2rem; word-break: break-word; }
  .contact__hours { font-size: 1rem; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__links { flex-wrap: wrap; gap: 1rem 1.4rem; }
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
