@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,500;0,8..60,600;0,8..60,700&display=swap");

:root {
  --gold: #f58220;
  --gold-dark: #d96d12;
  --dark: #0b1118;
  --text: #222222;
  --muted: #666666;
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e8e8e8;
  --wa: #25D366;
  --nav-height: 76px;
  --ipk-navy: #0c1929;
  --ipk-navy-mid: #152a45;
  --ipk-slate: #334e68;
  --ipk-charcoal: #243b53;
  --ipk-text: #102a43;
  --ipk-text-muted: #627d98;
  --ipk-border: rgba(16, 42, 67, 0.1);
  --ipk-accent: #2c5282;
  --ipk-accent-hover: #234468;
  --ipk-ring: rgba(44, 82, 130, 0.22);
  --ipk-radius: 16px;
  --ipk-radius-sm: 10px;
  --ipk-shadow: 0 4px 24px rgba(12, 25, 41, 0.07);
  --ipk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  overflow-y: auto;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f5efe5;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER — premium industrial (aligned with homepage) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--ipk-border);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s var(--ipk-ease);
}

.topbar.is-scrolled {
  box-shadow: var(--ipk-shadow);
}

.nav {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 28px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.brand-mark img {
  width: 142px !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  border-radius: 0 !important;
  background: transparent !important;
}

.brand-text {
  line-height: 1.05;
  min-width: 0;
}

.brand-text small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ipk-text-muted);
}

.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ipk-navy);
  line-height: 1.15;
}

.nav-shell {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-link,
.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ipk-charcoal);
  font-size: 0.875rem;
  white-space: nowrap;
  border-radius: var(--ipk-radius-sm);
  transition: background 0.2s var(--ipk-ease), color 0.2s var(--ipk-ease);
  font-family: var(--font-sans);
}

.nav-link:hover,
.drop-btn:hover {
  background: rgba(16, 42, 67, 0.06);
  color: var(--ipk-navy);
}

.drop-btn::after {
  content: "▾";
  font-size: 11px;
  color: var(--ipk-text-muted);
  margin-left: 4px;
  font-weight: 700;
  transition: transform 0.2s var(--ipk-ease);
}

.dropdown.open .drop-btn::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 268px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ipk-border);
  border-radius: var(--ipk-radius-sm);
  box-shadow: 0 12px 40px rgba(12, 25, 41, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ipk-ease), transform 0.2s var(--ipk-ease),
    visibility 0.2s;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ipk-charcoal);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: rgba(44, 82, 130, 0.08);
  color: var(--ipk-accent);
}

.dropdown-menu .dropdown-placeholder {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ipk-text-muted);
  line-height: 1.45;
}

/* Properties mega-menu (two columns desktop, stacked mobile) */
.dropdown-menu--properties {
  min-width: min(520px, calc(100vw - 40px));
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  padding: 12px 14px 14px;
}

.dropdown-menu--properties .dropdown-menu__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-menu__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ipk-text-muted);
  padding: 6px 14px 8px;
  margin: 0;
  pointer-events: none;
  line-height: 1.3;
}

.dropdown-menu--properties .dropdown-menu__group:first-child .dropdown-menu__label {
  padding-top: 4px;
}

/* New Projects + developers directory */
.dropdown-menu--projects {
  min-width: min(580px, calc(100vw - 40px));
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 22px;
  padding: 12px 14px 14px;
}

.dropdown-menu--projects .dropdown-menu__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-menu--projects .dropdown-menu__group--recent {
  grid-column: 1 / -1;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--ipk-border);
}

.dropdown-menu--projects .dropdown-menu__group--recent[hidden] {
  display: none !important;
}

.dropdown-menu--projects #projectsDropdownRecentLinks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
}

.btn-primary,
.btn-outline,
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ipk-radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: background 0.2s var(--ipk-ease), color 0.2s var(--ipk-ease),
    border-color 0.2s var(--ipk-ease), box-shadow 0.2s var(--ipk-ease),
    transform 0.2s var(--ipk-ease);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

/* Header CTAs — institutional palette (does not change global .btn-primary elsewhere) */
.topbar .nav-actions .btn-primary {
  background: var(--ipk-accent);
  color: #fff;
  box-shadow: 0 2px 10px var(--ipk-ring);
}

.topbar .nav-actions .btn-primary:hover {
  background: var(--ipk-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--ipk-ring);
}

.topbar .nav-actions .btn-outline {
  background: #fff;
  border: 1px solid rgba(16, 42, 67, 0.14);
  color: var(--ipk-charcoal);
}

.topbar .nav-actions .btn-outline:hover {
  border-color: rgba(44, 82, 130, 0.32);
  background: rgba(44, 82, 130, 0.05);
  color: var(--ipk-navy);
}

.topbar .nav-actions .btn-outline[href*="wa.me"] {
  border-color: rgba(37, 211, 102, 0.38);
  color: #1a4d2e;
}

.topbar .nav-actions .btn-outline[href*="wa.me"]:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.52);
  color: #0f331f;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--ipk-radius-sm);
  border: 1px solid var(--ipk-border);
  background: #fff;
  color: var(--ipk-navy);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s var(--ipk-ease), border-color 0.2s var(--ipk-ease);
}

.mobile-toggle:hover {
  background: rgba(16, 42, 67, 0.04);
  border-color: rgba(16, 42, 67, 0.16);
}

.mobile-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-toggle__icon {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}

.mobile-toggle__icon::before,
.mobile-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ipk-navy);
  border-radius: 1px;
  transition: transform 0.3s var(--ipk-ease), box-shadow 0.3s var(--ipk-ease),
    top 0.3s var(--ipk-ease), bottom 0.3s var(--ipk-ease);
}

.mobile-toggle__icon::before {
  top: 0;
  box-shadow: 0 7px 0 var(--ipk-navy);
}

.mobile-toggle__icon::after {
  bottom: 0;
}

.topbar.menu-open .mobile-toggle__icon::before {
  top: 7px;
  transform: rotate(45deg);
  box-shadow: none;
}

.topbar.menu-open .mobile-toggle__icon::after {
  bottom: auto;
  top: 7px;
  transform: rotate(-45deg);
}

/* SAFETY OVERFLOW FIXES */
.hero,
.banner,
.section,
.search-box,
.search-card,
.search-wrap,
.hero-content,
.hero-inner,
.swiper,
.swiper-wrapper,
.swiper-slide {
  max-width: 100%;
}

.hero *,
.banner *,
.section *,
.search-box *,
.search-card *,
.search-wrap *,
.hero-content *,
.hero-inner * {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

/* FOOTER */
.site-footer {
  background: #06090d;
  color: #fff;
  margin-top: 48px;
  padding-top: 32px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-logo {
  width: 150px;
  margin-bottom: 18px;
}

.footer-contact p {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #ffbf1f;
  margin: 10px 0 14px;
  font-size: 14px;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #ffbf1f;
  font-weight: 700;
  font-size: 14px;
}

.footer-map-col iframe {
  width: 100%;
  min-height: 230px;
  border: 0;
}

.footer-bottom {
  padding: 18px 0 22px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

.back-to-top {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 14px;
  color: #666;
  min-width: 0;
}

.agent-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-name {
  font-weight: 500;
  color: #222;
}

.agent-dot {
  color: #aaa;
}

.brand-mark {
  background: transparent !important;
  border-radius: 0 !important;   /* 🔥 THIS removes the curve */
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.brand-mark img {
  border-radius: 0 !important;   /* 🔥 remove curve from image */
}

/* FOOTER */
.site-footer {
  background: #06090d;
  color: #fff;
  margin-top: 48px;
  padding-top: 32px;
  position: relative;
}

/* Compact footer links (SEO links) */
.footer-links-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 8px;
}

.footer-links-compact a {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0;
}

/* MOBILE */
@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 24px);
  }

  :root {
    /* Fixed mega-menu top = safe area + sharp 2×3 glossy strip height */
    --ipk-mobile-nav-h: 118px;
    /* Total inset for fixed .topbar (safe area + 2-row grid + padding); use for body/main clearance */
    --ipk-mobile-topbar-clearance: calc(env(safe-area-inset-top, 0px) + 192px);
    --ipk-mnav-blur: 18px;
    /* Black glossy glass (mobile nav + dropdowns only) */
    --ipk-mnav-glass-edge: rgba(255, 255, 255, 0.14);
    --ipk-mnav-glass-divider: rgba(255, 255, 255, 0.11);
    --ipk-mnav-text: rgba(255, 255, 255, 0.94);
    --ipk-mnav-text-muted: rgba(255, 255, 255, 0.62);
  }

  /*
   * Mobile-only (header.html):
   * .ipk-mnav-shell — overlay strip (inset via .container.nav gutters)
   * .ipk-mnav-grid — sharp-edged 6-cell black glossy glass (no desktop styles)
   */

  /* Push page content below fixed topbar (does not change .topbar rules) */
  html {
    scroll-padding-top: var(--ipk-mobile-topbar-clearance);
  }

  body:not(.page-home) {
    padding-top: var(--ipk-mobile-topbar-clearance);
  }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(10,16,14,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;

  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar .container.nav {
  width: 100%;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

.topbar .brand,
.topbar .nav-actions,
.topbar .mobile-toggle {
  display: none !important;
}

.topbar .nav {
  display: grid;
  grid-template-columns: 1fr !important;
  grid-template-areas: "menu" !important;
  padding: 10px 0;
  gap: 8px;
  min-height: auto;
}

.topbar .nav-shell,
.topbar .ipk-mnav-shell {
  grid-area: menu;
  display: block !important;
  width: 100%;
  min-width: 0;
  overflow: visible !important;
}

.topbar .nav-links,
.topbar .nav-links.ipk-mnav-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;

  margin-top: 20px !important;
  padding: 0;

  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);

  overflow: visible !important;
}

.topbar .nav-links::before,
.topbar .nav-links.ipk-mnav-grid::before {
  display: none !important;
}

.topbar .nav-links > li {
  position: relative !important;
  z-index: 1 !important;

  border-right: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.topbar .nav-links > li:nth-child(3n) {
  border-right: none;
}

.topbar .nav-links > li:nth-last-child(-n + 3) {
  border-bottom: none;
}

.topbar .nav-link,
.topbar .drop-btn {
  width: 100%;

  min-height: 52px !important;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px 4px;

  border: none !important;
  border-radius: 0 !important;

  background: transparent !important;

  color: rgba(255,255,255,0.92) !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.topbar .drop-btn::after {
  content: "▾";
  margin-left: 6px;
  font-size: 16px !important;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.topbar .dropdown.open .drop-btn::after {
  transform: rotate(180deg);
}

.topbar .dropdown.open {
  z-index: 99999 !important;
}

.topbar .dropdown .dropdown-menu {
  display: none !important;

  position: absolute !important;
  top: 100% !important;
  left: 0 !important;

  width: 92vw !important;
  min-width: 92vw !important;
  max-width: 92vw !important;

  background: rgba(10,16,14,0.68) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;

  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0 0 16px 16px !important;

  box-shadow: 0 24px 60px rgba(0,0,0,0.28) !important;

  padding: 14px !important;

  z-index: 100000 !important;
}

.topbar .dropdown.open .dropdown-menu {
  display: grid !important;
}

/* Properties: top-right grid cell — anchor to the right edge so the panel expands left */
.topbar .dropdown .dropdown-menu.dropdown-menu--properties {
  left: auto !important;
  right: 0 !important;
}

.topbar .dropdown-menu a {
  color: rgba(255,255,255,0.92) !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

  .hero,
  .banner,
  .section,
  .search-box,
  .search-card,
  .search-wrap,
  .hero-content,
  .hero-inner,
  .swiper,
  .swiper-wrapper,
  .swiper-slide {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Lighter blur on mobile nav when user prefers reduced motion */
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .topbar .nav-links.ipk-mnav-grid::before {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .topbar .dropdown .dropdown-menu {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
}
/* milestone a reached - website functional */