/* ==========================================================================
   Pelwick Properties: shared design system
   Used by every page: nav, footer, fonts, colors, buttons, animations.
   ========================================================================== */

:root {
  --color-primary: #2C6BFF;
  --color-primary-dark: #1846B5;
  --color-primary-light: #EAF1FF;
  --color-accent: #FF7A30;
  --color-accent-dark: #E85F12;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F8FC;
  --color-text: #10182B;
  --color-text-muted: #5B6478;
  --color-border: #E4E8F0;

  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(16, 24, 43, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 43, 0.16);

  --container-width: 1180px;
  --header-height: 84px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.text-gradient {
  background: linear-gradient(100deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 14px;
}

.section-head p {
  color: var(--color-text-muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(120deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 48, 0.35);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(255, 122, 48, 0.45);
}

.btn--ghost {
  background: rgba(44, 107, 255, 0.08);
  color: var(--color-primary-dark);
  border: 1px solid rgba(44, 107, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(44, 107, 255, 0.14);
  transform: translateY(-3px);
}

.btn--block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.site-header .container { max-width: 1340px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
}

.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 18px; }

/* ---- Services dropdown ---- */
.nav__item--dropdown { position: relative; }

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__dropdown-trigger:hover { color: var(--color-text); }

.nav__caret { width: 14px; height: 14px; transition: transform var(--transition); }

.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown.is-open .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 40;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 80vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1050;
}

.nav__mobile.is-open { transform: translateX(0); }

.nav__mobile-group { display: flex; flex-direction: column; gap: 14px; }

.nav__mobile-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 700;
}

.nav__mobile .nav__mobile-sublink {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding-left: 10px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Page header (sub-page banner)
   ========================================================================== */

.page-header {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 74px) 0 74px;
  background: linear-gradient(160deg, #10182B, #0B1220);
  color: #fff;
}

.page-header__bg { position: absolute; inset: 0; z-index: 0; }
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { background: rgba(255, 255, 255, 0.1); color: #fff; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-top: 14px; max-width: 700px; }
.page-header p { margin-top: 16px; color: rgba(255, 255, 255, 0.68); font-size: 1.05rem; max-width: 600px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--color-bg-alt);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
  top: -120px; right: -100px;
}

.blob--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  bottom: -140px; left: -80px;
  animation-delay: -5s;
}

.blob--3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
  top: 40%; left: 55%;
  animation-delay: -9s;
  opacity: 0.35;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 24, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 43, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero__text { max-width: 620px; }

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__scroll {
  margin-top: 90px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__scroll span {
  width: 26px;
  height: 40px;
  border: 2px solid var(--color-border);
  border-radius: 20px;
  position: relative;
}

.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* ---- Hero visual (image collage) ---- */
.hero__visual {
  position: relative;
  height: 520px;
}

.hero__visual-main {
  position: absolute;
  inset: 0 8% 10% 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero__visual-main img { width: 100%; height: 100%; object-fit: cover; }

.hero__visual-float {
  position: absolute;
  left: -6%;
  bottom: -8%;
  width: 55%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  animation: heroFloat 7s ease-in-out infinite;
  animation-delay: -3.5s;
}

.hero__visual-float img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute;
  top: 8%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  animation: heroFloat 7s ease-in-out infinite;
  animation-delay: -1.5s;
}

.hero__badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hero__badge strong { display: block; font-family: var(--font-heading); font-size: 1rem; }
.hero__badge span { font-size: 0.78rem; color: var(--color-text-muted); }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ==========================================================================
   Property search bar
   ========================================================================== */

.search-bar { position: relative; z-index: 5; margin-top: -70px; margin-bottom: 40px; }

.search-bar__card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}

.search-bar__field { display: flex; flex-direction: column; gap: 8px; }

.search-bar__field label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.search-bar__field input,
.search-bar__field select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.search-bar__field input:focus,
.search-bar__field select:focus { outline: none; border-color: var(--color-primary); }

.search-bar__submit { height: 50px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s cubic-bezier(.2,.7,.2,1) var(--delay, 0s);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s cubic-bezier(.2,.7,.2,1) var(--delay, 0s);
}

.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s cubic-bezier(.2,.7,.2,1) var(--delay, 0s);
}

.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #10182B, #0B1220);
}

.services__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services .container { position: relative; z-index: 1; }

.services .section-head .eyebrow { background: rgba(255, 255, 255, 0.1); color: #fff; }
.services .section-head h2 { color: #fff; }
.services .section-head p { color: rgba(255, 255, 255, 0.65); }

.grid-overlay--dark {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 28px 34px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__photo {
  margin: 0 -28px 22px;
  height: 160px;
  overflow: hidden;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card__photo img { transform: scale(1.09); }

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.card__icon svg { width: 26px; height: 26px; }

.card:hover .card__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---- Alternating feature rows (services page) ---- */
.feature-rows { padding: 30px 0 60px; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 70px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child { border-bottom: none; }
.feature-row:nth-of-type(even) { flex-direction: row-reverse; }

.feature-row__media { flex: 1; min-width: 0; }

.feature-row__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s ease;
}

.feature-row__media:hover img { transform: scale(1.03); }

.feature-row__content { flex: 1; min-width: 0; }
.feature-row__content h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 22px 0 16px; }
.feature-row__content p { color: var(--color-text-muted); font-size: 1.02rem; line-height: 1.75; }

/* ---- Compact service teaser (homepage) ---- */
.service-teasers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 30px 18px;
  transition: transform var(--transition), background var(--transition);
}

.service-teaser:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.1); }

.service-teaser .card__icon { margin-bottom: 18px; }
.service-teaser h3 { font-size: 0.98rem; color: #fff; margin: 0; }

.services__more { text-align: center; margin-top: 46px; }

/* ==========================================================================
   Featured Properties
   ========================================================================== */

.gallery { padding: 110px 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery__item {
  position: relative;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery__item--wide { grid-column: span 2; }

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.65), transparent 55%);
  z-index: 1;
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img { transform: scale(1.08); }

.gallery__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 13px;
  border-radius: 999px;
}

.gallery__item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}

.gallery__item figcaption strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.gallery__item figcaption span { display: block; font-size: 0.8rem; opacity: 0.85; font-weight: 500; }

/* ==========================================================================
   Insights & Research
   ========================================================================== */

.insights { padding: 110px 0; background: var(--color-bg-alt); }

.insights__layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.insight-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.insight-card__link { font-size: 0.9rem; font-weight: 600; color: var(--color-accent-dark); transition: color var(--transition); }
.insight-card__link:hover { color: var(--color-accent); }

/* ---- Featured article ---- */
.insight-feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.insight-feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.insight-feature__photo { height: 280px; overflow: hidden; }

.insight-feature__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insight-feature:hover .insight-feature__photo img { transform: scale(1.06); }

.insight-feature__body { padding: 28px; }

.insight-feature__body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.insight-feature__body p { color: var(--color-text-muted); font-size: 0.96rem; margin-bottom: 18px; }

/* ---- Compact list ---- */
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insight-row {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  flex: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.insight-row:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.insight-row__photo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.insight-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insight-row:hover .insight-row__photo img { transform: scale(1.08); }

.insight-row__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.insight-row .insight-card__tag { margin-bottom: 8px; }
.insight-row__body h4 { font-size: 0.98rem; margin-bottom: 6px; }
.insight-row__body p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   Offices / Markets
   ========================================================================== */

.offices { padding: 90px 0; }

.map {
  position: relative;
  width: 100%;
  height: 520px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(16, 24, 43, 0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
}

.map__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 0.3;
  opacity: 0.45;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s ease;
}

.map.is-active .map__line {
  stroke-dashoffset: 0;
  transition-delay: calc(var(--i, 0) * 0.05s);
}

.map__marker {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.5s ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.map.is-active .map__marker {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.map__dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 48, 0.16);
  transition: transform var(--transition);
  z-index: 2;
}

.map__marker--hub .map__dot {
  width: 15px;
  height: 15px;
  background: var(--color-primary-dark);
  box-shadow: 0 0 0 6px rgba(44, 107, 255, 0.2);
}

.map__marker:hover .map__dot { transform: scale(1.35); }

.map__pulse {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: mapPulse 2.6s ease-out infinite;
  z-index: 1;
}

.map__marker--hub .map__pulse {
  border-color: var(--color-primary);
  inset: -12px;
}

.map.is-active .map__pulse { animation-delay: calc(var(--i, 0) * 0.08s); }

@keyframes mapPulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.map__label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  transition: transform var(--transition);
  z-index: 3;
}

.map__marker--hub .map__label {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
}

.map__marker:hover .map__label { transform: translateX(-50%) translateY(2px); }

/* Edge markers anchor their label inward instead of centering, so long city
   names don't clip past the map's edge on narrow viewports. */
.map__marker--edge-left .map__label { left: 0; transform: none; }
.map__marker--edge-left:hover .map__label { transform: translateY(2px); }

.map__marker--edge-right .map__label { left: auto; right: 0; transform: none; }
.map__marker--edge-right:hover .map__label { transform: translateY(2px); }

/* ---- Office location cards ---- */
.office-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.office-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.office-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.office-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.office-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.office-card p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 4px; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats { padding: 90px 0; }

.stats__bar {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.stats__bar::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,122,48,0.35), transparent 70%);
  top: -100px; right: -60px;
}

.stat { text-align: center; color: #fff; position: relative; z-index: 1; }

.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat__label {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { padding: 120px 0; background: var(--color-bg-alt); }

.testimonial-slider {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track { position: relative; min-height: 260px; }

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  text-align: center;
}

.testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial__stars { color: var(--color-accent); font-size: 1.1rem; margin-bottom: 20px; letter-spacing: 4px; }

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
}

.testimonial__author { margin-top: 26px; color: var(--color-text-muted); font-size: 0.95rem; }
.testimonial__author strong { color: var(--color-text); }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.testimonial-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition);
}

.testimonial-dots button.is-active {
  background: var(--color-accent);
  width: 26px;
  border-radius: 5px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 110px 0; background: var(--color-bg-alt); }

.faq__list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
}

.faq__question .plus {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq__question .plus::before,
.faq__question .plus::after {
  content: '';
  position: absolute;
  background: var(--color-primary-dark);
  transition: transform var(--transition), background var(--transition);
}

.faq__question .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq__question .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }

.faq__item.is-open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq__item.is-open .plus::before { background: var(--color-accent); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__answer p {
  padding: 0 26px 24px;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   CTA + Quote form
   ========================================================================== */

.cta-form { padding: 20px 0 130px; }

.cta-form__wrap {
  background: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-form__wrap::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(44,107,255,0.35), transparent 70%);
  bottom: -140px; left: -100px;
}

.cta-form__copy { position: relative; z-index: 1; }
.cta-form__copy .eyebrow { background: rgba(255,255,255,0.1); color: #fff; }
.cta-form__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; }
.cta-form__copy p { margin-top: 16px; color: rgba(255,255,255,0.7); }

.cta-form__points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.cta-form__points li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.cta-form__points svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }

/* ---- Simple single-column CTA banner (sub-pages without a form) ---- */
.cta-banner {
  background: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(44,107,255,0.35), transparent 70%);
  bottom: -140px; left: -100px;
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .eyebrow { background: rgba(255,255,255,0.1); color: #fff; }
.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; }
.cta-banner p { margin-top: 16px; color: rgba(255,255,255,0.7); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { margin-top: 30px; }

.quote-form {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition);
}

.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.1);
}

.form-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #6be3a0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-success.is-visible { display: flex; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0B1220;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand .brand { color: #fff; }
.footer__brand p { margin-top: 18px; font-size: 0.92rem; max-width: 300px; }

.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--color-accent); transform: translateY(-3px); }
.footer__social svg { width: 16px; height: 16px; }

.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col li { font-size: 0.92rem; transition: color var(--transition); }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom a { color: rgba(255,255,255,0.6); }
.footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__text { max-width: 100%; }
  .hero__visual { height: 420px; margin-top: 40px; order: 2; }
  .feature-row, .feature-row:nth-of-type(even) { flex-direction: column; gap: 30px; padding: 50px 0; }
  .feature-row__media img { height: 300px; }
  .search-bar { margin-top: -40px; }
  .search-bar__card { grid-template-columns: 1fr 1fr; }
  .search-bar__submit { grid-column: span 2; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-teasers { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .insights__layout { grid-template-columns: 1fr; }
  .insight-feature__photo { height: 220px; }
  .map { height: 420px; }
  .office-cards { grid-template-columns: repeat(2, 1fr); }
  .stats__bar { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .cta-form__wrap { grid-template-columns: 1fr; padding: 50px 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .nav__links { gap: 16px; }
  .nav__actions .btn--ghost { display: none; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }

  .brand { font-size: 1.05rem; white-space: nowrap; }
  .brand__mark { width: 34px; height: 34px; }

  .nav__mobile a { font-size: 1.05rem; font-weight: 600; }
}

@media (max-width: 640px) {
  .hero__visual { height: 320px; }
  .hero__badge { display: none; }
  .search-bar { margin-top: 24px; }
  .search-bar__card { grid-template-columns: 1fr; padding: 22px; }
  .search-bar__submit { grid-column: span 1; }
  .services__grid { grid-template-columns: 1fr; }
  .service-teasers { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item { height: 240px; }
  .gallery__item--wide { grid-column: span 1; }
  .insight-row { flex-direction: column; }
  .insight-row__photo { width: 100%; height: 140px; }
  .map { height: 340px; }
  .map__label { font-size: 0.66rem; padding: 4px 9px; }
  .office-cards { grid-template-columns: 1fr; }
  .stats__bar { grid-template-columns: 1fr; padding: 44px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-form__wrap { padding: 40px 22px; }
}
