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

/* ═══════════════════════════════════════════════
   KIM REIDY REAL ESTATE — SHARED STYLESHEET
   To update site-wide colors/fonts, edit here only.
   ═══════════════════════════════════════════════ */

:root {
  --red:        #9B0000;
  --red-dark:   #8a0707;
  --black:      #000000;
  --gray-bg:    #EFEFED;
  --gray-mid:   #e0e0e0;
  --gray-text:  #7D7D7D;
  --white:      #fff;
  --font-body:  'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
/* Push page content down so topbar+nav don't cover it */
body > div:first-child { padding-top: 40px; }
.topbar-contact a { color: var(--white); margin-right: 6px; }
.topbar-contact a:hover { text-decoration: underline; }
.topbar-social a { color: var(--white); margin-left: 10px; font-size: 15px; }
.topbar-social a:hover { opacity: .8; }

/* ── NAV ── */
nav {
  background: transparent;
  box-shadow: none;
  position: absolute;
  top: 40px;
  left: 0; right: 0;
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: fixed;
  top: 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  height: 62px;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 8px 14px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  transition: color .2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
nav.scrolled .nav-menu > li > a { color: var(--black); }
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--red); border-bottom: 2px solid var(--red); }
nav.scrolled .nav-menu > li > a:hover,
nav.scrolled .nav-menu > li > a.active { color: var(--red); border-bottom: 2px solid var(--red); }

/* dropdowns */
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 190px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  z-index: 200;
  border-top: 3px solid var(--red);
  list-style: none;
  padding: 0;
  margin: 0;
}
.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--black);
  border-bottom: 1px solid var(--gray-bg);
  transition: background .15s, color .15s;
}
.dropdown li a:hover { background: var(--gray-bg); color: var(--red); }
.nav-menu > li:hover > .dropdown { display: block; }
.sub-dropdown {
  display: none;
  position: absolute;
  left: 100%; top: 0;
  background: var(--white);
  min-width: 180px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border-top: 3px solid var(--red);
}
.dropdown li:hover > .sub-dropdown { display: block; }

/* hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }
nav.scrolled .hamburger span { background: var(--black); }

/* ── PAGE HERO BANNER ── */
.page-hero {
  background: #111;
  color: var(--white);
  text-align: center;
  padding: 54px 20px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('images/seattle-banner.jpg') center/cover no-repeat;
  opacity: 0.4;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .5px;
}
.page-hero p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 16px;
  opacity: .85;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 20px; }
.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-divider {
  width: 56px; height: 3px;
  background: var(--red);
  margin: 0 auto 44px;
}

/* ── BUTTONS ── */
.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-red:hover { background: #000 !important; border-color: #000 !important; transition: 0.3s; }
.btn-black {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-black:hover { background: #333; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 11px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--white); color: var(--black); }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--black); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 12px;
}

/* ── FOOTER ── */
/* ── NEWSLETTER STRIP (above footer) ── */
.newsletter-strip {
  position: relative;
  background: #1a1a1a;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}
.newsletter-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/seattle-banner.jpg") center/cover no-repeat;
  opacity: 0.35;
}
.newsletter-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 12px;
  max-width: 620px; margin: 0 auto; padding: 40px 48px;
}
.newsletter-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 24px; color: #111; }
.newsletter-input-wrap { position: relative; }
.newsletter-input-wrap input {
  width: 100%; height: 60px; border-radius: 50px;
  padding: 0 180px 0 20px; font-size: 18px;
  background: #ebebeb; border: 1px solid #d3cfcf;
  font-family: inherit; box-sizing: border-box;
}
.newsletter-input-wrap button {
  position: absolute; right: 5px; top: 5px; height: 50px;
  background: #9B0000; color: #fff; border: none;
  padding: 0 50px; font-size: 18px; border-radius: 50px;
  cursor: pointer; font-family: inherit; font-weight: 600;
  transition: background 0.3s;
}
.newsletter-input-wrap button:hover { background: #000; }

/* ── FOOTER ── */
footer {
  background: #111;
  color: #aaa;
  padding: 48px 24px 24px;
  font-size: 13px;
}
.footer-centered {
  max-width: 860px; margin: 0 auto; text-align: center;
}
.footer-seal { width: 120px; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }
.footer-contact-row { margin-bottom: 14px; }
.footer-contact-row a { color: #aaa; margin: 0 12px; font-size: 15px; transition: color .2s; }
.footer-contact-row a:hover { color: #9B0000; }
.footer-social-row { margin-bottom: 20px; }
.footer-social-row a { color: #fff; font-size: 22px; margin: 0 8px; transition: color .2s; }
.footer-social-row a:hover { color: #9B0000; }
.footer-pointe3 { width: 140px; filter: brightness(0) invert(1); opacity: .6; display: block; margin: 0 auto 12px; }
.footer-addr { font-size: 14px; color: #888; margin-bottom: 20px; }
.footer-nav-row { margin-bottom: 24px; border-top: 1px solid #2a2a2a; padding-top: 20px; background: transparent; box-shadow: none; position: static; }
.footer-nav-row a { color: #aaa; font-size: 14px; margin: 0 10px; transition: color .2s; display: inline-block; }
.footer-nav-row a:hover { color: #9B0000; }
.footer-mls { font-size: 11px; color: #555; line-height: 1.7; margin-bottom: 12px; max-width: 800px; margin-left: auto; margin-right: auto; }
.footer-copy { font-size: 12px; color: #666; }
.footer-copy a { color: #888; }
.footer-copy a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 62px; right: 0;
    background: var(--white);
    width: 270px;
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    padding: 8px 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid var(--gray-bg); }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--red);
    margin-left: 16px;
    display: block;
    background: #fafafa;
  }
  .sub-dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gray-mid);
    margin-left: 12px;
    display: block;
  }
  .hamburger { display: block; }
  .footer-nav-row a { margin: 4px 6px; display: inline-block; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Hero banner */
  .page-hero h1 { font-size: 32px; }

  /* Newsletter card — reduce padding so it doesn't crowd on phones */
  .newsletter-card { padding: 28px 20px; }
  .newsletter-card h2 { font-size: 22px; margin-bottom: 16px; }

  /* Newsletter input — stack button below input on small screens */
  .newsletter-input-wrap input {
    padding: 0 20px;
    height: 52px;
  }
  .newsletter-input-wrap button {
    position: static;
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border-radius: 50px;
    font-size: 16px;
  }

  /* Footer */
  .footer-nav-row { flex-wrap: wrap; justify-content: center; }
  footer { padding: 36px 16px 20px; }

  /* Topbar — stack contact and social vertically */
  .topbar { flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; }
  .topbar-contact a { margin-right: 8px; font-size: 12px; }
  .topbar-social a { margin-left: 8px; }
}

@media (max-width: 480px) {
  /* Hero banner */
  .page-hero h1 { font-size: 24px; }
  .page-hero { padding: 40px 16px; }

  /* Sections */
  section { padding: 40px 16px; }
  .container { padding: 0 16px; }

  /* Buttons */
  .btn-red, .btn-black, .btn-outline { font-size: 14px; padding: 10px 20px; }

  /* Bio buttons on home page */
  .bio-btns { flex-direction: column; }
  .bio-btns a { width: 100%; text-align: center; }

  /* Section titles */
  .section-title { font-size: 22px; }
}

@media (max-width: 540px) {
  .topbar { justify-content: center; text-align: center; }
}
