@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  overflow-x: hidden;
  overflow-y: scroll; /* always show scrollbar gutter so layout never shifts */
  min-height: 100vh;
}

/* ══════════════════════════════════
   HEADER
   ══════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 40px 20px;
  background: transparent;
}

/* On inner pages, header sits on white — fixed height prevents any jump between pages */
.inner-page .site-header {
  background: #fff;
  padding-bottom: 2px;
  height: 120px;
}

.logo-link {
  text-decoration: none;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-exp {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -1px;
  color: #fff;
  line-height: 0.85;
}

.logo-exp sup {
  font-size: 14px;
  vertical-align: super;
  margin-left: 1px;
}

.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 2px;
}

.inner-page .logo-exp,
.inner-page .logo-sub {
  color: #222;
}

.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  margin-top: 0;
  margin-right: 28px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 2cm;
}

.contact-row a,
.contact-row .phone-display {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s;
}

.contact-row a:hover {
  opacity: 0.8;
}

.phone-display {
  cursor: default;
}

.contact-row svg {
  width: 22px;
  height: 22px;
}

.phone-link svg {
  width: 20px;
  height: 20px;
}

.inner-page .contact-row a,
.inner-page .contact-row .phone-display {
  color: #222;
}

/* ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */
.main-nav {
  display: flex;
  gap: 32px;
  position: relative;
  margin-top: 18px;
}

.nav-item {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-item > a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.nav-item > a:hover {
  opacity: 0.75;
}

.inner-page .nav-item > a {
  color: #222;
}

/* Dropdown arrow */
.nav-item.has-submenu > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  margin-left: 3px;
  transition: transform 0.2s;
}

.inner-page .nav-item.has-submenu > a::after {
  border-top-color: #222;
}

.nav-item.has-submenu:hover > a::after {
  transform: rotate(180deg);
}

/* Submenu dropdown */
.submenu {
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 240px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}

/* Invisible bridge above submenu to prevent hover gap */
.submenu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
}

.submenu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.submenu a:hover {
  background: #f0f0f0;
  color: #000;
}

/* ══════════════════════════════════
   PAGE TITLE BAND (inner pages)
   ══════════════════════════════════ */
.page-title-band {
  background: linear-gradient(135deg, #1e2a38 0%, #2c3e50 40%, #3a4f63 100%);
  padding: 28px 40px;
}

.page-title-band h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.5px;
  padding-left: 3cm;
}

/* ══════════════════════════════════
   PAGE CONTENT AREA
   ══════════════════════════════════ */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  min-height: 50vh;
  overflow: hidden;
}

.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.6);
  padding: 30px 40px;
  text-align: center;
  font-size: 13px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* ══════════════════════════════════
   HERO (Home page only)
   ══════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.hero .site-header {
  z-index: 100;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: -40px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #ccc;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.agent-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.agent-brokerage {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ══════════════════════════════════
   MOBILE HAMBURGER
   ══════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.inner-page .hamburger span {
  background: #222;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-and-contact {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 24px;
    transition: right 0.35s ease;
    z-index: 250;
    overflow-y: auto;
    margin-top: 0;
    margin-right: 0;
  }

  .nav-and-contact.open {
    right: 0;
  }

  .nav-and-contact .contact-row a,
  .nav-and-contact .contact-row .phone-display,
  .nav-and-contact .nav-item > a {
    color: #222 !important;
  }

  .nav-and-contact .nav-item.has-submenu > a::after {
    border-top-color: #222 !important;
  }

  .main-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-item > a {
    padding: 14px 0;
  }

  .submenu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 0 8px 16px;
  }

  .nav-item.submenu-open .submenu {
    display: block;
  }

  .contact-row {
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 240;
  }

  .mobile-overlay.active {
    display: block;
  }

  .site-header {
    padding: 16px 20px 14px;
  }

  .page-title-band {
    padding: 22px 20px;
  }

  .page-title-band h1 {
    font-size: 22px;
  }

  .page-content {
    padding: 40px 20px;
  }

  .agent-name {
    font-size: 32px;
  }

  .agent-brokerage {
    font-size: 20px;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }
}
