/* IPEX Realty – Agent Landing Styles (BK Team)
   Brand: Primary #143052, Secondary #43B02A
*/

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #143052;
  background-color: #ffffff;
}

img { max-width: 100%; display: block; }

/* Layout helpers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  background-color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65; /* photo overlay transparency */
}

/* Page-specific hero background images are now set within each agent page */

/* Dark overlay for logo/text legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 16px;
}

.hero-logo {
  height: 72px;
  margin: 0 auto 16px auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.hero-logo-corner {
  position: absolute;
  left: 16px;
  bottom: 16px;
  height: 90px;
  width: auto;
  /* filter: drop-shadow(0 2px 8px rgba(0,0,0,0.0)); */
  /* border-radius: 45px; */
  /* opacity: 0.8; */
}

.bkteam-mark {
  height: 130px;
  width: auto;
  margin: 0 auto 10px auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

/* Minor Team specific mark size */
.minorteam-mark {
  height: 170px;
  width: auto;
  margin: 0 auto 10px auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

.hero h1 {
  margin: 8px 0 8px 0;
  font-size: 2.25rem;
  line-height: 1.2;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.subtitle {
  font-size: 1.125rem;
  margin: 8px 0 24px 0;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-text {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.75);
}

.btn-primary { background: transparent; color: #ffffff; }
.btn-primary:hover { background: transparent; transform: translateY(-1px); }

.btn-outline { background: transparent; color: #ffffff; border: 2px solid rgba(255,255,255,0.75); }
.btn-outline:hover { background: transparent; transform: translateY(-1px); }

/* Bio section */
.section {
  padding: 48px 0;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  padding: 24px;
}

.bio {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.bio img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 24px;
}

.bio h2 { margin: 0 0 8px 0; color: #143052; }
.bio h3 { margin: 0 0 16px 0; color: #43B02A; font-weight: 700; }
.bio p { color: #334155; line-height: 1.65; }

.contact-list { margin-top: 16px; color: #143052; }
.contact-list a { color: #143052; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Quick search */
.search-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Centered two-tile variant for pages with only two tiles */
.search-tiles.tiles-center {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 140px;
  display: grid;
  align-content: end;
  color: #ffffff;
}

.tile .label {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.tile-primary::before { background-image: linear-gradient(0deg, rgba(20,48,82,0.55), rgba(20,48,82,0.55)), url('https://ipexrealty.com/images/Space_Shuttle.jpeg'); }
.tile-secondary::before { background-image: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('https://ipexrealty.com/images/gulf_shores_coast.png'); }
.tile-neutral::before { background-image: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('https://images.unsplash.com/photo-1515263487990-61b07816b324?q=80&w=1600&auto=format&fit=crop'); }

/* Social */
.social {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: rgba(20,48,82,0.07);
  color: #143052;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.social a:hover { background-color: rgba(67,176,42,0.15); transform: translateY(-1px); }

/* Footer note */
.note {
  font-size: 0.9rem;
  color: #475569;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; }
  .bio img { width: 100%; height: auto; }
  .search-tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.75rem; }
  .subtitle { font-size: 1rem; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .search-tiles { grid-template-columns: 1fr; }
  .search-tiles.tiles-center { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; box-sizing: border-box; }
  .hero-logo { height: 56px; }
  .brand-text { font-size: 1.5rem; }
  .bkteam-mark { height: 80px; }
  .minorteam-mark { height: 110px; }
  .hero-inner { padding: 32px 16px; }
  .hero-logo-corner { height: 45px; left: 12px; bottom: 12px; border-radius: 10px; }
  .brand-row { flex-wrap: wrap; justify-content: center; }
}


