:root {
  --navy: #1d2c5a;
  --gold: #d4a574;
  --blue: #1187be;
  --linen: #edf8fe;
  --charcoal: #2b2b2b;
  --sage: #1187be;
  --light-bg: #f0f6fb;
  --border-color: #d0e8f2;
}

body {
  background-color: var(--linen);
  color: var(--charcoal);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: 0.5px;
}

p {
  color: var(--charcoal);
  line-height: 1.7;
  opacity: 0.9;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand img {
  height: 72px;
  width: auto;
}

/* Custom Buttons */
.btn-taupe {
  background-color: var(--navy);
  border-color: var(--navy);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-taupe:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 135, 190, 0.3);
}

.btn-outline-taupe {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-taupe:hover {
  background-color: var(--navy);
  color: white;
  transform: translateY(-2px);
}

/* Hero */
.hero-accent {
  color: var(--gold);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--charcoal);
}

.trust-item::before {
  content: "✓";
  color: var(--sage);
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.hero-image-wrapper {
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section backgrounds */
.bg-cream {
  background-color: var(--linen) !important;
}
.bg-light-section {
  background-color: var(--light-bg) !important;
}
.text-light-text {
  color: var(--charcoal);
  opacity: 0.85;
}

/* Cards */
.card-subtle {
  background-color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

/* .card-subtle:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
} */

.card-border-taupe {
  border-top: 4px solid var(--gold) !important;
}

.card-border-gold {
  border-top: 4px solid var(--sage) !important;
}

.pillar-card {
  text-align: center;
  border-top: 4px solid var(--gold);
}

.pillar-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-badge {
  background-color: var(--light-bg);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}

.concierge-callout {
  background-color: var(--sage);
  color: white;
  border-radius: 6px;
  font-style: italic;
  font-weight: 300;
}

/* Guarantee Section */
.guarantee-section {
  background: linear-gradient(135deg, #f0f6fb 0%, #edf8fe 100%);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
}

/* Team Cards */
.team-card {
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
} */

.team-image {
  height: auto;
  aspect-ratio: 4 / 5;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 3rem;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  color: var(--sage);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Steps */
.step-card {
  position: relative;
  text-align: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem 1.5rem !important;
  counter-increment: steps;
}

.step-number {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Services Grid */
.service-item {
  background-color: white;
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

/* .service-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
} */

/* Reviews */
.review-card {
  background-color: white;
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-quote {
  font-style: italic;
  line-height: 1.8;
}

.review-location {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: white;
  border-top: 1px solid var(--border-color);
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.login-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: white;
}


/* === SEO / UX additions (Nov 2026) === */
.navbar .btn-outline-taupe i { font-size: 0.9em; }
.work-placeholder { border: 1px dashed var(--border-color); }
.service-item a, a.service-item { color: inherit; }
a.service-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateX(2px); }
.accordion-button:not(.collapsed) { background-color: var(--light-bg); color: var(--navy); }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(17,135,190,0.25); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === WebP photo cards / Our Work gallery (Nov 6 2026 merge) === */
.service-item-photo {
  overflow: hidden;
  padding: 0 !important;
  border-left: 0;
}
.service-item-photo picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f4f7fa 0%, #e8eef4 100%);
}
.service-item-photo .service-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.service-item-photo .service-item-body {
  background: white;
}
a.service-item-photo:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
/* Our Work (Nov 12 2026 v4): topic blocks, whole photos (contain), caption below each block */
.work-groups {
  --cols: 2;
  --g: 12px;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: 2rem;
  grid-auto-flow: row dense;
  margin-bottom: 3rem;
}
@media (min-width: 576px) {
  .work-groups { --cols: 4; --g: 14px; }
}
@media (min-width: 992px) {
  .work-groups { --cols: 5; --g: 16px; row-gap: 2.5rem; }
}
.work-group {
  --c: 1;
  grid-column: span 1;
  min-width: 0;
  container-type: inline-size;
}
.work-group.wg-2 { --c: 2; grid-column: span 2; }
.work-group.wg-full { --c: 2; grid-column: 1 / -1; }
@media (min-width: 576px) { .work-group.wg-full { --c: 3; } }
@media (min-width: 992px) { .work-group.wg-full { --c: 5; } }
.work-grid {
  display: grid;
  grid-template-columns: repeat(var(--c), minmax(0, 1fr));
  gap: var(--g);
  grid-auto-rows: 240px;
  grid-auto-rows: calc((100cqw - (var(--c) - 1) * var(--g)) / var(--c) * 4 / 3);
}
.work-shot {
  margin: 0;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f7fa 0%, #e8eef4 100%);
  border: 1px solid rgba(29, 44, 90, 0.08);
  box-shadow: 0 2px 10px rgba(29, 44, 90, 0.06);
}
.work-shot-landscape {
  grid-column: span 2;
}
.work-group.wg-1 .work-shot-landscape { grid-column: span 1; }
.work-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}
.work-shot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.work-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
  margin: 0.8rem 0 0;
  padding: 0.1rem 0 0.1rem 0.65rem;
  border-left: 3px solid var(--sage);
  line-height: 1.35;
}
@media (max-width: 575.98px) {
  .work-group-title { font-size: 0.98rem; margin-top: 0.65rem; }
}
.page-hero-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.page-hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.navbar-brand picture,
.navbar-brand img {
  display: block;
}
.hero-image-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}
.team-image picture {
  display: contents;
}

/* up8: stop horizontal overflow on tablets/phones. Bootstrap .g-5 rows use
   -1.5rem side margins but .container-lg only pads 0.75rem, so they poked
   12px past the screen. Use the standard gutter below the lg breakpoint
   (vertical spacing between stacked columns is unchanged). */
@media (max-width: 991.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
html, body { overflow-x: clip; }
/* up8: reserve icon space while the icon font stylesheet loads (no layout shift). */
.bi { display: inline-block; min-width: 1em; }

/* up10: founders block — full uncropped portrait above employee cards */
.founders-block {
  margin-bottom: 4.5rem;
}
.founders-block picture {
  display: block;
}
.founders-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
