/* HomesCalculator layout.css (Batch 11) */

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; background: #f5f6f7; color: #111; }
a { color: #003865; }
a:hover { opacity: 0.9; }

/* HEADER */
.site-header { width: 100%; background: #ffffff; border-bottom: 2px solid #003865; }

/* TOP ALERT / SCROLLER BAR */
.top-alert-bar {
  display: flex;
  align-items: center;
  background: #ffdd55;
  color: #000;
  height: 56px;
  font-size: 1.08rem;
  font-weight: 700;
}

.alert-left,
.alert-right {
  flex: 0 0 auto;
  padding: 0 14px;
  white-space: nowrap;
}

.alert-right a { color: #000; text-decoration: none; font-weight: 800; }

.alert-scroll { flex: 1; overflow: hidden; position: relative; }
.scroll-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 24s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* HEADER MAIN */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.logo a {
  font-size: 1.7rem;
  font-weight: 900;
  color: #003865;
  text-decoration: none;
}

.header-tagline {
  text-align: center;
  padding: 10px;
  background: #003865;
  color: #fff;
  font-weight: 700;
}

/* NAV */
.main-nav ul { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: #003865;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 6px;
}
.main-nav a:hover { background: #e9eef3; }

/* NAV CTA buttons */
.main-nav .nav-highlight {
  background: #c62828;
  color: #fff;
  border-radius: 8px;
  padding: 9px 10px;
  line-height: 1.1;
  font-weight: 900;
}
.main-nav .nav-highlight:hover { background: #b71c1c; }

.main-nav .nav-housewanted {
  background: #ffd966;
  color: #000;
  font-weight: 900;
}
.main-nav .nav-housewanted:hover { background: #ffe799; }

/* DROPDOWNS */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  min-width: 240px;
  z-index: 999;
  border-radius: 8px;
  overflow: hidden;
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  color: #003865;
  background: #fff;
}
.dropdown li a:hover { background: #f1f4f7; }
.has-dropdown:hover .dropdown { display: block; }

/* PAGE LAYOUT (5 columns) */
.page-layout {
  display: grid;
  grid-template-columns: 12% 1fr 1fr 1fr 14%;
  width: 100%;
  min-height: calc(100vh - 220px);
}

/* SIDEBARS */
.sidebar {
  padding: 12px 10px;
  background: #e6edf3;
  font-size: 0.92rem;
}
.sidebar-left { border-right: 1px solid #c4d0dd; }
.sidebar-right { border-left: 1px solid #c4d0dd; }

/* MAIN CONTENT spans 3 center columns */
.main-content {
  grid-column: 2 / span 3;
  padding: 16px;
  background: #ffffff;
}

/* 3 inner columns utility */
.main-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.main-column {
  border: 1px solid #d9d9d9;
  padding: 14px;
  border-radius: 10px;
  background: #fafafa;
}
.main-column h2 { margin-bottom: 10px; font-size: 1.12rem; color: #003865; }
.main-column ul { padding-left: 18px; }
.main-column li { margin-bottom: 7px; }

/* Buttons */
.btn {
  display: inline-block;
  background: #004b80;
  color: #fff !important;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}
.btn:hover { background: #00385f; }

.btn-secondary {
  display: inline-block;
  background: #ffd966;
  color: #000 !important;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}
.btn-secondary:hover { background: #ffe799; }

.callout {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 18% 1fr 1fr 1fr 18%; }
}

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 100%; }
  .sidebar-left, .sidebar-right { display: none; }
  .main-content { grid-column: 1 / span 1; }
  .main-columns { grid-template-columns: 1fr; }

  .header-main { flex-direction: column; text-align: center; }
  .main-nav ul { justify-content: center; }
}

/* Load footer styles */
@import url("/assets/css/footer.css");
