/* =====================================================
   CHATEAU SYSTEM v2 â€” HEADER + FOOTER CORE
   RESPONSIVE + CLEAN + NO CONFLICTS
===================================================== */

/* =========================
   RESPONSIVE FOUNDATION
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   HEADER WRAPPER (STICKY)
===================================================== */

#chateauHeader {
  height: auto;
  overflow: visible;
}

/* optional scrolled state */
#chateauHeader.scrolled {
  background: #000;
}

#chateauHeader.scrolled a {
  color: #fff;
}

/* =====================================================
   TOP BAR
===================================================== */


.chateau-topbar {
  width: 100%;
  background: #499FAF;
  color: #fff;
  min-height: auto;        /* remove forced height */
  padding: 8px 0;          /* control manually */
  display: flex;
  align-items: center;
  padding: 12px 0;   /* slightly more breathing room */
}

/* INNER WRAPPER */

 .chateau-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.chateau-left {
  flex: 0 0 auto;
}

.chateau-center {
  flex: 1;
  min-width: 0;
  text-align: center;  
}
.chateau-right {
  flex: 0 0 320px;   /* fixed width so it doesn’t crush layout */
  text-align: center;
}

.chateau-left   { flex: 0 0 auto; }
.chateau-center { flex: 1 1 0; }
.chateau-right  { flex: 1 1 0; }

.trust-line {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  text-align: center;
}

.topbar-phone {
  white-space: nowrap;
  font-weight: 600;
}

.topbar-tagline {
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  max-width: 360px;   /* HARD LIMIT */
  margin-left: auto;  /* keeps it aligned */
  display: block;
  overflow: visible;
}

.z-logo-lg {
  height: 60px;
  width: auto;
  display: block;
}

.chateau-microhero {
  width: 100%;
  background: #f8f8f8;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.micro-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 24px;
  text-align: center;
}

.chateau-microhero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}


.topbar-phone {
  margin-top: 2px;
  font-weight: 600;
}
/* =====================================================
   CTA
===================================================== */

.chateau-list .nav-cta {
  background: transparent;
  padding: 0;
  margin: 0;
}

.chateau-list .nav-cta a {
  background-color: #499FAF;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  opacity: 1;
  transition: all 0.2s ease;
}

.chateau-list .nav-cta a:hover {
  background-color: #3f8f9f;
  color: #222222;
}

.chateau-list .nav-cta a:focus,
.chateau-list .nav-cta a:focus-visible {
  outline: none;
  box-shadow: none;
}

/* =====================================================
   NAVIGATION
===================================================== */

.chateau-menu {
  display: block;
  width: 100%;  
  background: #ffffff;   /* ?? CRITICAL */
  border-top: 1px solid #e5e5e5;
}
.chateau-menu a {
  color: #222;
}
#chateauHeader {
  display: block;
}

.chateau-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;

  list-style: none;
  margin: 0;
  padding: 12px 20px;
}

.chateau-list a {
  text-decoration: none;
  color: #222;
  font-size: 15px;
  padding: 8px 6px;
}

.chateau-list a:hover {
  color: #499FAF;
}

.chateau-list a.active {
  border-bottom: 2px solid #222;
}

/* =====================================================
   DROPDOWNS
===================================================== */

.has-dd {
  position: relative;
}

.dd {
  position: absolute;
  top: 100%;
  left: 0;

  display: none;
  flex-direction: column;

  min-width: 220px;
  background: #fff;

  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);

  padding: 8px 0;
  z-index: 9999;
}

.dd li {
  list-style: none;
}

.dd a {
  padding: 10px 14px;
  font-size: 14px;
}

.has-dd:hover > .dd {
  display: flex;
}

/* =====================================================
   MOBILE NAV
===================================================== */

.chateau-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {

  .chateau-center {
    display: none;
  }

  .chateau-toggle {
    display: block;
  }

  .chateau-menu {
    display: none;
    background: #fff;
  }

  #chateauHeader.open .chateau-menu {
    display: block;
  }

  .chateau-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .chateau-list li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .chateau-list a {
    padding: 14px 20px;
  }

  .dd {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }

  .has-dd.open > .dd {
    display: flex;
  }


 }

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  background: #111;
  color: #fff;
  padding-top: 60px;
  font-size: 15px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 50px;

  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 40px;
}


.footer-col {
  font-size: 14px;
  margin-bottom: 14px;
}

/* LINKS */
.site-footer a {
    color: #FFFFFF;
    text-decoration: none;
}

.site-footer a:hover {
    color: #FFFFFF;
}
.footer-col a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-sub {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;

  display: flex;
  justify-content: space-between;

  max-width: 1200px;
  margin: 0 auto;

  font-size: 13px;
  color: #fff;
}
.footer-divider {
  grid-column: 1 / -1;
  text-align: center;
  color: #FFFFFF;
  opacity: 1 !important;
  letter-spacing: 4px;
  margin: 10px 0;
}

/* FOOTER RESPONSIVE */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-sub {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .chateau-menu {
    display: block !important;
  }
}
@media (max-width: 900px) {
  .nav-cta a {
    display: block;
    width: 100%;
  }
}

 .site-footer .footer-col,
.site-footer .footer-col p,
.site-footer .footer-col h1,
.site-footer .footer-col h2,
.site-footer .footer-col h3,
.site-footer .footer-col h4 {
  color: #fff;
  opacity: 1;
}
.footer-sub {
  color: #fff;
}

.footer-sub p {
  margin: 0;
  color: inherit;
}
