/* ============================================================
   KING STREET REAL ESTATE — styles.css
   Faithful reproduction of kingstreet-re.com
   ============================================================ */

/* 1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #3a3a3a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 2. CSS VARIABLES
   ============================================================ */
:root {
  --sage:       #9ea794;
  --sage-light: #aeb6a1;
  --sage-dark:  #677471;
  --white:      #ffffff;
  --text:       #3a3a3a;
  --text-mid:   #666666;
  --text-light: #999999;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', Helvetica, Arial, sans-serif;
  --nav-h:      90px;
  --nav-h-sm:   60px;
}

/* 3. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: #fff;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  height: var(--nav-h-sm);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: block;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.nav-logo .logo-full { display: block; }
.nav-logo .logo-compact { display: none; }

.nav-logo img {
  height: 64px;
  width: auto;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-logo .logo-full { display: none; }
.nav.scrolled .nav-logo .logo-compact { display: block; }
.nav.scrolled .nav-logo img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
  padding: 6px 10px;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--sage-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--sage);
  width: 22px;
  transition: all 0.3s;
}

/* 4. HERO VIDEO / IMAGE
   ============================================================ */
.hero-video {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: #1a1a1a;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-image {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: #1a1a1a;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 5. INTRO / CONTENT SECTIONS
   ============================================================ */
.intro-section {
  padding: 80px 40px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-section .lead {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.intro-section p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* 6. HOMEPAGE 6-PANEL GRID
   ============================================================ */
.home-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 420px);
}

.home-panel {
  position: relative;
  overflow: hidden;
  display: block;
}

.home-panel video,
.home-panel img.panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-panel:hover video,
.home-panel:hover img.panel-bg {
  transform: scale(1.04);
}

.home-panel-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--sage);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.home-panel:hover .home-panel-label {
  background: var(--sage-dark);
}

.home-panel-label span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

.home-panel-label svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s;
}
.home-panel:hover .home-panel-label svg {
  transform: translateX(4px);
}

/* 7. WHO WE HELP PANELS
   ============================================================ */
.help-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.help-panel { display: flex; flex-direction: column; }

.help-panel-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.help-panel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.help-panel:hover .help-panel-img img { transform: scale(1.04); }

.help-panel-body {
  background: var(--sage);
  padding: 28px 32px 36px;
  flex: 1;
}

.help-panel-body h3 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.help-panel-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 20px;
}

.learn-more {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  display: inline-block;
  transition: border-color 0.2s;
}
.learn-more:hover { border-color: #fff; }

/* 8. TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.team-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column: 1 / -1;
}

.team-card { overflow: hidden; }

.team-card-photo {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-photo img { transform: scale(1.03); }

.team-card-info {
  background: var(--sage);
  padding: 22px 28px 28px;
}

.team-card-info h3 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.team-card-info h3 em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.7;
  margin-left: 6px;
}

.team-card-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  line-height: 1.72;
  margin-bottom: 8px;
}

.team-card-contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.team-card-contact a {
  display: block;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 5px;
  transition: color 0.2s;
}
.team-card-contact a:hover { color: #fff; }

/* Credentials / accreditations */
.credentials {
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid #eee;
}
.credentials img { height: 44px; width: auto; }

/* 9. DEAL CARDS (Investments / Lettings)
   ============================================================ */
.page-section {
  padding: 50px 40px 60px;
}

.filter-bar {
  display: inline-flex;
  border: 1px solid #ddd;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: none;
  border: none;
  border-right: 1px solid #ddd;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover,
.filter-btn.active { background: var(--sage); color: #fff; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e8e8e8;
}

.deal-card {
  background: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.deal-card.hidden { display: none; }
.deal-card:hover { opacity: 0.88; }

.deal-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f0f0ee;
}
.deal-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.deal-card:hover .deal-card-img img { transform: scale(1.04); }

.deal-card-status {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-head);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  background: var(--sage);
}
.deal-card-status.sold,
.deal-card-status.acquired { background: var(--sage-dark); }

.deal-card-body {
  padding: 18px 22px 22px;
}
.deal-card-body h3 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.5;
}
.deal-location {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.deal-meta span {
  font-family: var(--font-head);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}
.deal-meta span strong {
  display: block;
  font-size: 10px;
  color: var(--text-mid);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-light);
  z-index: 10;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-img { height: 280px; overflow: hidden; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 30px 36px 40px; }
.modal-body h2 {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); margin-bottom: 6px;
  line-height: 1.4;
}
.modal-location {
  font-size: 11px; color: var(--text-light);
  margin-bottom: 22px; letter-spacing: 0.5px;
}
.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: #f8f7f5;
}
.modal-meta-item { font-size: 12px; color: var(--text-mid); }
.modal-meta-item strong {
  font-family: var(--font-head);
  font-size: 9px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--sage-dark);
  display: block; margin-bottom: 3px;
}
.modal-body p { font-size: 13px; color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }

/* 10. CONSULTANCY
   ============================================================ */
.consultancy-section {
  padding: 80px 40px;
  text-align: center;
  max-width: 1060px;
  margin: 0 auto;
}
.consultancy-section .lead {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 300;
  line-height: 1.65; color: var(--text);
  margin-bottom: 32px;
}
.consultancy-section p {
  font-size: 13px; color: var(--text-mid);
  line-height: 1.85; margin-bottom: 14px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}

.relevant-clients {
  padding: 50px 40px 60px;
  text-align: center;
  border-top: 1px solid #eee;
}
.relevant-clients h4 {
  font-family: var(--font-head);
  font-size: 10px; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 32px;
}
.relevant-clients img {
  max-width: 800px; width: 100%; margin: 0 auto;
}

/* 11. CLIENTS
   ============================================================ */
.clients-section {
  padding: 80px 40px;
  text-align: center;
  max-width: 1060px;
  margin: 0 auto;
}
.clients-section .lead {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 300;
  line-height: 1.65; color: var(--text);
  margin-bottom: 32px;
}
.clients-section p {
  font-size: 13px; color: var(--text-mid);
  line-height: 1.85; margin-bottom: 14px;
}

.client-logos {
  padding: 0 20px 60px;
}
.client-logos img {
  width: 100%; max-width: 1100px;
  margin: 0 auto 2px;
  display: block;
}

/* 12. CONTACT
   ============================================================ */
.contact-section {
  padding: 70px 40px 60px;
  text-align: center;
}
.contact-section h2 {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 300;
  letter-spacing: 2px; color: var(--text-mid);
  margin-bottom: 44px;
}
.contact-details {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-item svg {
  width: 22px; height: 22px;
  stroke: var(--sage); stroke-width: 1.5; fill: none;
}
.contact-item span,
.contact-item a {
  font-family: var(--font-head);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-mid);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--sage); }

.map-container {
  width: 100%; height: 460px; overflow: hidden;
}
.map-container iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

/* 13. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid #eee;
  padding: 22px 40px;
  background: #fff;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-address {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-light);
}
.footer-address svg {
  width: 13px; height: 13px;
  stroke: var(--text-light); stroke-width: 1.5; fill: none;
  flex-shrink: 0;
}
.footer-contact {
  font-family: var(--font-head);
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-light);
  text-align: center;
}
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: var(--sage); }
.footer-logos {
  display: flex; align-items: center; gap: 10px;
}
.footer-logos img { height: 34px; width: auto; }
.footer-bottom {
  max-width: 1300px; margin: 14px auto 0;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p,
.footer-bottom a {
  font-family: var(--font-head);
  font-size: 8px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-light);
}
.footer-bottom a:hover { color: var(--sage); }

/* 14. NO RESULTS
   ============================================================ */
.no-results {
  grid-column: 1 / -1;
  text-align: center; padding: 60px;
  font-family: var(--font-head);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-light);
}

/* 15. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .home-panels { grid-template-rows: repeat(2, 360px); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-row-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .nav-inner { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column;
    align-items: flex-start; padding: 16px 20px; gap: 2px;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 8px 4px; font-size: 11px; }

  .hero-video, .hero-image { height: 60vh; }

  .home-panels {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
  }
  .help-panels { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-row-2 { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }

  .intro-section,
  .who-section,
  .consultancy-section,
  .clients-section,
  .contact-section { padding: 48px 20px; }

  .intro-section .lead { font-size: 15px; }

  .contact-details { gap: 36px; }
  .footer { padding: 20px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-logos { justify-content: center; }

  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 0; }

  .page-section { padding: 32px 20px 48px; }
  .relevant-clients, .client-logos { padding-left: 20px; padding-right: 20px; }
}
