/* =====================================================
   theme colors (your chosen palette)
===================================================== */
:root {
    --primary: #1c588d;      /* main brand */
    --secondary: #1e90ff;    /* action/links */
    --accent: #ff7a59;       /* warm highlight */
    --white: #ffffff;
    --dark-text: #1f2933;
    --muted: rgba(255,255,255,.85);
    --shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* ================= base ================= */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= top bar (desktop only) ================= */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.top-left span {
    margin-right: 15px;
}

.top-bar i {
    margin-right: 6px;
}

.top-right a {
    color: var(--white);
    margin-left: 12px;
    transition: color .3s;
    text-decoration: none;
}

.top-right a:hover {
    color: var(--accent);
}

/* ================= header ================= */
.main-header {
    position: absolute;
    width: 100%;
    top: 40px;
    z-index: 999;
    transition: all .35s ease;
}

.main-header.sticky {
    position: fixed;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    animation: bounceDown .6s ease;
}

@keyframes bounceDown {
    0% { transform: translateY(-100%); }
    60% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

/* logo */
.logo img {
    height: 46px;
    display: block;
}

/* desktop nav */
.nav-menu a {
    margin: 0 14px;
    text-decoration: none;
    font-weight: 600;
    color: var(--white);
    transition: color .3s;
    text-transform: capitalize;
}

.main-header.sticky .nav-menu a {
    color: var(--dark-text);
}

.nav-menu a:hover {
    color: var(--secondary);
}

/* cta desktop */
.btn-quote {
    background: var(--secondary);
    color: var(--white);
    padding: 11px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: .25s;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.btn-quote:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--secondary);
}

/* mobile toggle button */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,.12);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

.main-header.sticky .menu-toggle {
    background: rgba(0,0,0,.06);
    color: var(--dark-text);
}

/* ================= mobile drawer ================= */

/* overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 2000;
}

/* drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(84vw, 360px);
    background: var(--primary);
    transform: translateX(110%);
    transition: transform .28s ease;
    z-index: 2100;
    
}

/* open states */
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* drawer close */
.drawer-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
}

/* drawer content */
.drawer-content {
    padding: 70px 22px 22px 22px;
}

.drawer-nav a {
    display: block;
    padding: 14px 14px;
    margin-bottom: 8px;
    border-radius: 0px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: capitalize;
}

.drawer-nav a:hover {
    background: rgba(255,255,255,.12);
}

.drawer-nav a.active {
    background: rgba(0,0,0,.18);
}

/* info blocks */
.drawer-info {
    margin-top: 18px;
    padding-top: 12px;
}

.info-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.info-row i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 3px;
    width: 22px;
}

.info-title {
    font-weight: 800;
    color: var(--white);
    text-transform: capitalize;
    font-size: 14px;
}

.info-text {
    color: var(--muted);
    text-transform: capitalize;
    font-size: 14px;
    margin-top: 2px;
}

/* drawer quote button */
.drawer-quote {
    margin-top: 18px;
    display: block;
    text-align: center;
    padding: 14px 16px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    border-radius: 6px;
    text-transform: capitalize;
}

.drawer-quote:hover {
    background: var(--accent);
}

/* ================= responsive rules ================= */
@media (max-width: 900px) {
    /* on mobile: hide top bar + desktop nav + desktop button */
    .top-bar { display: none; }

    .nav-menu { display: none; }
    .btn-quote-desktop { display: none; }

    /* show only logo + toggle */
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

    /* header should not float too low since top bar hidden */
    .main-header { top: 0; }
}


/* 1) Make the drawer use iOS-safe viewport height */
.mobile-drawer{
  height: 100dvh;      /* modern iOS */
  height: 100svh;      /* iOS Safari safe height */
  height: 100vh;       /* fallback */
  overflow: hidden;    /* keep container clean */
}

/* 2) Allow the inside content to scroll */
.drawer-content{
  height: 80%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
  padding-bottom: 28px; /* breathing space at bottom */
}

/* 3) Stop iOS from zooming/overflowing long text */
.info-text a, .branch-email a{
  word-break: break-word;
}

/* 4) Keep close button visible even when scrolling */
.drawer-close{
  position: sticky;
  top: 14px;
  left: 14px;
  z-index: 5;
}
