/* ==========================================================================
   247Marketing Stylesheet - Reset & Design System
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
:root {
    /* Color Palette */
    --color-primary: #08564f;
    --color-primary-dark: #053b36;
    --color-primary-light: #e6efee;
    --color-accent: #0081fb;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-white: #ffffff;
    --color-footer-bg: #f5f5f5;
    --color-footer-bottom-bg: #e9e9e9;
    --color-border: #e0e0e0;

    /* Fonts */
    --font-family-body: "Open Sans", sans-serif;
    --font-family-headers: "Roboto", sans-serif;

    /* Layout */
    --header-height: 66px;
    --max-width-container: 100%;
    --transition-speed: 0.3s;
    --transition-bezier: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) var(--transition-bezier);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-headers);
    font-size: 15px;
    font-weight: 500;
    padding: 0 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-bezier);
    text-align: center;
    height: 41px;
    line-height: 1;
}

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    transform: scale(0.96);
}

.btn-solid {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-solid:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: scale(0.96);
}

/* ==========================================================================
   Header Section Styles
   ========================================================================== */

.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

.header-container {
    width: 100%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 42px; /* Replicating actual size */
    width: auto;
}

.nav-menu {
    margin-left: 60px;
    margin-right: auto;
}

/* Desktop Navigation List */
.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-family-body);
    font-size: 16px;
    font-weight: 500;
    color: #232425;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Dropdown Menu Styles (Desktop) */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #232425;
    border-bottom: 1.5px solid #232425;
    transform: translateY(-2px) rotate(45deg);
    margin-left: 6px;
    transition: border-color var(--transition-speed) ease;
}

.dropdown:hover .dropdown-arrow {
    border-color: var(--color-primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-white);
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity var(--transition-speed) ease,
        transform var(--transition-speed) ease,
        visibility var(--transition-speed) ease;
    padding: 10px 0;
    z-index: 1010;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text-main);
    transition:
        background-color var(--transition-speed) ease,
        color var(--transition-speed) ease;
}

.dropdown-item:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hide Mobile Elements by Default */
.mobile-menu-checkbox,
.hamburger-btn,
.menu-backdrop,
.mobile-menu-header,
.menu-close-btn,
.mobile-actions {
    display: none;
}

/* ==========================================================================
   Main scrollable dummy area (just to show off header/footer scrolling)
   ========================================================================== */

.main-content {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fbfb 0%, #edf4f3 100%);
}

.hero-placeholder {
    max-width: 800px;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-family-headers);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.hero-meta-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-family-headers);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Footer Section Styles
   ========================================================================== */

.main-footer {
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 4fr 3fr 3fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.column-heading {
    font-family: "Open Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #00c163;
    margin-bottom: 20px;
    position: relative;
}

/* Column 1: Brand Info & Socials */
.footer-logo {
    height: 42px;
    width: auto;
    margin-bottom: 25px;
}

.brand-description {
    color: #54595f;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-primary);
    background-color: transparent;
    border: 1px solid var(--color-primary);
    transition: all var(--transition-speed) var(--transition-bezier);
}

.social-svg {
    width: 16px;
    height: 16px;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 86, 79, 0.15);
}

/* Column 2: Useful Links */
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links-list li {
    padding: 6px 0;
}

.footer-link {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: all var(--transition-speed) ease;
    width: fit-content;
    font-family: "Open Sans", Sans-serif;
}

.footer-link:hover {
    color: var(--color-primary);
}

/* Column 3: Trust Badges & App Download */
.badge-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trust-badge {
    object-fit: contain;
}

.trust-badge.footer-meta-badge {
    width: 129px;
    height: 54px;
}

.trust-badge.gdpr-badge {
    width: 80px;
    height: 80px;
}

.download-heading {
    margin-bottom: 15px;
}

.app-download-container {
    display: flex;
}

.playstore-link {
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}

.playstore-link:hover {
    transform: translateY(-2px);
}

.playstore-img {
    width: 200px;
    height: auto;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: var(--color-footer-bottom-bg);
    padding: 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.footer-bottom-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright-text {
    font-size: 14px;
    font-family: var(--font-family-body);
    color: #000000;
}

.webtual-link {
    color: var(--color-primary);
    font-weight: 600;
}

.webtual-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Media Queries (Responsive Breakpoints)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Header Mobile Toggles */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger-line {
        width: 100%;
        height: 2px;
        background-color: var(--color-text-main);
        transition: all var(--transition-speed) ease;
        transform-origin: left center;
    }

    /* Hide Desktop Actions */
    .header-actions {
        display: none;
    }

    /* Off-canvas Navigation Drawer */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -350px; /* Hidden offscreen left (matching width) */
        width: 350px; /* Refined to exactly 350px matching live site */
        height: 100vh;
        background-color: #f7f7f7; /* Refined to #f7f7f7 matching live site */
        padding: 20px 24px;
        box-shadow: none; /* Transparent shadow matching live site */
        z-index: 1005;
        transition: transform var(--transition-speed) var(--transition-bezier);
        overflow-y: auto;
        margin: 0; /* Reset desktop margin */
    }

    /* Mobile menu header & logo */
    .mobile-menu-header {
        display: block;
        width: 100%;
        margin-bottom: 30px;
        overflow: hidden; /* Clear floats */
    }

    .mobile-logo-link {
        float: left;
        display: inline-block;
    }

    .mobile-header-logo {
        height: 36px;
        width: auto;
    }

    .drawer-close-btn {
        display: block;
        float: right;
        width: 45px;
        height: 33px;
        line-height: 15px; /* Center text X */
        text-align: center;
        color: #ff5e13; /* Orange */
        border: 1px solid rgba(0, 0, 0, 0.5);
        background-color: transparent;
        border-radius: 3px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 700;
        padding: 8px 0;
        box-sizing: border-box;
        transition:
            background-color var(--transition-speed) ease,
            color var(--transition-speed) ease;
    }

    .drawer-close-btn:hover {
        background-color: #ff5e13;
        color: #fff;
    }

    /* Menu items vertical stack */
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        margin: 0 10px; /* Matching live site list item margins */
    }

    .nav-item {
        width: 100%;
        border-bottom: none; /* Removed borders matching live site */
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px; /* Refined padding matching live site */
        font-size: 14px; /* Refined font size matching live site */
        color: #000000; /* Black color matching live site */
        width: 100%;
        border-bottom: 2px solid rgba(255, 255, 255, 0); /* Reserved space for hover border */
    }

    .nav-link:hover {
        border-bottom-color: var(--color-primary);
        color: var(--color-primary);
    }

    /* Dropdown indicator custom pill layout for mobile */
    .dropdown-arrow {
        display: block;
        float: right;
        width: 42px;
        height: 20px;
        border: 1px solid #273171; /* Dark blue border */
        border-radius: 30px;
        position: relative;
        margin-right: 6px;
        background-color: transparent;
        transform: none; /* Reset desktop transform */
        transition:
            border-color var(--transition-speed) ease,
            background-color var(--transition-speed) ease;
    }

    .dropdown-arrow::after {
        content: "";
        position: absolute;
        top: 40%;
        left: 50%;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid #273171;
        border-bottom: 1.5px solid #273171;
        transform: translate(-50%, -50%) rotate(45deg);
        transition: border-color var(--transition-speed) ease;
    }

    .dropdown:hover .dropdown-arrow {
        background-color: rgba(39, 49, 113, 0.05);
    }

    /* Mobile Dropdown Collapsible Menu (using sibling selectors / CSS toggle hover) */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 15px 15px;
        background: transparent;
        transform: none;
    }

    /* On mobile, open dropdown on focus/hover or make it fully visible */
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 0;
    }

    /* Mobile action CTAs inside drawer */
    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-actions .btn {
        width: 100%;
        padding: 12px;
    }

    /* Pure CSS Checkbox hack logic */
    .mobile-menu-checkbox:checked ~ .nav-menu {
        transform: translateX(350px); /* Slides the drawer in */
    }

    /* .mobile-menu-checkbox:checked ~ .hamburger-btn {
    display: none;
  } */

    /* Menu Backdrop overlay */
    .menu-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        z-index: 1001;
        transition: opacity var(--transition-speed) ease;
    }

    .mobile-menu-checkbox:checked ~ .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* Footer styling overrides */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .footer-container {
        padding: 40px 20px;
    }

    .badge-container {
        gap: 10px;
    }

    .trust-badge.footer-meta-badge {
        width: 100px;
        height: auto;
    }

    .trust-badge.gdpr-badge {
        width: 65px;
        height: auto;
    }
}
