/* ═══════════════════════════════════════════════════════════════════
   Aphrodite Property Sales — Header & Footer restyle
   CSS-on-top: purely visual. Structure, menus and content blocks stay
   editable from the WordPress backend exactly as before.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --aps-dark:   #191717;
  --aps-black:  #0d0c0c;
  --aps-accent: #6b9540;
  --aps-accent2:#7eb04b;
  --aps-gold:   #d1a570;
  --aps-line:   rgba(255, 255, 255, .09);
}

/* ─────────────────────────────────────────────
   TOP BAR
   ───────────────────────────────────────────── */
.g5core-top-bar {
  background: #111 !important;
  border-bottom: 1px solid var(--aps-line);
  padding: 9px 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.g5core-top-bar .g5core-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.g5core-top-bar .g5core-top-bar-item {
  color: rgba(255, 255, 255, .58);
  font-weight: 400;
  letter-spacing: .2px;
  text-align: center;
}
.g5core-top-bar a {
  color: var(--aps-gold);
  transition: color .2s ease;
}
.g5core-top-bar a:hover { color: #fff; }

/* ─────────────────────────────────────────────
   DESKTOP HEADER
   ───────────────────────────────────────────── */
.g5core-site-header .g5core-header-desktop-wrapper {
  background: var(--aps-dark);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .32);
}
.g5core-site-header .g5core-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  transition: min-height .25s ease;
}
.g5core-site-header.is-sticky .g5core-header-inner,
.g5core-site-header .sticky-area.is-sticky .g5core-header-inner { min-height: 68px; }

/* Logo */
.g5core-site-branding { flex-shrink: 0; }
.g5core-site-branding img.site-logo {
  height: 54px;
  width: auto;
  max-width: 100%;
  transition: height .25s ease;
}

/* Primary menu */
.g5core-primary-menu ul.main-menu > li.menu-item > a.x-menu-link {
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .2px;
  padding: 9px 14px;
  border-radius: 5px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.g5core-primary-menu ul.main-menu > li.menu-item > a.x-menu-link:hover,
.g5core-primary-menu ul.main-menu > li.menu-item:hover > a.x-menu-link {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

/* The parent theme draws its own white 2px bar via ::before at bottom:20px,
   which lands mid-word and reads as a strikethrough. We supply a gold
   underline via ::after instead, so switch the theme's bar off. */
.g5core-primary-menu ul.main-menu > li.menu-item > a.x-menu-link::before {
  display: none !important;
}

/* Gold underline on the current page */
.g5core-primary-menu ul.main-menu > li.menu-item > a.x-menu-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--aps-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}
.g5core-primary-menu ul.main-menu > li.current-menu-item > a.x-menu-link::after,
.g5core-primary-menu ul.main-menu > li.current-menu-ancestor > a.x-menu-link::after,
.g5core-primary-menu ul.main-menu > li.menu-item:hover > a.x-menu-link::after {
  transform: scaleX(1);
}

/* Caret */
.g5core-primary-menu .x-caret,
.g5core-primary-menu .caret { opacity: .55; }

/* Dropdowns */
.g5core-primary-menu ul.sub-menu {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
  padding: 8px 0;
  min-width: 232px;
  overflow: hidden;
}
.g5core-primary-menu ul.sub-menu > li.menu-item > a.x-menu-link {
  color: #555;
  font-size: 13px;
  font-weight: 400;
  padding: 10px 20px;
  display: block;
  border-radius: 0;
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.g5core-primary-menu ul.sub-menu > li.menu-item > a.x-menu-link:hover,
.g5core-primary-menu ul.sub-menu > li.menu-item:hover > a.x-menu-link {
  color: var(--aps-accent);
  background: #fafafa;
  padding-left: 25px;
}

/* ─────────────────────────────────────────────
   MOBILE HEADER
   ───────────────────────────────────────────── */
.g5core-mobile-header .g5core-mobile-header-wrapper {
  background: var(--aps-dark);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.g5core-mobile-header .g5core-mobile-header-inner {
  min-height: 66px;
  gap: 12px;
}
.g5core-mobile-header .g5core-site-branding img { height: 42px; width: auto; }
.g5core-mobile-header .g5core-hc-custom-html {
  color: rgba(255, 255, 255, .6);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
}
.g5core-mobile-header .g5core-hc-custom-html a { color: var(--aps-gold); }
.g5core-mobile-header .menu-mobile-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.g5core-mobile-header .menu-mobile-toggle:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .45);
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.g5core-site-footer {
  background: linear-gradient(180deg, #111010 0%, var(--aps-black) 100%) !important;
}
/* The footer content block carries hardcoded #000 backgrounds on its rows and
   columns, which show as dark rectangles over the gradient. Neutralise them
   so the gradient reads as one surface — the block itself stays untouched. */
.g5core-site-footer .vc_row,
.g5core-site-footer .vc_row-has-fill,
.g5core-site-footer .vc_column_container,
.g5core-site-footer .vc_column-inner,
.g5core-site-footer .wpb_wrapper {
  background-color: transparent !important;
  background-image: none !important;
}
.g5core-site-footer > .container > .wpb-content-wrapper > .vc_row:first-child {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--aps-line);
  align-items: center;
}
.g5core-site-footer .wpb_column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Footer logo */
.g5core-site-footer .footer-logo { margin-bottom: 0 !important; }
.g5core-site-footer .footer-logo img {
  height: 62px;
  width: auto;
  opacity: .96;
  transition: opacity .2s ease;
}
.g5core-site-footer .footer-logo img:hover { opacity: 1; }

/* Social icons → circular buttons */
.g5core-site-footer .gel-social-icons ul.list-si {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.g5core-site-footer .gel-social-icons ul.list-si > li { margin: 0 !important; }
.g5core-site-footer .gel-social-icons ul.list-si > li > a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .6);
  font-size: 15px;
  transition: background .22s ease, border-color .22s ease,
              color .22s ease, transform .22s ease;
}
.g5core-site-footer .gel-social-icons ul.list-si > li > a:hover {
  background: var(--aps-accent);
  border-color: var(--aps-accent);
  color: #fff;
  transform: translateY(-3px);
}
/* Icon label text is for screen readers only */
.g5core-site-footer .gel-social-icons ul.list-si > li > a span span:not([class]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer menu */
.g5core-site-footer .nav-footer ul {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}
.g5core-site-footer .nav-footer li { margin: 0 !important; }
.g5core-site-footer .nav-footer a {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2px;
  transition: color .2s ease;
}
.g5core-site-footer .nav-footer a:hover { color: var(--aps-gold); }

/* Copyright / bottom row */
.g5core-site-footer > .container > .wpb-content-wrapper > .vc_row:last-child {
  padding: 22px 0;
}
.g5core-site-footer .wpb_text_column,
.g5core-site-footer .wpb_text_column p {
  color: rgba(255, 255, 255, .38);
  font-size: 12.5px;
  margin-bottom: 0;
}
.g5core-site-footer .wpb_text_column a {
  color: rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: color .2s ease, border-color .2s ease;
}
.g5core-site-footer .wpb_text_column a:hover {
  color: var(--aps-gold);
  border-bottom-color: var(--aps-gold);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .g5core-site-footer > .container > .wpb-content-wrapper > .vc_row:first-child {
    padding: 32px 0 26px;
    text-align: center;
  }
  .g5core-site-footer .footer-logo img { height: 52px; margin: 0 auto 22px; }
  .g5core-site-footer .gel-social-icons ul.list-si { justify-content: center; }
  .g5core-site-footer .nav-footer ul { justify-content: center; gap: 18px; }
  .g5core-site-footer .wpb_text_column,
  .g5core-site-footer .wpb_text_column p { text-align: center !important; }
  .g5core-site-footer .wpb_column + .wpb_column { margin-top: 18px; }
}

@media (max-width: 640px) {
  .g5core-top-bar { font-size: 11.5px; padding: 8px 0; }
  .g5core-top-bar .g5core-top-bar-item { line-height: 1.7; }
  .g5core-site-footer .footer-logo img { height: 46px; }
  .g5core-site-footer .gel-social-icons ul.list-si > li > a {
    width: 38px; height: 38px; font-size: 14px;
  }
  .g5core-site-footer .nav-footer ul { gap: 12px 16px; }
  .g5core-site-footer .nav-footer a { font-size: 12.5px; }
  .g5core-site-footer .wpb_text_column,
  .g5core-site-footer .wpb_text_column p { font-size: 11.5px; }
}
