/* =========================================================
   Omega Realty Services - Default Stylesheet (Modernized 2025)
   ========================================================= */

/* ---------- Reset ---------- */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre,
fieldset, input, textarea, p, blockquote, th, td {
  margin: 0;
  padding: 0;
}
img { border: 0; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0 0 10px 10px; }

/* ---------- Base ---------- */
body {
  background-color: #9DAE80;
  background-image: linear-gradient(to bottom, #A7B98A 0%, #9DAE80 100%);
  color: #2d2d2d;
  font: 15px/1.6 "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

a { color: #3f3f3f; text-decoration: underline; }
a:hover { color: #63a8d8; text-decoration: none; }

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 7px 0;
  line-height: normal;
}
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; margin-bottom: 10px; }
h4 { font-size: 14px; }
h5 { font-size: 15px; }

/* ---------- Layout Containers ---------- */
#wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

/* ---------- Header ---------- */
#header {
  background-color: #546d8d; /* swapped from #425875 */
  color: #fff;
  padding: 18px 20px 10px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin-bottom: 0; /* closes gap */
}

#branding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
#logo a {
  background: url("/_img/logo-omega-realty-services.png") no-repeat left top;
  background-size: contain;
  display: block;
  width: 180px;
  height: 53px;
}
/* Header contact block */
#contact_header {
  text-align: right;
}
#contact_header p {
  margin: 6px 0;
}
#appointment_link {
  font: bold 15px "Segoe UI", Roboto, sans-serif;
}
#appointment_link a {
  color: #FFD24C;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.4);
}
#appointment_link a:hover {
  color: #fff;
  border-bottom-color: transparent;
}
#phone_contact {
  font: bold 18px "Segoe UI", Roboto, sans-serif;
  color: #fff;
  text-align: right;
}
#phone_contact svg, #appointment_link svg {
  vertical-align: middle;
}
#phone_open_grey {
  color: #cdd3da;
  font-size: 11px;
  text-align: right;
}

/* ---------- Tagline ---------- */
#header_tagline p {
  margin: 10px 0 0;
  color: #FFF;
  text-transform: uppercase;
  font: 15px Trebuchet, "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: 3px;
  text-align: center;
}

/* =========================================================
   PURE CSS RESPONSIVE NAVIGATION
   ========================================================= */
/* ---------- Navigation ---------- */
#main_menu {
  background-color: #425875; /* darker blue now */
  position: relative;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.2);
  border-radius: 6px;
  margin-top: 0; /* closes header/content gap */
}


/* Hide checkbox by default */
.nav-toggle { display: none; }

/* Hamburger icon */
.nav-toggle-label {
  display: none;
  position: absolute;
  top: 12px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  position: absolute;
  content: '';
  transition: all 0.3s ease;
}
.nav-toggle-label span { top: 14px; }
.nav-toggle-label span::before { top: -9px; }
.nav-toggle-label span::after { top: 9px; }

/* Desktop horizontal nav */
#main_menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
#main_menu li { margin: 0; }
#main_menu a {
  display: block;
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
  font: bold 13px/1 "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.5px;
}
#main_menu a:hover {
  background-color: #2f74f5;
}

/* Dropdown legacy (optional) */
.SelectTrip ul {
  display: none;
  position: absolute;
  background: #425875;
  width: 250px;
  z-index: 9999;
  padding: 5px 0;
}
#main_menu li:hover ul { display: block; }

/* ---------- Main Content ---------- */
#wrap_mainContent {
  background: #fff;
  margin: 30px auto;
  margin-top: 15px;
  padding: 25px 30px;
  max-width: 860px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
#wrap_mainContent:hover {
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
#footer {
  background-color: #425875;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 25px 15px;
  margin-top: 40px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -3px 6px rgba(0,0,0,0.2);
}
#footer_nav {
  margin-bottom: 10px;
}
#footer_nav li { display: inline; }
#footer_nav li a {
  border-right: 1px solid rgba(255,255,255,0.3);
  padding: 0 8px;
  color: #fff;
  text-decoration: none;
}
#footer_nav li.last a { border-right: none; }
#footer_nav li a:hover { color: #FFD24C; }
#footer p { margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn {
  cursor: pointer;
  color: #fff;
  font-size: 17px;
  padding: 8px 20px;
  border-radius: 11px;
  border: 1px solid #000;
  background: #546d8d;
  transition: background 0.2s ease;
}
.btn:hover { background: #29a329; }

/* ---------- Utilities ---------- */
.floatLeft { float: left; margin: 0 10px 10px 0; }
.floatRight { float: right; margin: 0 0 10px 10px; }
.center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* ≤480px - phones */
@media (max-width: 480px) {
  body { font-size: 14px; }
  #wrap { padding: 0 10px; }
  #header { text-align: center; }
  #branding { flex-direction: column; text-align: center; }
  #logo a { margin: 0 auto; }
  #phone_contact, #phone_open_grey {
    text-align: center;
    margin: 4px 0;
  }
  #footer { font-size: 11px; padding: 20px 10px; }
}

/* ≤768px - tablets (nav collapses here) */
@media (max-width: 768px) {
  #wrap { padding: 0 15px; }

  /* show hamburger */
  .nav-toggle-label { display: block; }

  /* hide menu until toggled */
  #main_menu ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #546d8d;
    border-radius: 0 0 8px 8px;
  }

  /* when checked, show menu */
  .nav-toggle:checked + .nav-toggle-label + ul {
    display: flex;
  }

  #main_menu a {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 14px;
    text-align: center;
  }

  /* hamburger animation to X */
  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }
  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* ≤1024px - small laptops */
@media (max-width: 1024px) {
  #wrap_mainContent {
    max-width: 90%;
    padding: 20px;
  }
}

/* ≥1200px - widescreen desktops */
@media (min-width: 1200px) {
  #wrap { max-width: 1200px; }
}