/* =========================================================
   Luchi Empire — theme layer on top of Bootstrap 5 (CDN)
   Only overrides + custom components live here.
   ========================================================= */

:root {
  --navy-900: #081a33;
  --navy-800: #0b2244;
  --navy-700: #12315e;
  --navy-600: #1c4483;
  --gold-500: #d4a72c;
  --gold-400: #e6bd4c;
  --gold-100: #f8eccb;
  --ink: #16202e;

  /* Bootstrap variable overrides */
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: #41505f;
  --bs-body-bg: #ffffff;
  --bs-primary: #12315e;
  --bs-primary-rgb: 18, 49, 94;
  --bs-link-color: #12315e;
  --bs-link-hover-color: #0b2244;
  --bs-border-color: #e2e8f0;
  --bs-border-radius: .8rem;
  --bs-border-radius-lg: 1rem;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3, h4, h5,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bg-mist { background: #f4f6fa; }

/* Section with a photo background + dark overlay so light text stays readable */
.section--photo { position: relative; background-size: cover; background-position: center; background-color: var(--navy-900); }
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 26, 51, .84), rgba(8, 26, 51, .93));
}
.section--photo > .container { position: relative; z-index: 1; }
.bg-navy { background: var(--navy-900); color: #cdd8e6; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

.text-gold { color: var(--gold-500) !important; }
.lead-muted { color: #6b7a8c; font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Sora", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.section-head { max-width: 42rem; }
.section-head.mx-auto { text-align: center; }
.section-head.mx-auto .eyebrow { justify-content: center; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  z-index: 2000;
  top: .5rem;
  left: .5rem;
  background: #fff;
  padding: .5rem .9rem;
  border-radius: .5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-family: "Sora", sans-serif; font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; }
.btn-lg { padding: .85rem 1.9rem; }
.btn-gold {
  --bs-btn-color: var(--navy-900);
  --bs-btn-bg: var(--gold-500);
  --bs-btn-border-color: var(--gold-500);
  --bs-btn-hover-color: var(--navy-900);
  --bs-btn-hover-bg: var(--gold-400);
  --bs-btn-hover-border-color: var(--gold-400);
  --bs-btn-active-bg: var(--gold-400);
  --bs-btn-focus-shadow-rgb: 212, 167, 44;
}
.btn-navy {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy-800);
  --bs-btn-border-color: var(--navy-800);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy-700);
  --bs-btn-hover-border-color: var(--navy-700);
}
.btn-outline-light-navy {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .4);
  --bs-btn-hover-bg: rgba(255, 255, 255, .1);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-700);
  text-decoration: none;
}
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header / navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--bs-border-color);
}
.site-header .navbar { padding-block: .75rem; }
.brand-logo { height: 34px; width: auto; }
.brand-logo--footer { height: 32px; filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 575.98px) { .brand-logo { height: 28px; } }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}
.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.navbar .nav-link {
  font-size: .93rem;
  font-weight: 500;
  color: #41505f;
  padding: .5rem .85rem !important;
  border-radius: .5rem;
}
.navbar .nav-link:hover { color: var(--ink); background: #f4f6fa; }
.navbar .nav-link.active { color: var(--navy-700); font-weight: 600; }
.dropdown-menu {
  border-color: var(--bs-border-color);
  border-radius: .8rem;
  box-shadow: 0 12px 40px rgba(8, 26, 51, .14);
  padding: .4rem;
}
.dropdown-item { border-radius: .5rem; font-size: .9rem; padding: .55rem .7rem; }
.dropdown-item:active { background: var(--navy-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 78% -10%, var(--navy-700), var(--navy-900) 60%);
  color: #d7e2f0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 520px at 18% 24%, #000, transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); }
.hero h1 .accent { color: var(--gold-400); }
.hero .hero-lead { color: #b9c7da; font-size: 1.15rem; max-width: 44ch; }
.hero-stats { border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 1.7rem; color: #fff; display: block; }
.hero-stats span { font-size: .82rem; color: #9fb0c6; }
.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  padding: .75rem;
}
.hero-card img { border-radius: 13px; width: 100%; }
.hero-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  font-size: .88rem;
  color: #dbe5f1;
}
.hero-badge b { color: #fff; font-family: "Sora", sans-serif; }

/* ---------- Page hero ---------- */
.page-hero {
  background: radial-gradient(900px 500px at 85% -30%, var(--navy-700), var(--navy-900));
  color: #cdd8e6;
  padding-block: clamp(3.5rem, 7vw, 5.75rem);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #a9b9cd; max-width: 60ch; font-size: 1.08rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #6f819a; font-size: .82rem; }
.page-hero .breadcrumb a { color: #8fa0b7; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--gold-400); }
.page-hero .breadcrumb-item.active { color: #cdd8e6; }

/* ---------- Cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.9rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .05), 0 10px 30px rgba(8, 26, 51, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 46px rgba(8, 26, 51, .13); border-color: #cfd9e6; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }

/* ---------- Division card (image + body, whole card is a link) ---------- */
.division-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .05), 0 10px 30px rgba(8, 26, 51, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.division-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(8, 26, 51, .14);
  border-color: #cfd9e6;
  color: inherit;
}
.division-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}
.division-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.division-card__icon {
  position: absolute;
  left: 1rem;
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(8, 26, 51, .28);
}
.division-card__body { padding: 2rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.division-card__body .h3 { font-size: 1.2rem; margin: 0; }
.division-card__blurb { font-size: .95rem; color: var(--bs-body-color); flex: 1; }
.division-card .link-arrow { margin-top: .4rem; }

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; font-size: .95rem; }
.ticks li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold-500);
  font-size: 1.05rem;
}

/* ---------- Split feature ---------- */
.split-media img,
.split-media .media-ph { border-radius: var(--bs-border-radius-lg); box-shadow: 0 18px 46px rgba(8, 26, 51, .16); width: 100%; }

.media-ph {
  position: relative;
  border-radius: var(--bs-border-radius-lg);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .5);
  font-family: "Sora", sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
}
.media-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.media-ph img { width: 100%; height: 100%; object-fit: cover; }

/* Pricing table inside a card */
.feature-card .table { --bs-table-bg: transparent; }
.feature-card .table thead th {
  background: var(--mist);
  font-family: "Sora", sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #6b7a8c);
  border-bottom-color: var(--bs-border-color);
}
.feature-card .table td { padding: .85rem 1rem; }
.feature-card .table thead th { padding: .8rem 1rem; }

/* ---------- Stats band ---------- */
.stat-band strong { font-family: "Sora", sans-serif; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; display: block; }
.stat-band span { font-size: .88rem; color: #9fb0c6; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.filters button {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: #fff;
  font-family: "Sora", sans-serif;
  font-size: .85rem;
  font-weight: 500;
  transition: all .18s ease;
}
.filters button:hover { border-color: var(--navy-600); }
.filters button.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.project-card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  background: #fff;
  height: 100%;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .05), 0 10px 30px rgba(8, 26, 51, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 46px rgba(8, 26, 51, .13); }
.project-card .media-ph { border-radius: 0; aspect-ratio: 3 / 2; }
.project-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.project-card .p-body { padding: 1.25rem 1.4rem 1.5rem; }
.project-tag {
  font-family: "Sora", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.project-card h3 { font-size: 1.1rem; margin: .4rem 0 .3rem; }
.project-card.is-hidden,
[data-cat].is-hidden { display: none; }

/* ---------- Plot / real-estate callout ---------- */
.plot-callout {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: 1.4rem;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  color: #cdd8e6;
}
.plot-callout h2 { color: #fff; }
.plot-callout .price { font-family: "Sora", sans-serif; color: var(--gold-400); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.steps li {
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.5rem;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--gold-500);
  font-size: 1.1rem;
}
.steps li h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.steps li p { font-size: .92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin-inline: auto; color: #b7c5d8; }

/* ---------- Contact ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--bs-border-color); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  background: #f4f6fa;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  font-size: 1.15rem;
}
.info-list strong { display: block; font-family: "Sora", sans-serif; color: var(--ink); font-size: .95rem; }
.info-list span, .info-list a { font-size: .95rem; color: #6b7a8c; text-decoration: none; }
.info-list a:hover { color: var(--navy-700); }

.form-control, .form-select { border-radius: .6rem; padding: .7rem .85rem; border-color: var(--bs-border-color); }
.form-control:focus, .form-select:focus { border-color: var(--navy-600); box-shadow: 0 0 0 .2rem rgba(28, 68, 131, .14); }
.form-label { font-family: "Sora", sans-serif; font-size: .84rem; font-weight: 600; color: var(--ink); }
.form-status { display: none; border-radius: .6rem; padding: .8rem 1rem; font-size: .92rem; }
.form-status.ok { display: block; background: #e8f6ec; color: #1c7a3f; }
.form-status.err { display: block; background: #fdecec; color: #b23636; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Google Maps embed */
.map-embed {
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 12px 40px rgba(8, 26, 51, .1);
  aspect-ratio: 16 / 7;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- Newsletter ---------- */
.newsletter .form-control {
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}
.newsletter .form-control::placeholder { color: #9fb0c6; }
.newsletter .form-control:focus { border-color: var(--gold-400); background: rgba(255, 255, 255, .12); box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0c6; padding-block: 4.25rem 1.75rem; }
.site-footer .brand-mark { width: 34px; height: 34px; font-size: .9rem; }
.footer-about { font-size: .92rem; color: #9fb0c6; max-width: 34ch; margin-top: 1rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; font-family: "Sora", sans-serif; }
.site-footer .footer-bottom a,
.site-footer .row a { color: #9fb0c6; text-decoration: none; display: block; padding: .3rem 0; font-size: .92rem; }
.site-footer .footer-contact a { display: inline; padding: 0; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact { font-size: .92rem; line-height: 2; margin-top: .25rem; }
.footer-contact i { color: var(--gold-500); width: 1.2rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  color: #cdd8e6;
  transition: all .18s ease;
}
.socials a:hover { background: var(--gold-500); color: var(--navy-900) !important; border-color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .84rem;
}
.footer-bottom a { display: inline !important; }

/* ---------- Click-to-zoom lightbox ---------- */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 26, 51, .93);
  padding: 5vmin;
  backdrop-filter: blur(2px);
}
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox__stage img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  cursor: zoom-out;
  object-fit: contain;
}
.lightbox__stage figcaption { color: #cdd8e6; font-size: .9rem; text-align: center; max-width: 60ch; }
.lightbox__btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 3.5vmin; right: 3.5vmin; }
.lightbox__prev { left: 3vmin; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 3vmin; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 3vmin; transform: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .8rem;
  }
  .navbar .nav-link { padding: .7rem .85rem !important; }
  .navbar .btn-gold { display: block; margin-top: .5rem; text-align: center; }
}
