:root {
    --red-1: #00E1D9;
    --red-2: #00b8b1;
    --red-3: #008e89;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --text-gray: #eeeeee;

    /* Brand Theme Colors Override (Replaces Red with Cyan/Dark Grey) */
    --base-1: #00E1D9 !important;
    --base-1-rgb: 0, 225, 217 !important;
    --base-2: #00b8b1 !important;
    --base-3: #008e89 !important;
    --base-11: #3A4750 !important;
    --base-12: #2b353c !important;
    --base-13: #00E1D9 !important;
    --base-15: #00E1D9 !important;
    --base-15-rgb: 0, 225, 217 !important;
    
    --primary-clr: #00E1D9 !important;
    --primary-rgb: 0, 225, 217 !important;
    
    --border: #00E1D9 !important;
    --border-dark: #008e89 !important;
    
    --title-clr: #3A4750 !important;
    --dark-clr: #3A4750 !important;
    --dark-rgb: 58, 71, 80 !important;
    
    --radial-bg: radial-gradient(50% 50% at 50% 50%, rgba(0, 225, 217, 0.2) 0%, rgba(217, 217, 217, 0) 100%) !important;
}

/* Header & General Buttons styling */
.btn-outline {
    border: 2px solid #3A4750 !important;
    color: #3A4750 !important;
    background: transparent !important;
}
.btn-outline:hover {
    background: #3A4750 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 71, 80, 0.2);
}
.btn-primary, .btn-base {
    background: linear-gradient(135deg, #00E1D9, #00b8b1) !important;
    color: white !important;
    border: 2px solid transparent !important;
}
.btn-primary:hover, .btn-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 225, 217, 0.3);
    filter: brightness(1.1);
}

/* Compensate for fixed header height */
body {
    padding-top: 82px;
}
@media (min-width: 992px) {
    body {
        padding-top: 94px;
    }
}

/* Override old main.css header rules */
.header-wrapper {
    padding: 0 !important;
}

.top-bar {
    background-color: #00E1D9 !important;
    padding: 0.5rem 0.75rem !important;
    min-height: 40px;
}

.mobile-top-bar-text {
    flex: 1;
    justify-content: center;
    text-align: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;
}

.topbar-typing {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    direction: rtl;
    max-width: 100%;
}

.topbar-typing span {
    display: inline-block;
    line-height: 1.3;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    border-left: 2px solid #fff;
    padding-left: 3px;
    width: 0;
    animation: topbarTyping 6s steps(28, end) infinite, topbarBlinkCaret 0.8s step-end infinite;
}

.topbar-typing i.ph-fill.ph-star {
    color: #ffd700;
    margin-right: 6px;
    flex-shrink: 0;
    animation: starPulse 1.5s ease-in-out infinite;
}

@keyframes topbarTyping {
    0%, 100% { width: 0; }
    45%, 55% { width: 28ch; }
}

@keyframes topbarBlinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 575px) {
    .topbar-typing span {
        font-size: 11px;
    }
    .social-icons a {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .top-bar {
        padding: 0.5rem 1rem !important;
    }
}

/* Override bootstrap .container top:30px that breaks header */
header .container {
    position: relative;
    top: 0 !important;
}

/* Header is always fixed */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.active {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Fixed explicit header heights */
.top-bar {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
}

.header-wrapper {
    height: 64px;
    min-height: 64px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .header-wrapper {
        height: 80px;
        min-height: 80px;
    }
}

/* Minimized header when scrolled */
header.active .top-bar {
    display: none;
}

header.active .header-wrapper {
    height: 56px;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
}

header:not(.active) .top-bar {
    display: flex;
}

header.active .logo img {
    max-height: 44px;
}

/* Header nav link responsive font sizes */
#header-menu a {
    font-size: 12px !important;
    position: relative;
}

/* Menu underline hover animation */
#header-menu li:not(.mobile-nav-buttons) a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--red-1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

#header-menu li:not(.mobile-nav-buttons) a:hover::after,
#header-menu li:not(.mobile-nav-buttons) a.active::after {
    width: 100%;
}

@media (min-width: 992px) {
    #header-menu a {
        font-size: 13px !important;
    }
}

@media (min-width: 1200px) {
    #header-menu a {
        font-size: 15px !important;
    }
}

/* Logo hover animation: move to right */
.logo a {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.logo img {
    transition: transform 0.3s ease;
    width: auto;
    height: auto;
    max-width: 260px;
    max-height: 58px;
}

.logo a:hover img {
    transform: translateX(12px);
}

@media (min-width: 992px) {
    .logo img {
        max-width: 320px;
        max-height: 76px;
    }
}

@media (max-width: 575px) {
    .logo img {
        max-width: 220px;
        max-height: 52px;
    }
    header.active .logo img {
        max-width: 200px;
        max-height: 48px;
    }

    .top-bar {
        padding: 0.4rem 0.5rem !important;
        font-size: 11px;
    }

    .top-bar a {
        margin-left: 0.35rem;
        margin-right: 0.35rem;
    }

    .top-bar i {
        font-size: 12px;
    }
}

/* Mobile dropdown menu below header */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #ccfffe;
    z-index: 45;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#mobile-menu-panel {
    width: 100%;
    max-width: 100%;
}

#mobile-menu-backdrop {
    display: none;
}

#mobile-menu-close {
    display: none;
}

#mobile-menu nav a {
    display: block;
    padding: 14px 20px;
    color: #3A4750;
    font-weight: 600;
    border-bottom: 1px solid #ccfffe;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#mobile-menu nav a:hover,
#mobile-menu nav a.active {
    background: #e6fffe;
    color: #00E1D9;
}

#mobile-menu .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
}

/* Hamburger simple animation */
#mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

#mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

.touch-manipulation {
    touch-action: manipulation;
}

#mobile-menu-toggle {
    position: relative;
    z-index: 60;
}

/* Mobile scrolling contact bar (marquee) */
@media (max-width: 991px) {
    .top-bar {
        overflow: hidden;
    }

    .top-bar .top-bar-contacts {
        width: auto;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 110px);
        overflow: hidden;
        position: relative;
        margin-left: auto;
    }

    .top-bar .contact-scroll {
        display: flex;
        animation: marquee 12s linear infinite;
        white-space: nowrap;
        width: max-content;
    }

    .top-bar .contact-scroll a {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
        justify-content: flex-end;
    }

    .top-bar .contact-scroll a svg,
    .top-bar .contact-scroll a i {
        flex-shrink: 0;
    }

    .top-bar .social-icons a svg {
        display: block;
    }

    .mobile-top-bar-text {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        order: 0;
        margin-top: 0;
    }

    @keyframes marquee {
        0% { transform: translateX(0); }
        30% { transform: translateX(0); }
        33% { transform: translateX(-100%); }
        63% { transform: translateX(-100%); }
        66% { transform: translateX(-200%); }
        96% { transform: translateX(-200%); }
        100% { transform: translateX(0); }
    }
}

@media (min-width: 992px) {
    .top-bar .top-bar-contacts {
        width: auto;
        justify-content: flex-end;
        flex: initial;
        margin-left: auto;
        max-width: none;
        order: 2;
    }

    .top-bar .social-icons {
        order: 2;
    }

    .top-bar .contact-scroll {
        animation: none !important;
        display: flex;
        gap: 1.5rem;
    }

    .top-bar .contact-scroll a {
        flex: 0 0 auto;
        padding: 0;
        justify-content: flex-start;
    }
}

/* Phosphor Icons base */
i.ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
    font-style: normal;
}

/* Icon sizing helpers */
i.ph.text-sm { font-size: 14px; }
i.ph.text-base { font-size: 16px; }
i.ph.text-lg { font-size: 18px; }
i.ph.text-xl { font-size: 24px; }
i.ph.text-2xl { font-size: 28px; }
i.ph.text-3xl { font-size: 32px; }

/* Top bar icons */
.top-bar i.ph,
.top-bar a i.ph {
    color: currentColor;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Header buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
}

.btn-modern i.ph {
    color: currentColor;
}

.header-action-btn {
    min-width: 170px;
    justify-content: center;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.header-action-btn i.ph {
    font-size: 18px;
}

header.active .header-action-btn {
    transform: scale(0.95);
}

@media (max-width: 1199px) {
    .header-action-btn {
        min-width: 150px;
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 13px !important;
    }
}

.footer-bottom {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    background: #00b8b1 !important;
}

.footer-wrapper {
    display: grid !important;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 40px;
    align-items: start !important;
    justify-content: initial !important;
}

.footer-widget {
    width: auto !important;
    max-width: none !important;
    color: #fff;
    margin-bottom: 0 !important;
}

.footer-logo {
    max-width: 180px !important;
    margin-bottom: 18px !important;
    display: inline-block;
}

.footer-logo img { width: 100%; height: auto; display: block; }

.footer-tagline {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.social-icon li { list-style: none; }

.social-icon a.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon a.social-btn:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.social-icon a.social-btn:hover i.ph { color: var(--red-1); }
.social-icon a.social-btn i.ph { color: #fff; font-size: 22px; }

.footer-widget .subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget .subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.widget-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-links li {
    margin-bottom: 10px;
}

.widget-links a,
.footer-widget a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.footer-widget a i.ph {
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.widget-links a:hover,
.footer-widget a:hover {
    color: #fff;
    transform: translateX(4px);
}

.widget-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255,255,255,0.6);
    transition: width 0.25s ease;
}

.widget-links a:hover::after { width: 100%; }

.footer-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    margin-bottom: 18px;
}

.footer-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-footer,
.btn-footer-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-cta-btns .btn-footer {
    background: #fff !important;
    color: #00b8b1 !important;
    border: 2px solid transparent !important;
}

.footer-cta-btns .btn-footer:hover {
    background: rgba(255,255,255,0.92) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #00b8b1 !important;
}

.footer-cta-btns .btn-footer-outline {
    border: 2px solid rgba(255,255,255,0.6) !important;
    color: #fff !important;
    background: transparent !important;
}

.footer-cta-btns .btn-footer-outline:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.footer-cta-btns .btn-footer i.ph,
.footer-cta-btns .btn-footer-outline i.ph { font-size: 16px; }

.copyright {
    margin-top: 50px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.copyright p { margin: 0; }

@media (max-width: 991px) {
    .footer-wrapper { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { padding-top: 60px !important; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .footer-wrapper { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { padding-top: 50px !important; padding-bottom: 30px !important; }
    .copyright { margin-top: 35px !important; }
    .btn-footer, .btn-footer-outline { width: 100%; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #00E1D9;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 59, 59, 0.5);
}

.whatsapp-float i.ph { color: #fff; }


