.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  padding: 108px 14px 18px;
  background: #091a3a;
  color: #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 30, 30, 0.74), rgba(0, 30, 30, 0.44) 38%, rgba(0, 30, 30, 0.90)),
    linear-gradient(135deg, rgba(0, 109, 111, 0.52), rgba(181, 91, 44, 0.20)),
    url("../images/hero-real-estate-blue.png") center / cover,
    repeating-linear-gradient(45deg, #004d4f 0 14px, #003638 14px 28px);
}

.hero-content {
  position: relative;
  max-width: 850px;
  padding-bottom: 20px;
}

.hero h1 {
  /* Warm sage-teal on the home hero too */
  color: #c8e0d4;
  text-wrap: balance;
}

/* Premium hero sub-copy — warm champagne gold, readable on dark */
.hero-copy {
  max-width: 680px;
  color: #c8d8c8;
  font-size: 1rem;
}

/* Page-hero sub-text on image pages (About / Property / Contact) */
.image-page .page-hero p:not(:last-child),
.image-page .page-hero h2.transparent-text {
  color: #a8c8b8 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.30);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;          /* allow wrapping so nothing gets cut off */
  gap: 8px;
  margin: 20px 0;
}

.hero-chips span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 109, 111, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  white-space: nowrap;      /* each chip stays on one line, but chips can wrap between each other */
}

/* On screens wide enough, keep all 3 in one row */
@media (min-width: 480px) {
  .hero-chips {
    flex-wrap: nowrap;
  }
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.hero-actions .button,
.contact-actions .button {
  width: 100%;
}

.hero-panel {
  position: relative;
  display: grid;
  z-index: 1;
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 2px solid rgba(0, 109, 111, 0.60);
  border-radius: var(--radius-lg);
  background: rgba(0, 30, 30, 0.52);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: #fff;
  font-family: var(--latin);
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── INTRO / ABOUT GRID ── */
.intro-grid,
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.intro-grid {
  position: relative;
  overflow: hidden;
  width: var(--container);
  margin: 58px auto 0;
  padding: 24px;
  border: 1px solid rgba(0, 109, 111, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(250, 248, 244, 0.97), rgba(224, 244, 244, 0.86)),
    radial-gradient(circle at top right, rgba(0, 109, 111, 0.18), transparent 18rem);
  box-shadow: 0 22px 60px rgba(0, 77, 79, 0.10);
}

.intro-grid > div:first-child {
  padding: 2px;
}

.intro-grid h2 {
  color: var(--heading);
}

.intro-grid .eyebrow {
  color: var(--primary);
}

.intro-grid > div:first-child,
.about-copy {
  position: sticky;
  top: 130px;
}

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  padding: 34px 18px 28px;
  border: 1px solid rgba(0, 109, 111, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(250, 248, 244, 0.97), rgba(224, 244, 244, 0.88)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.image-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 109, 111, 0.20), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(0, 140, 142, 0.16), transparent 26rem),
    radial-gradient(circle at 40% 100%, rgba(181, 91, 44, 0.10), transparent 28rem),
    linear-gradient(180deg, #e8f4f4 0%, #d8ecec 48%, #cce4e4 100%),
    repeating-linear-gradient(90deg, rgba(0, 109, 111, 0.030) 0 1px, transparent 1px 72px);
}

.property-bg {
  --page-bg: url("../images/hero-property-blue.png");
}

.about-bg {
  --page-bg: url("../images/hero-about-blue.png");
}

.contact-bg {
  --page-bg: url("../images/hero-contact-blue.png");
}

.image-page .page-main {
  padding-top: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(250, 248, 244, 0.97), rgba(250, 248, 244, 0.78) 48%, rgba(250, 248, 244, 0.28));
  pointer-events: none;
}

.image-page .page-hero {
  display: grid;
  width: auto;
  min-height: 100svh;
  align-items: end;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 108px 14px 18px;
  background:
    linear-gradient(180deg, rgba(0, 30, 30, 0.74), rgba(0, 30, 30, 0.44) 38%, rgba(0, 30, 30, 0.90)),
    linear-gradient(135deg, rgba(0, 109, 111, 0.52), rgba(181, 91, 44, 0.20)),
    var(--page-bg) center / cover,
    repeating-linear-gradient(45deg, #004d4f 0 14px, #003638 14px 28px);
  box-shadow: none;
  color: #fff;
  isolation: isolate;
}

.image-page .page-hero::before {
  content: none;
}

.image-page .page-hero::after {
  inset: auto 0 0;
  z-index: 0;
  width: auto;
  height: 34%;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44));
}

.image-page .page-hero h1,
.image-page .page-hero h2,
.image-page .page-hero p:last-child {
  /* Warm sage-teal — premium, readable, not plain white */
  color: #b8d8cc;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.32);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 140px;
  height: 92px;
  border-right: 1px solid rgba(0, 109, 111, 0.28);
  border-bottom: 1px solid rgba(0, 109, 111, 0.28);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 12vw, 5.6rem);
  text-wrap: balance;
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.image-page .page-hero p:last-child {
  color: rgba(255, 255, 255, 0.84);
}

.section-properties {
  padding-top: 28px;
}

.about-copy p:last-child {
  color: var(--muted);
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 28px;
}

.contact-card-large {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(0, 109, 111, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(224, 244, 244, 0.94)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-card-large::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 70px;
  height: 70px;
  border-right: 1px solid rgba(0, 109, 111, 0.28);
  border-bottom: 1px solid rgba(0, 109, 111, 0.28);
}

.contact-card-large h2 {
  margin: 12px 0;
  font-size: clamp(1.85rem, 9vw, 3.4rem);
  color: var(--heading);
}

.contact-card-large p {
  max-width: 540px;
  color: var(--muted);
}

/* ── SERVICE BAND ── */
.service-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 0;
}

.service-band article {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(0, 109, 111, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(224, 244, 244, 0.98), rgba(176, 228, 228, 0.90)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(0, 77, 79, 0.10);
}

.service-band article:nth-child(2) {
  border-color: rgba(181, 91, 44, 0.18);
  background:
    linear-gradient(135deg, rgba(244, 223, 207, 0.98), rgba(244, 200, 170, 0.86)),
    var(--surface);
}

.service-band article:nth-child(3) {
  border-color: rgba(0, 77, 79, 0.22);
  background:
    linear-gradient(135deg, rgba(200, 236, 236, 0.98), rgba(160, 216, 216, 0.88)),
    linear-gradient(160deg, rgba(0, 109, 111, 0.10), transparent),
    var(--surface);
}

.service-band span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-band article:nth-child(2) span {
  color: var(--accent);
}

.service-band strong {
  display: block;
  color: var(--heading);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
}

.service-band p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .intro-grid,
  .about-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid > div:first-child,
  .about-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-panel div {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
  }

  .page-hero {
    padding: 34px 18px 28px;
  }
}

@media (min-width: 760px) {
  .hero {
    min-height: 94vh;
    padding: 152px max(24px, calc((100vw - 1180px) / 2)) 44px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(0, 25, 25, 0.94), rgba(0, 25, 25, 0.60) 46%, rgba(0, 25, 25, 0.26)),
      linear-gradient(135deg, rgba(0, 109, 111, 0.56), rgba(181, 91, 44, 0.22)),
      url("../images/penthouse.jpg") center / cover,
      repeating-linear-gradient(45deg, #004d4f 0 14px, #003638 14px 28px);
  }

  .image-page .page-hero {
    min-height: 500px;
    height: 52vh;
    max-height: 560px;
    padding: 110px max(24px, calc((100vw - 1180px) / 2)) 52px;
    background:
      linear-gradient(90deg, rgba(0, 25, 25, 0.94), rgba(0, 25, 25, 0.60) 46%, rgba(0, 25, 25, 0.26)),
      linear-gradient(135deg, rgba(0, 109, 111, 0.56), rgba(181, 91, 44, 0.22)),
      url("../images/penthouse.jpg") center / cover,
      repeating-linear-gradient(45deg, #004d4f 0 14px, #003638 14px 28px);
  }

  .hero-content {
    padding-bottom: 124px;
  }

  .hero-copy {
    font-size: clamp(1rem, 1.6vw, 1.22rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: auto;
  }

  .hero-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 44px;
    left: max(24px, calc((100vw - 1180px) / 2));
    max-width: 680px;
  }

  .hero-panel div {
    padding: 20px;
  }

  .hero-panel strong {
    font-size: 2rem;
  }

  .hero-panel span {
    font-size: 0.9rem;
  }

  .intro-grid,
  .about-section {
    grid-template-columns: minmax(0, 0.62fr) minmax(360px, 1fr);
    gap: 44px;
  }

  .intro-grid {
    margin-top: 72px;
    padding: 34px;
  }

  .page-hero {
    padding: 72px 34px 42px;
  }

  .section-properties {
    padding-top: 42px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 42px;
  }

  .contact-card-large {
    min-height: 330px;
    padding: 30px;
  }

  .service-band {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 72px;
  }
}

@media (max-width: 768px) {
  .property-page-hero {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .about-page-hero {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .contact-page-hero {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    overflow: hidden;
  }
}

/* Premium muted teal-sage on dark hero backgrounds */
.transparent-text {
  color: #a8c8b8 !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

/* ── COFOUNDER CARDS ── */
.cofounders-section {
  padding-top: 3em;
}

.cofounders-heading {
  text-align: center;
  margin-bottom: 48px;
}

.cofounders-heading h2 {
  color: var(--heading);
  margin-bottom: 10px;
}

.cofounders-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.cofounder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.cofounder-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0, 109, 111, 0.18);
  background: linear-gradient(160deg, #23282f, #181c21);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.36),
    0 0 48px rgba(0,109,111,0.08);
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.cofounder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 180, 184, 0.38);
  box-shadow:
    0 0 0 1px rgba(0,180,184,0.12),
    0 40px 100px rgba(0,0,0,0.44),
    0 0 60px rgba(0,109,111,0.16);
}

/* Teal shimmer top edge */
.cofounder-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,205,0.65), transparent);
}

/* Amber card — second child */
.cofounder-card:nth-child(2) {
  border-color: rgba(181, 91, 44, 0.20);
}

.cofounder-card:nth-child(2):hover {
  border-color: rgba(232, 149, 106, 0.42);
  box-shadow:
    0 0 0 1px rgba(181,91,44,0.12),
    0 40px 100px rgba(0,0,0,0.44),
    0 0 60px rgba(181,91,44,0.12);
}

.cofounder-card:nth-child(2)::before {
  background: linear-gradient(90deg, transparent, rgba(232,149,106,0.60), transparent);
}

/* Avatar ring */
.cofounder-avatar {
  position: relative;
  margin-bottom: 22px;
}

.cofounder-avatar-ring {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(0,180,184,0.80), rgba(0,77,79,0.60));
  box-shadow: 0 0 32px rgba(0,109,111,0.30);
}

.cofounder-card:nth-child(2) .cofounder-avatar-ring {
  background: linear-gradient(135deg, rgba(232,149,106,0.80), rgba(138,61,24,0.60));
  box-shadow: 0 0 32px rgba(181,91,44,0.28);
}

.cofounder-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #2c3038, #1e2228);
  border: 2px solid rgba(255,255,255,0.08);
  /* Ensure it stays a perfect square so border-radius:50% makes a circle */
  aspect-ratio: 1 / 1;
  display: block;
}

.cofounder-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* No border-radius on img — the parent clips it */
  transition: transform 400ms ease;
}

.cofounder-card:hover .cofounder-avatar-inner img {
  transform: scale(1.07);
}

/* Verified badge */
.cofounder-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,180,184,0.90), rgba(0,77,79,1));
  border: 2px solid #181c21;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
}

.cofounder-card:nth-child(2) .cofounder-badge {
  background: linear-gradient(135deg, #e8956a, #8a3d18);
}

.cofounder-name {
  color: #f0f2f5;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cofounder-role {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,140,142,0.30), rgba(0,77,79,0.45));
  border: 1px solid rgba(0,180,184,0.22);
  color: #7dd8da;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cofounder-card:nth-child(2) .cofounder-role {
  background: linear-gradient(135deg, rgba(181,91,44,0.22), rgba(138,61,24,0.35));
  border-color: rgba(232,149,106,0.24);
  color: #e8956a;
}

.cofounder-desc {
  color: rgba(200, 208, 220, 0.72);
  font-size: 0.90rem;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 340px;
}

.cofounder-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,140,142,0.30), rgba(0,77,79,0.45));
  border: 1px solid rgba(0,180,184,0.22);
  color: #7dd8da;
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.cofounder-cta:hover {
  background: linear-gradient(135deg, rgba(0,160,163,0.50), rgba(0,100,102,0.60));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,109,111,0.36);
}

.cofounder-card:nth-child(2) .cofounder-cta {
  background: linear-gradient(135deg, rgba(181,91,44,0.22), rgba(138,61,24,0.35));
  border-color: rgba(232,149,106,0.24);
  color: #e8956a;
}

.cofounder-card:nth-child(2) .cofounder-cta:hover {
  background: linear-gradient(135deg, rgba(200,100,48,0.50), rgba(138,61,24,0.60));
  color: #fff;
  box-shadow: 0 8px 24px rgba(181,91,44,0.32);
}

@media (min-width: 640px) {
  .cofounder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── INSTAGRAM FOOTER LINK ── */
.footer-insta {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 7px !important;
  border-radius: 12px;
  border: 1px solid rgba(200, 195, 188, 0.70) !important;
  background: #ffffff !important;
  color: #2a2825 !important;
  font-size: 0.80rem !important;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.90);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease !important;
  min-height: auto !important;
  /* Override footer link underline */
  position: relative;
}

.footer-insta:hover {
  background: #faf8ff !important;
  border-color: rgba(195, 100, 220, 0.45) !important;
  color: #5b1a8a !important;
  box-shadow: 0 4px 16px rgba(160, 60, 200, 0.18), inset 0 1px 0 rgba(255,255,255,0.90) !important;
  transform: translateY(-2px) !important;
}

.footer-insta::after {
  display: none !important;
}

/* Instagram gradient icon square */
.footer-insta .insta-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(238,42,123,0.32);
}

.footer-insta .insta-icon svg {
  display: block;
}
