/* ============================================
   CSS VARIABLES — BLUE BRICK BRAND PALETTE
   ============================================ */
:root {
    --prussian: #0C1F35;
    --yale: #1A3A5C;
    --cerulean: #3D7A9E;
    --cream: #EAF8BF;
    --steel: #3D7A9E;
    --steel-light: #5A9BBD;
    --steel-glow: rgba(61, 122, 158, 0.15);
    --white: #ffffff;
    --off-white: #f9fafb;
    --light-gray: #f0f2f5;
    --mid-gray: #6b7280;
    --dark-gray: #374151;
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--cerulean); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--steel); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes blurIn {
    from { opacity: 0; filter: blur(12px); transform: translateY(20px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes drawLineLeft {
    from { width: 0; opacity: 0; }
    to { width: 28px; opacity: 1; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61, 122, 158, 0); }
    50% { box-shadow: 0 0 30px 8px rgba(61, 122, 158, 0.15); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-5deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes countGlow {
    0% { text-shadow: 0 0 0 rgba(61, 122, 158, 0); }
    50% { text-shadow: 0 0 40px rgba(61, 122, 158, 0.5); }
    100% { text-shadow: 0 0 0 rgba(61, 122, 158, 0); }
}

/* ── Reveal variants ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-3deg) translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate.visible {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 220px;
    height: auto;
    transition: all 0.4s;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

nav > a, .nav-dropdown > a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
    white-space: nowrap;
}


nav > a:hover, .nav-dropdown > a:hover { color: var(--steel); }

/* Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 3.5px solid currentColor;
    transition: transform 0.2s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 29, 74, 0.18);
    padding: 0.5rem 0;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark-gray) !important;
    letter-spacing: 0.03em;
    text-transform: none;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--cerulean) !important;
    padding-left: 1.4rem;
}

.nav-cta {
    padding: 0.55rem 1.5rem;
    background: var(--steel);
    color: var(--prussian) !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
    background: var(--steel-light) !important;
    color: var(--prussian) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 122, 158, 0.35);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s;
}


/* Keep dropdown hidden on mobile */
@media (max-width: 1024px) {
    .dropdown-menu { display: none !important; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 29, 74, 0.92) 0%,
        rgba(0, 29, 74, 0.80) 40%,
        rgba(0, 105, 146, 0.50) 70%,
        rgba(0, 105, 146, 0.30) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px clamp(2rem, 5vw, 5rem) 80px;
    animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(61, 122, 158, 0.12);
    border: 1px solid rgba(61, 122, 158, 0.35);
    border-radius: 2px;
    color: var(--steel);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    animation: fadeIn 0.8s 0.3s both;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--steel);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero h1 em {
    font-style: normal;
    color: var(--steel);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
    font-weight: 300;
    animation: fadeUp 0.8s 0.5s both;
}

.trust-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.7s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.trust-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(61, 122, 158, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s;
}

.trust-item:hover .trust-icon {
    border-color: var(--steel);
    background: rgba(61, 122, 158, 0.1);
    animation: glowPulse 2s ease infinite;
    transform: scale(1.1);
}

.trust-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--steel);
    fill: none;
    stroke-width: 1.5;
}

.trust-label {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.6);
    line-height: 1.3;
}

.trust-label strong {
    display: block;
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   MULTI-STEP FORM
   ============================================ */
.form-wrapper {
    position: relative;
    z-index: 2;
    padding: 80px clamp(1.5rem, 3vw, 3rem) 80px clamp(1rem, 2vw, 2rem);
    animation: slideInRight 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lead-form {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: clamp(1.8rem, 3vw, 2.5rem);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lead-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cerulean), var(--steel), var(--cerulean));
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--prussian);
    margin-bottom: 0.3rem;
}

.form-subtitle {
    font-size: 0.82rem;
    color: var(--mid-gray);
    margin-bottom: 1.5rem;
}

/* Progress bar */
.form-progress {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-step .step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mid-gray);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-step.active .step-dot {
    background: var(--cerulean);
    border-color: var(--cerulean);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 105, 146, 0.15);
}

.progress-step.completed .step-dot {
    background: var(--steel);
    border-color: var(--steel);
    color: var(--prussian);
}

.progress-step .step-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.progress-step.active .step-label,
.progress-step.completed .step-label { color: var(--prussian); }

.progress-line {
    position: absolute;
    top: 16px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.progress-line-fill {
    height: 100%;
    background: var(--steel);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

/* Form steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeUp 0.4s ease;
}

.form-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--off-white);
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    color: var(--prussian);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cerulean);
    box-shadow: 0 0 0 3px rgba(0, 105, 146, 0.1);
    background: var(--white);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--mid-gray);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group textarea ~ label {
    top: 0.85rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.62rem;
    color: var(--cerulean);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--white);
    padding: 0 0.35rem;
}

.form-group select { cursor: pointer; color: var(--mid-gray); }
.form-group select:valid { color: var(--prussian); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-nav {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn-next, .btn-prev, .submit-btn {
    flex: 1;
    padding: 0.9rem;
    border: none;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-next, .submit-btn {
    background: var(--steel);
    color: var(--prussian);
}

.btn-next:hover, .submit-btn:hover {
    background: var(--steel-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 122, 158, 0.35);
}

.btn-prev {
    background: transparent;
    color: var(--mid-gray);
    border: 1.5px solid #d1d5db;
    flex: 0 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn-prev:hover {
    border-color: var(--cerulean);
    color: var(--cerulean);
}

.form-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--mid-gray);
    margin-top: 1rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.form-success.active {
    display: block;
    animation: fadeUp 0.6s ease;
}

.form-success .check-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(61, 122, 158, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.form-success .check-circle svg {
    width: 28px;
    height: 28px;
    stroke: var(--steel);
    fill: none;
    stroke-width: 2;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-success p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* ============================================
   WHITE SECTION — SERVICES
   ============================================ */
.services {
    padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cerulean);
    margin-bottom: 0.8rem;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--steel);
}

.section-tag::before { right: calc(100% + 14px); animation: drawLineLeft 0.6s 0.3s both; }
.section-tag::after { left: calc(100% + 14px); animation: drawLineLeft 0.6s 0.5s both; }

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--prussian);
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-header h2 em {
    font-style: normal;
    color: var(--cerulean);
}

.section-header p {
    max-width: 560px;
    margin: 1rem auto 0;
    color: var(--mid-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.service-card {
    padding: 2.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: var(--white);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--cerulean), var(--steel));
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    border-color: rgba(0, 105, 146, 0.2);
    transform: translateY(-10px) rotate(-0.5deg);
    box-shadow: 0 25px 70px rgba(0, 29, 74, 0.12), 0 0 0 1px rgba(0, 105, 146, 0.08);
}

.service-card:hover::before { width: 100%; }

.service-img {
    width: 100%;
    height: 260px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.3rem;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
}

.service-card:hover .service-img img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 105, 146, 0.08), rgba(0, 105, 146, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--cerulean);
    fill: none;
    stroke-width: 1.5;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--prussian);
    margin-bottom: 0.7rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--mid-gray);
    line-height: 1.7;
}

/* ============================================
   DARK SECTION — STATS
   ============================================ */
.trust-section {
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--prussian);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 105, 146, 0.15), transparent 70%);
    pointer-events: none;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 800px;
    margin: 0 auto;
}

.trust-stat {
    padding: 1.8rem 1.5rem;
    text-align: center;
    position: relative;
}

.trust-stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.trust-stat:last-child::after { display: none; }

.trust-stat .number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--steel);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: text-shadow 0.4s;
}

.trust-stat:hover .number {
    animation: countGlow 1.5s ease;
}

.trust-stat .label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   GALLERY — LUXURY PROPERTIES
   ============================================ */
.gallery {
    padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1140px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.gallery-item:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 29, 74, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(0, 29, 74, 0.85), transparent);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.2rem;
}

.gallery-caption p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: clamp(5rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--prussian);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cta-section h2 em { font-style: normal; color: var(--cerulean); }

.cta-section p {
    color: var(--mid-gray);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.2rem;
    background: var(--steel);
    color: var(--prussian);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn-primary:hover {
    background: var(--steel-light);
    color: var(--prussian);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(61, 122, 158, 0.4);
}

.cta-btn-primary {
    animation: glowPulse 3s ease-in-out infinite;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.2rem;
    background: transparent;
    color: var(--prussian);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 2px solid var(--prussian);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn-secondary:hover {
    background: var(--prussian);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
@keyframes footerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.06; }
    50% { transform: translateY(-20px) scale(1.3); opacity: 0.12; }
}

footer {
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) 1.5rem;
    background: linear-gradient(135deg, #001D4A 0%, #0a2a5c 30%, #001D4A 60%, #072042 100%);
    background-size: 300% 300%;
    animation: footerGradient 12s ease infinite;
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    overflow: hidden;
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

footer::before {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(0, 105, 146, 0.08), transparent 70%);
    animation: floatDot 8s ease-in-out infinite;
}

footer::after {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 10%;
    background: radial-gradient(circle, rgba(61, 122, 158, 0.05), transparent 70%);
    animation: floatDot 10s ease-in-out 2s infinite;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1140px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.footer-brand .footer-logo img {
    width: 160px;
    height: auto;
}

.footer-brand p {
    font-size: 0.78rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.45);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.contact-line:hover { color: var(--steel); }

.contact-line svg {
    width: 14px;
    height: 14px;
    stroke: var(--steel);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 24px;
    height: 2px;
    background: var(--steel);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-links-list a {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.footer-links-list a:hover {
    color: var(--steel);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    header { height: 100px; }

    .logo img {
        width: 180px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 0;
    }

    .hero-content {
        padding: 70px 1.5rem 1.5rem !important;
        text-align: center;
    }

    .hero-content > picture img {
        width: 220px !important;
        margin: 0 auto 1rem;
    }

    .hero-badge {
        margin-bottom: 1rem !important;
    }

    .hero h1 {
        margin-bottom: 1rem !important;
    }

    /* Sticky bottom CTA on mobile */
    .mobile-sticky-cta {
        display: flex !important;
    }

    /* Push chat widget above the sticky bar */
    .chat-widget {
        bottom: 4.5rem !important;
    }

    .hero-sub { margin-left: auto; margin-right: auto; }
    .trust-row { justify-content: center; }

    .form-wrapper { padding: 0 clamp(1.5rem, 4vw, 3rem) 4rem; }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-item:first-child { grid-row: span 1; aspect-ratio: 4/3; }

    .trust-bar { grid-template-columns: repeat(3, 1fr); }

    .footer-top { grid-template-columns: 1fr 1fr; }

    .footer-brand { grid-column: span 2; }
    .footer-col:last-child { grid-column: span 2; }

    nav { display: none; }
    .mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
    html { font-size: 16px; }
    body { font-size: 1.05rem; line-height: 1.8; }

    header { height: 80px; }

    .logo img {
        width: 140px;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero-sub { font-size: 1.1rem; }
    .section-header p { font-size: 1.05rem; }
    .service-card p { font-size: 1rem; }
    .cta-section p { font-size: 1.05rem; }

    /* Form mobile sizing */
    .form-title { font-size: 1.6rem; }
    .form-subtitle { font-size: 0.95rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 1rem; padding: 1rem; }
    .form-group label { font-size: 0.95rem; }
    .btn-next, .btn-prev, .submit-btn { font-size: 0.88rem; padding: 1rem; }
    .form-note { font-size: 0.82rem; }

    .form-row { grid-template-columns: 1fr; }

    .trust-bar { grid-template-columns: 1fr 1fr 1fr; }
    .trust-stat .number { font-size: 2.2rem; }
    .trust-stat .label { font-size: 0.82rem; }

    footer { padding: 2rem 1.5rem 1rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; text-align: center; }
    .footer-brand { grid-column: span 2; text-align: center; }
    .footer-brand p { margin-bottom: 0.5rem; font-size: 0.9rem; }
    .footer-col h4 { margin-bottom: 0.5rem; padding-bottom: 0.3rem; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-links-list { align-items: center; gap: 0.25rem; }
    .footer-links-list a { font-size: 0.85rem; }
    .contact-line { justify-content: center; margin-bottom: 0.3rem; font-size: 0.9rem; }

    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-btn-primary, .cta-btn-secondary { width: 100%; justify-content: center; }
}
    
/* ============================================
   TUBELIGHT NAVBAR
   ============================================ */
.tube-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding-top: 1rem;
    pointer-events: none;
    transition: opacity 0.4s;
}

.tube-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 29, 74, 0.08);
    border: 1px solid rgba(0, 29, 74, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.3rem;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    pointer-events: all;
}

.tube-nav.scrolled .tube-nav-inner {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 29, 74, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tube-nav-link {
    position: relative;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.3s, background 0.3s;
}

.tube-nav.scrolled .tube-nav-link {
    color: #001D4A !important;
}

.tube-nav-link:hover {
    color: #3D7A9E !important;
}

.tube-nav-link.active {
    color: #3D7A9E !important;
    background: rgba(61, 122, 158, 0.08);
}

.tube-nav-link.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: #3D7A9E;
    border-radius: 3px 3px 0 0;
}

.tube-nav-link.active::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 16px;
    background: radial-gradient(ellipse, rgba(61, 122, 158, 0.25), transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}

.tube-nav-cta {
    padding: 0.5rem 1.2rem !important;
    background: linear-gradient(135deg, #3D7A9E, #2E6385) !important;
    color: #001D4A !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(61, 122, 158, 0.3);
    transition: all 0.3s !important;
}

.tube-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(61, 122, 158, 0.4) !important;
    color: #001D4A !important;
}

.tube-nav-logo {
    display: flex;
    align-items: center;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    text-decoration: none !important;
}

.tube-nav-logo img {
    height: 30px;
    width: auto;
}

.tube-nav-logo .logo-scrolled { display: none; }
.tube-nav.scrolled .tube-nav-logo .logo-default { display: none; }
.tube-nav.scrolled .tube-nav-logo .logo-scrolled { display: block; }

.tube-nav-link .nav-icon { display: none; }
.tube-nav-link .nav-label { display: inline; }

/* Mobile top bar — hidden, replaced by mobile-header */
.mobile-top-bar { display: none !important; }

/* Mobile fixed header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(0, 29, 74, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0 20px;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(61, 122, 158, 0.2);
}
.mobile-header .mh-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.mobile-header .mh-brand img {
    height: 28px;
    width: auto;
}
.mobile-header .mh-hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-header .mh-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
}
.mobile-header .mh-hamburger span::before,
.mobile-header .mh-hamburger span::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    left: 0;
}
.mobile-header .mh-hamburger span::before { top: -7px; }
.mobile-header .mh-hamburger span::after { top: 7px; }

/* Mobile slide-out menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1003;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; }
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #001D4A;
    z-index: 1004;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu .mm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
}
.mobile-menu a:hover { color: var(--steel); }
.mobile-menu .mm-cta {
    display: block;
    margin-top: 24px;
    padding: 14px 24px;
    background: var(--steel);
    color: #001D4A;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    border-bottom: none;
}
.mobile-menu .mm-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--steel);
    font-weight: 700;
    border-bottom: none;
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .mobile-menu-overlay { display: block; pointer-events: none; }
    .mobile-menu-overlay.open { pointer-events: all; }

    .tube-nav {
        display: none !important;
    }

    .tube-nav-inner {
        gap: 0.15rem;
        padding: 0.25rem;
    }

    .tube-nav-link .nav-label { display: none; }
    .tube-nav-link .nav-icon { display: flex; }
    .tube-nav-link { padding: 0.55rem 0.85rem; }

    .tube-nav-logo { display: none; }

    .tube-nav-cta .nav-label { display: none; }
    .tube-nav-cta .nav-icon { display: flex; }

    .back-to-top { bottom: 5rem !important; }
}

/* ============================================
   EXPANDABLE CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    font-family: 'Manrope', system-ui, sans-serif;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #006992, #004f6e);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 105, 146, 0.4), 0 0 0 0 rgba(0, 105, 146, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.chat-toggle::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(0, 105, 146, 0.2);
    animation: chatPulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
}

.chat-widget.open .chat-toggle::after { animation: none; opacity: 0; }

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 105, 146, 0.5);
}

.chat-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
}

.chat-toggle .icon-close { display: none; }
.chat-widget.open .chat-toggle .icon-chat { display: none; }
.chat-widget.open .chat-toggle .icon-close { display: block; }

.chat-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 370px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.open .chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-panel-header {
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #001D4A, #0a2a5c);
    color: #fff;
    text-align: center;
    position: relative;
}
.chat-panel-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.chat-panel-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.chat-panel-header h3 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0 0 0.2rem;
}

.chat-panel-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.chat-panel-body {
    flex: 1;
    padding: 1rem 1rem 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    background: #f9fafb;
}

.chat-msg {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    animation: chatMsgIn 0.3s ease-out;
}

@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.sent { flex-direction: row-reverse; }

.chat-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006992, #004f6e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
    color: #fff;
    font-weight: 700;
}

.chat-msg.sent .chat-msg-avatar {
    background: linear-gradient(135deg, #3D7A9E, #2E6385);
    color: #001D4A;
}

.chat-msg-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 75%;
}

.chat-msg:not(.sent) .chat-msg-bubble {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-msg.sent .chat-msg-bubble {
    background: linear-gradient(135deg, #006992, #005577);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-loading {
    display: flex;
    gap: 4px;
    padding: 0.6rem 0.85rem;
}

.chat-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: chatDot 1.2s ease-in-out infinite;
}

.chat-loading span:nth-child(2) { animation-delay: 0.15s; }
.chat-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-panel-footer {
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.chat-input-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    transition: border-color 0.2s;
}

.chat-input-wrap:focus-within {
    border-color: #006992;
}

.chat-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-family: inherit;
    color: #374151;
    outline: none;
}

.chat-input-wrap input::placeholder { color: #9ca3af; }

.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #006992, #005577);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #007ba8, #006992);
    transform: scale(1.05);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-quick-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}


.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-left: 36px;
}

.chat-opt-btn {
    background: #fff;
    color: #001D4A;
    border: 1.5px solid #006992;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.chat-opt-btn:hover {
    background: #006992;
    color: #fff;
}

.chat-opt-btn.amber {
    border-color: #3D7A9E;
    background: #3D7A9E;
    color: #001D4A;
}

.chat-opt-btn.amber:hover {
    background: #2E6385;
}

.chat-quick-btn {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.chat-quick-btn:hover {
    border-color: #006992;
    color: #006992;
    background: rgba(0, 105, 146, 0.04);
}

@media (max-width: 480px) {
    .chat-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-height: 55vh;
        border-radius: 16px 16px 0 0;
    }

    .chat-panel-body { max-height: calc(55vh - 160px); }

    .chat-widget.open .chat-toggle {
        position: fixed;
        top: 1rem;
        right: 1rem;
        bottom: auto;
        z-index: 1001;
    }
}


/* ============================================
   CHAT WIDGET ENHANCEMENTS
   ============================================ */
.chat-toggle {
    animation: chatGlow 3s ease-in-out infinite;
}

@keyframes chatGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 105, 146, 0.4), 0 0 0 0 rgba(0, 105, 146, 0); }
    50% { box-shadow: 0 4px 20px rgba(0, 105, 146, 0.4), 0 0 20px 8px rgba(61, 122, 158, 0.3); }
}

.chat-widget.open .chat-toggle {
    animation: none;
}

.chat-prompt {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #fff;
    color: #001D4A;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 12px 12px 4px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    animation: promptFade 12s ease-in-out infinite;
    font-family: 'Manrope', system-ui, sans-serif;
}

.chat-prompt::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 16px;
    width: 12px;
    height: 6px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.chat-widget.open .chat-prompt {
    display: none;
}

@keyframes promptFade {
    0%, 8% { opacity: 0; transform: translateY(4px); }
    12%, 22% { opacity: 1; transform: translateY(0); }
    26%, 100% { opacity: 0; transform: translateY(4px); }
}

@media (max-width: 480px) {
    .chat-prompt { display: none; }
}


/* ============================================
   EMAIL SUBSCRIBER
   ============================================ */
.footer-cta {
    background: linear-gradient(135deg, #3D7A9E 0%, #2E6385 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.footer-cta h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.8rem;
    color: #001D4A;
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.footer-cta-inner > p {
    font-size: 0.95rem;
    color: rgba(0, 29, 74, 0.7);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.subscribe-form {
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-input-wrap {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 29, 74, 0.2);
    border: 2px solid #001D4A;
}

.subscribe-input-wrap input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.4rem;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #001D4A;
    outline: none;
    min-width: 0;
}

.subscribe-input-wrap input[type="email"]::placeholder {
    color: #94a3b8;
}

.subscribe-btn {
    background: #001D4A;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.9rem 1.8rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.2s;
    font-family: inherit;
}

.subscribe-btn:hover {
    background: #002a6b;
}

.subscribe-note {
    font-size: 0.72rem;
    color: rgba(0, 29, 74, 0.45) !important;
    margin: 0.6rem 0 0 !important;
    text-align: center;
}

.subscribe-success {
    color: #001D4A !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.8rem !important;
}

/* Inline blog subscriber CTA */
.inline-subscribe {
    background: linear-gradient(135deg, #3D7A9E 0%, #5A9BBD 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inline-subscribe::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.inline-subscribe h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.3rem;
    color: #001D4A;
    margin: 0 0 0.35rem;
    font-weight: 800;
}

.inline-subscribe > p {
    font-size: 0.85rem;
    color: rgba(0, 29, 74, 0.7);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.inline-subscribe .subscribe-form {
    max-width: 400px;
}

.inline-subscribe .subscribe-input-wrap {
    border-width: 1.5px;
}

.inline-subscribe .subscribe-input-wrap input[type="email"] {
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
}

.inline-subscribe .subscribe-btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.85rem;
}

.inline-subscribe .subscribe-note {
    color: rgba(0, 29, 74, 0.4) !important;
    font-size: 0.68rem;
}

@media (max-width: 480px) {
    .inline-subscribe { padding: 1.5rem 1.25rem; }
    .inline-subscribe h3 { font-size: 1.15rem; }
    .footer-cta h3 { font-size: 1.4rem; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3D7A9E, #2E6385);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(61, 122, 158, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(61, 122, 158, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #001D4A;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
}

