/* ============================================================
   Florette Relocation — Site Chrome (header + footer rebuild)
   Self-contained: explicit colors, no var fallback dependency.
   Loaded after style.css to win the cascade.
   ============================================================ */

/* ---------- Body offset for fixed nav (inner pages) ---------- */
body.has-fixed-nav { padding-top: 74px; }

/* ============================================================
   FIXED TOP NAV
   ============================================================ */
header.nav,
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 74px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229, 229, 224, 0.7);
  transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}
header.nav.scrolled,
.nav.scrolled {
  height: 62px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .07);
}
header.nav > .container,
.nav > .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ---------- Brand ---------- */
.nav .brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.nav .brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: height .3s ease;
}
.nav.scrolled .brand-logo { height: 44px; }

/* ---------- Desktop primary nav ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: #1A1A1A;
  background: transparent;
  border: none;
  padding: 10px 13px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link .caret {
  font-size: 0.6rem;
  line-height: 1;
  opacity: 0.65;
  transition: transform .25s ease;
}
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
  color: #0F2A44;
  background: rgba(15, 42, 68, 0.05);
}
.nav-item:hover .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); }

/* ---------- Mega menu (hover-revealed dropdown) ---------- */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 1200;
  min-width: 320px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid #E5E5E0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16), 0 8px 24px rgba(15, 23, 42, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mega::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-item:hover > .mega,
.nav-item:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega.align-right { left: auto; right: 0; }

.mega-grid { display: grid; gap: 8px 26px; }
.mega-grid.cols-1 { grid-template-columns: minmax(220px, 1fr); }
.mega-grid.cols-2 { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.mega-grid.cols-4 { grid-template-columns: repeat(4, minmax(168px, 1fr)); }

.mega-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5C5C5C;
  margin: 0 0 6px;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #E5E5E0;
}
.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-col a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  transition: background .18s, color .18s, padding-left .18s;
}
.mega-col a:hover {
  background: #F3F2EC;
  color: #0F2A44;
  padding-left: 14px;
}
.mega-col a.is-parent { font-weight: 700; color: #0F2A44; }

/* ---------- Nav CTA cluster (right side) ---------- */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-phone,
.nav-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #1A1A1A;
  text-decoration: none;
  transition: background .2s;
}
.nav-phone:hover,
.nav-track:hover { background: #ECEBE3; }
.nav-phone svg,
.nav-track svg { width: 17px; height: 17px; }
.nav-track svg { color: #0F2A44; }
.nav-phone svg { color: #25D366; }

.nav-cta .btn-primary,
.nav-cta .btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  background: #D6131C;
  color: #FFFFFF !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.nav-cta .btn-primary:hover,
.nav-cta .btn-sm:hover {
  background: #A80F15;
  transform: translateY(-1px);
}

.nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0F2A44, #1B3F66);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 42, 68, .25);
  transition: transform .2s, box-shadow .2s;
}
.nav-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 42, 68, .35);
}
.nav-ai svg { width: 16px; height: 16px; color: #FFB627; }

/* ---------- Hamburger (mobile only) ---------- */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #ECEBE3;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background .2s;
}
.hamburger:hover { background: #DCDBD3; }
.hamburger span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: background .2s;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: top .3s ease, transform .3s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   MOBILE SLIDE-IN PANEL + OVERLAY
   ============================================================ */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 30px;
  background: #FAFAF7;
  border-left: 1px solid #E5E5E0;
  box-shadow: -30px 0 60px rgba(15, 23, 42, .18);
  transform: translateX(105%);
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.menu-open .mobile-panel { transform: translateX(0); }
.mobile-panel .mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mobile-panel .mp-head .brand-logo { height: 38px; width: auto; display: block; }
.mp-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #ECEBE3;
  color: #1A1A1A;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}
.mp-close:hover { background: #DCDBD3; transform: rotate(90deg); }

.mobile-panel > nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}
.mobile-panel > nav > a,
.mobile-panel .mp-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1A1A1A;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  transition: background .2s, color .2s, padding-left .2s;
}
.mobile-panel > nav > a:hover,
.mobile-panel .mp-acc > summary:hover {
  background: #F3F2EC;
  color: #0F2A44;
  padding-left: 22px;
}
.mobile-panel > nav > a span { color: #0F2A44; opacity: 0.5; }
.mp-acc { border-radius: 14px; overflow: hidden; }
.mp-acc > summary::-webkit-details-marker { display: none; }
.mp-acc[open] > summary { background: #F3F2EC; color: #0F2A44; }
.mp-acc .chev {
  color: #0F2A44;
  opacity: 0.6;
  font-size: 1.1rem;
  transition: transform .25s ease;
}
.mp-acc[open] > summary .chev { transform: rotate(90deg); }
.mp-sub { padding: 4px 6px 12px; }
.mp-sub-h {
  display: block;
  padding: 12px 12px 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5C5C5C;
}
.mp-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .2s;
}
.mp-sub a:hover { background: #FFFFFF; color: #0F2A44; padding-left: 18px; }
.mp-sub a.is-parent { font-weight: 700; color: #0F2A44; }

.mp-foot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.mp-foot .btn-primary { background: #D6131C; color: #FFFFFF; border: 1px solid #D6131C; }
.mp-foot .btn-primary:hover { background: #A80F15; border-color: #A80F15; }
.mp-foot .btn-outline { background: transparent; color: #1A1A1A; border: 1px solid #E5E5E0; }
.mp-foot .btn-outline:hover { background: #F3F2EC; }
.mp-contact {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: #5C5C5C;
}
.mp-contact a {
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
body.menu-open .overlay { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ============================================================
   FOOTER (markup mirrors /demo/ homepage)
   ============================================================ */
footer.footer,
.footer {
  background: #1A1A1A;
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about .brand,
.footer-about .brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  margin-bottom: 18px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.footer-about .brand-logo { height: 34px; width: auto; display: block; }
.footer-about > p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 330px;
}
.footer-about .socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-about .socials a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.footer-about .socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.footer-about .socials svg { width: 17px; height: 17px; }

.footer h4,
.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.footer ul,
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin: 0; }
.footer-col a {
  display: inline-block;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: #FFFFFF; padding-left: 5px; }

/* Inline contact list (replaces old footer-contact-bar) */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  margin-bottom: 22px;
  list-style: none;
}
.footer-contact li {
  display: flex;
  gap: 11px;
  font-size: 0.94rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.8);
}
.footer-contact svg {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.55);
  flex: none;
  margin-top: 3px;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color .2s;
}
.footer-contact a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom a:hover { color: #FFFFFF; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
@media (max-width: 920px) {
  /* Hide desktop nav, show hamburger */
  .nav-links,
  .nav-phone,
  .nav-track,
  .nav-cta .btn-primary,
  .nav-cta .btn-sm,
  .nav-ai {
    display: none !important;
  }
  .hamburger { display: inline-flex !important; }
  .nav .brand-logo { height: 42px; }
  .nav.scrolled .brand-logo { height: 38px; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about > p { max-width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom .links { justify-content: center; }
}
@media (max-width: 420px) {
  .nav > .container,
  header.nav > .container { padding: 0 16px; }
  .nav .brand-logo { height: 38px; }
  .hamburger { width: 40px; height: 40px; }
}
