/*
  SHARED STYLES
  ==============
  CSS for all shared components: nav, sub-sticky, mobile menu,
  booking overlay, footer, and footer CTA.

  USAGE:
  Add this to any page's <head>:
    <link rel="stylesheet" href="/shared/styles.css">
  Then remove the duplicate style blocks for these components from
  each page's inline <style> tag.

  NOTE:
  Each page still needs its own :root variables and page-specific
  styles inline. This file only covers the shared component styles.
*/


/* ===== CSS VARIABLES (shared defaults) ===== */
:root {
    --navy: #3d4f5f;
    --teal: #0090A8;
    --teal-dark: #007A8F;
    --coral: #FF7F50;
    --coral-hover: #E5673A;
    --white: #FFFFFF;
    --gray-200: #e5e7eb;
    --gray-500: #6b7b8d;
}


/* ===================================================
   STICKY NAV
   =================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
    max-width: 100%; margin: 0 auto;
    padding: 8px 40px 6px;
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
}
.nav-left-group {
    display: flex; align-items: center; gap: 16px;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 22px; color: #1a2b3c;
    text-decoration: none;
}
.nav-links {
    display: none; align-items: center; gap: 4px;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-right-group { display: flex; align-items: center; gap: 12px; }
.nav-cta {
    display: inline-flex; align-items: center;
    background: #FF7F50; color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
    padding: 10px 20px; border-radius: 24px;
    text-decoration: none; white-space: nowrap;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
    box-shadow: 0 2px 8px rgba(255,127,80,0.3);
}
.nav-cta:hover { background: #E5673A; transform: scale(1.04); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta:focus-visible { outline: 2px solid #FF7F50; outline-offset: 3px; }
.nav-hamburger {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px;
    padding: 4px 8px; cursor: pointer; z-index: 101;
    background: none; border: none;
}
.nav-hamburger-lines {
    display: flex; flex-direction: column; gap: 4px;
    height: 26px; justify-content: center;
}
.nav-hamburger-lines span {
    display: block; width: 24px; height: 2.5px;
    background: #1a2b3c; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger-label {
    font-family: 'Roboto', sans-serif;
    font-size: 9px; font-weight: 600; color: #6b7a8d;
    letter-spacing: 0.03em;
}
.nav-hamburger:focus-visible { outline: 2px solid #0090A8; outline-offset: 4px; }

/* ===================================================
   NAV DROPDOWN / MEGA MENU
   =================================================== */
.nav-dropdown { position: relative; }
.nav-link-trigger {
    font-size: 13.5px; font-weight: 600; color: #3d4f5f;
    letter-spacing: 0.01em; text-decoration: none;
    padding: 8px 12px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 5px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap; cursor: pointer;
}
.nav-link-trigger svg { transition: transform 0.25s; }
.nav-link-trigger:hover,
.nav-dropdown:hover .nav-link-trigger {
    color: #0090A8; background: rgba(0,144,168,0.06);
}
.nav-dropdown:hover .nav-link-trigger svg { transform: rotate(180deg); }
.nav-link-trigger:focus-visible { outline: 2px solid #0090A8; outline-offset: 2px; }

/* Mega menu panel */
.mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,30,60,0.12), 0 2px 8px rgba(0,30,60,0.06);
    padding: 24px 28px;
    display: flex; gap: 32px;
    opacity: 0; visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    pointer-events: none;
    margin-top: 4px;
    z-index: 300;
}
.nav-dropdown:hover .mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Sizing variants */
.mega-menu--single { min-width: 200px; }
.mega-menu--wide { min-width: 580px; }
.mega-menu--medium { min-width: 440px; }
.mega-menu--offices { min-width: 400px; }
.mega-menu--contact { min-width: 320px; }

/* Columns */
.mega-col { display: flex; flex-direction: column; min-width: 0; }

/* Headings */
.mega-heading {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: #0090A8;
    margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,144,168,0.12);
}

/* Links */
.mega-link {
    font-size: 13.5px; font-weight: 500; color: #3d4f5f;
    text-decoration: none; padding: 5px 8px; margin: 0 -8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.mega-link:hover { background: rgba(0,144,168,0.07); color: #0090A8; }
.mega-link:focus-visible { outline: 2px solid #0090A8; outline-offset: 1px; }
.mega-link--compare { font-style: italic; font-size: 12.5px; color: #6b7a8d; }
.mega-link--compare:hover { color: #0090A8; }

/* Divider */
.mega-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 8px 0; }

/* Office cards */
.mega-office {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 14px; border-radius: 10px;
    text-decoration: none; color: #3d4f5f;
    border: 1px solid rgba(0,0,0,0.06);
    transition: background 0.15s, border-color 0.15s;
}
.mega-office:hover { background: rgba(0,144,168,0.05); border-color: rgba(0,144,168,0.2); }
.mega-office strong { font-size: 14px; font-weight: 700; color: #3d4f5f; }
.mega-office span { font-size: 12.5px; color: #6b7a8d; }
.mega-hours { font-size: 11px !important; color: #9ca8b7 !important; margin-top: 2px; }

/* Desktop: show nav links + larger logo */
@media (min-width: 769px) {
    .nav-links { display: flex; }
    .nav-logo img { height: 64px !important; }
}

/* ===================================================
   FLOATING MOBILE CONTACT BUTTONS
   =================================================== */
.floating-contact {
    display: none; /* hidden on desktop */
}
@media (max-width: 768px) {
    .floating-contact {
        display: flex; flex-direction: column; gap: 10px;
        position: fixed; bottom: 24px; right: 16px; z-index: 190;
    }
    .floating-btn {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        width: 56px; height: 56px; border-radius: 50%;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
    }
    .floating-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
    .floating-btn:active { transform: scale(0.95); }
    .floating-btn img { width: 22px; height: 22px; object-fit: contain; }
    .floating-btn span {
        font-size: 8px; font-weight: 700; letter-spacing: 0.06em;
        margin-top: 2px;
    }
    .floating-text {
        background: #fff; border: 1px solid rgba(0,144,168,0.15);
    }
    .floating-text span { color: #0090A8; }
    .floating-call {
        background: #0090A8;
    }
    .floating-call span { color: #fff; }
}


/* ===================================================
   SUB-STICKY BAR
   =================================================== */
.sub-sticky {
    position: fixed; top: 80px; left: 0; right: 0; z-index: 199;
    background: #0090A8;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 6px 20px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.sub-sticky-phone {
    display: flex; align-items: center; gap: 6px;
    color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    text-decoration: none;
}
.sub-sticky-phone:hover { opacity: 0.85; }
.sub-sticky-phone:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sub-sticky-phone img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.sub-sticky-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #E8734A; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    padding: 6px 16px; border-radius: 20px; border: none; cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
}
.sub-sticky-btn:hover { background: #e86a3f; transform: scale(1.04); }
.sub-sticky-btn:active { transform: scale(0.97); }
.sub-sticky-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }


/* ===================================================
   MOBILE MENU
   =================================================== */
.mobile-menu-overlay {
    position: fixed; inset: 0; z-index: 199;
    background: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
    position: fixed; top: 0; right: 0; width: 300px; height: 100%;
    background: linear-gradient(180deg, #007A8F 0%, #0090A8 100%);
    z-index: 200;
    padding: 24px 28px 32px;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
    position: absolute; top: 16px; right: 16px;
    padding: 8px; color: rgba(255,255,255,0.6); cursor: pointer;
    transition: color 0.2s; z-index: 2;
    background: none; border: none;
}
.mobile-menu-close:hover { color: white; }
.mobile-menu-logo { margin-bottom: 32px; padding-top: 8px; }
.mobile-menu-links {
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500;
    text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}
.mobile-menu-links a:hover { color: #fff; }
.menu-group-label {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 600;
    cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}
.menu-group-label:hover { color: #fff; }
.menu-group-label svg { transition: transform 0.3s; }
.menu-group.open .menu-group-label svg { transform: rotate(90deg); }
.menu-group-items {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.menu-group.open .menu-group-items { max-height: 500px; }
.menu-group-items a {
    padding: 8px 0 8px 16px; font-size: 13.5px;
    color: rgba(255,255,255,0.65); font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none; display: block;
    transition: color 0.2s;
}
.menu-group-items a:hover { color: #fff; }
.mobile-menu-info {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; gap: 12px;
}
.mobile-menu-info-item {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,255,255,0.7); font-size: 12.5px; line-height: 1.5;
    text-decoration: none; transition: color 0.2s;
}
.mobile-menu-info-item:hover { color: #fff; }
.mobile-menu-info-item strong { color: rgba(255,255,255,0.9); }
.mobile-menu-cta {
    display: block; text-align: center; margin-top: 20px;
    padding: 14px 24px; background: #E8734A; color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
    border-radius: 100px; text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
}
.mobile-menu-cta:hover { background: #e86a3f; transform: scale(1.03); }
.mobile-menu-cta:active { transform: scale(0.97); }


/* ===================================================
   BOOKING OVERLAY
   =================================================== */
.booking-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.booking-overlay.open { display: flex; }
.booking-overlay.visible { opacity: 1; }
.booking-inner {
    background: #fff; border-radius: 20px; width: 90%; max-width: 480px;
    max-height: 90vh; overflow-y: auto; padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.booking-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}


/* ===================================================
   FOOTER CTA (homepage only, but included here
   so any page can use it without duplicating)
   =================================================== */
.footer-cta {
    background: var(--white);
    padding: 64px 40px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.footer-cta-icon {
    width: 48px; height: 48px;
    margin: 0 auto 20px;
}
.footer-cta-icon svg {
    width: 100%; height: 100%;
}
.footer-cta h2 {
    font-size: 32px; font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
}
.footer-cta p {
    font-size: 15px; color: var(--gray-500);
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto 28px;
}
.footer-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--coral); color: var(--white);
    font-size: 16px; font-weight: 700;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255,127,80,0.3);
}
.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(255,127,80,0.4);
}
.footer-cta-btn:active { transform: translateY(0); }
.footer-cta-btn:focus-visible { outline: 3px solid rgba(255,127,80,0.4); outline-offset: 2px; }


/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--teal);
    padding: 40px 40px 28px;
    position: relative;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
}
.footer-drz {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 200px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.footer-drz.visible {
    opacity: 1;
    transform: translateY(0);
}
.footer-drz img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 14px; color: rgba(255,255,255,0.85);
    line-height: 1.7; margin-top: 12px;
}
.footer-logo img {
    height: 40px; width: auto; filter: brightness(0) invert(1);
}
.footer h4 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a {
    font-size: 14px; color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer ul a:hover { opacity: 0.7; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
    font-size: 13px; color: rgba(255,255,255,0.7); margin: 0;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
    font-size: 13px; color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-bottom-links a:hover { opacity: 0.6; }


/* ===================================================
   RESPONSIVE — SHARED COMPONENTS
   =================================================== */
@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .nav-inner { padding: 8px 16px 6px; height: 64px; }
    .nav-logo img { height: 36px !important; }
    .nav-cta { font-size: 11px; padding: 8px 14px; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer { padding: 32px 24px 24px; }
    .footer-cta { padding: 48px 24px; }
    .footer-cta h2 { font-size: 26px; }
}
@media (max-width: 900px) {
    .footer-drz { right: 8px; width: 150px; }
}
@media (max-width: 600px) {
    .footer-drz { right: 4px; width: 110px; }
}
