/* master.css - Core styles for SubmitINme Master Page */

/* ===== CSS Variables ===== */
:root {
    --bg-base: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-alt: #f0f2f5;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --accent-glow: rgba(37, 99, 235, 0.2);
    --teal: #0d9488;
    --teal-soft: rgba(13, 148, 136, 0.1);
    --purple: #7c3aed;
    --purple-soft: rgba(124, 58, 237, 0.1);
    --border: rgba(31, 41, 55, 0.1);
    --border-light: rgba(31, 41, 55, 0.06);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 300ms;
}

/* ===== Reset & Base ===== */
*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--text-inverse);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.small, small {
    font-size: 0.875em;
}

/* ===== Button Styles ===== */
.btn {
    border-radius: 2rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

    .btn-primary:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    }

/* ===== Header & Navigation ===== */
.modern-header {
    font-family: var(--font-body);
    box-shadow: 0 4px 20px -2px rgba(0, 86, 179, 0.15);
    background: #fff;
}

    .modern-header.sticky-top {
        z-index: 1030;
    }

.top-bar {
    background: linear-gradient(135deg, #0056b3 0, #004494 50%, #0056b3 100%);
    color: #fff;
    font-size: 0.875rem;
}

    .top-bar .contact-link {
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .top-bar .contact-link:hover {
            color: #fff;
            transform: translateY(-1px);
        }

        .top-bar .contact-link i {
            margin-right: 0.5rem;
        }

    .top-bar .action-link {
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

        .top-bar .action-link i {
            margin-right: 0.375rem;
        }

        .top-bar .action-link:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }

    .top-bar .cta-button {
        background: linear-gradient(135deg, #fbbf24 0, #f59e0b 100%);
        color: #92400e;
        font-weight: 600;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }

        .top-bar .cta-button:hover {
            background: linear-gradient(135deg, #f59e0b 0, #d97706 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
        }

.main-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.modern-header .navbar.main-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    padding: 1rem 0;
    background: #fff;
    backdrop-filter: none;
    box-shadow: none;
}

.logo-link:hover {
    transform: scale(1.05);
    display: inline-block;
}

.logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #0056b3 !important;
    }

.navbar-nav .dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 86, 179, 0.1);
    padding: 1rem;
    margin-top: 0.25rem;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 0.75rem;
    color: #374151;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

    .navbar-nav .dropdown-item:hover {
        background: rgba(0, 86, 179, 0.05);
        color: #0056b3;
        transform: translateX(4px);
    }

/* Desktop dropdown submenu */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu .dropdown-menu {
            top: 0;
            left: 100%;
            margin-left: 0.1rem;
            display: none;
        }

        .dropdown-submenu:hover .dropdown-menu {
            display: block;
        }
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
    .navbar-collapse {
        display: none;
    }

        .navbar-collapse.show {
            display: block;
        }

        .navbar-collapse .dropdown-menu {
            position: static !important;
            float: none;
            width: 100%;
        }

    .dropdown-submenu .dropdown-menu {
        display: none;
        position: static !important;
        margin-left: 15px;
        border: none;
        box-shadow: none;
    }

        .dropdown-submenu .dropdown-menu.show {
            display: block;
        }

    .dropdown-menu {
        display: none;
        position: static !important;
        float: none;
        width: 80%;
    }

        .dropdown-menu.show {
            display: block;
        }

    .dropdown-item {
        padding: 10px 15px;
    }
}

/* ===== Footer Styles ===== */
footer.site-footer {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #343a40 0, #0056b3 50%, #343a40 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    footer.site-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.05) 2px, transparent 0), radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.05) 2px, transparent 0);
        background-size: 50px 50px;
        opacity: 0.5;
        pointer-events: none;
    }

    footer.site-footer h6 {
        font-family: var(--font-display);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #f8f9fa;
        margin-bottom: 1rem;
    }

    footer.site-footer a {
        transition: color 0.3s ease, transform 0.3s ease;
        color: #adb5bd;
        text-decoration: none;
    }

        footer.site-footer a:hover {
            color: #fbbf24;
            transform: translateY(-1px);
        }

    footer.site-footer .bi {
        transition: transform 0.3s ease;
    }

    footer.site-footer a:hover .bi {
        transform: scale(1.1);
    }

    footer.site-footer .award-item {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem;
        padding: 0.75rem;
        text-align: center;
        transition: all 0.3s ease;
    }

        footer.site-footer .award-item:hover {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px) scale(1.02);
        }

        footer.site-footer .award-item .bi {
            font-size: 1.5rem;
            color: #fbbf24;
            margin-bottom: 0.25rem;
            display: block;
        }

        footer.site-footer .award-item span {
            font-size: 0.75rem;
            color: #adb5bd;
        }

    footer.site-footer .scroll-to-top {
        width: 3rem;
        height: 3rem;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        footer.site-footer .scroll-to-top:hover {
            background-color: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.35);
            transform: scale(1.1) translateY(-2px);
        }

        footer.site-footer .scroll-to-top .bi {
            font-size: 1.25rem;
        }

    footer.site-footer .copyright-bar {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 2rem;
        margin-top: 3rem;
    }

    footer.site-footer .whitelake-logo {
        height: 1.5rem;
        margin-right: 0.75rem;
        filter: brightness(0) invert(1) opacity(0.7);
    }

/* ===== WhatsApp Float Button ===== */
.wa-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: all var(--duration) var(--ease);
}

    .wa-float:hover {
        transform: scale(1.1) translateY(-2px);
        color: #fff;
        box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4);
    }

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .page-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Container/Grid Utilities (subset) ===== */
.container {
    width: 100%;
    padding-right: calc(1.5rem * 0.5);
    padding-left: calc(1.5rem * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gutter-y));
    margin-right: calc(-0.5 * var(--gutter-x));
    margin-left: calc(-0.5 * var(--gutter-x));
}

    .row > * {
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        padding-right: calc(var(--gutter-x) * 0.5);
        padding-left: calc(var(--gutter-x) * 0.5);
        margin-top: var(--gutter-y);
    }

.g-2 {
    --gutter-x: 0.5rem;
    --gutter-y: 0.5rem;
}

.g-4 {
    --gutter-x: 1.5rem;
    --gutter-y: 1.5rem;
}

.gy-4 {
    --gutter-y: 1.5rem;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md {
        flex: 1 0 0%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-auto {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* ===== Utility Classes ===== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }

    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.align-middle {
    vertical-align: middle !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.ms-auto {
    margin-left: auto !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

.mx-2 {
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

@media (min-width: 768px) {
    .text-md-start {
        text-align: left !important;
    }

    .justify-content-md-end {
        justify-content: flex-end !important;
    }

    .ms-md-auto {
        margin-left: auto !important;
    }

    .mt-md-0 {
        margin-top: 0 !important;
    }
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.small {
    font-size: 0.875em;
}

.lh-lg {
    line-height: 2 !important;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* ===== Navbar Core ===== */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

    .navbar > .container {
        display: flex;
        flex-wrap: inherit;
        align-items: center;
        justify-content: space-between;
    }

.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

    .navbar-nav .nav-link {
        padding-right: 0;
        padding-left: 0;
    }

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-lg .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-lg .navbar-nav .nav-link {
                padding-right: 0.5rem;
                padding-left: 0.5rem;
            }

        .navbar-expand-lg .navbar-collapse {
            display: flex !important;
            flex-basis: auto;
        }

        .navbar-expand-lg .navbar-toggler {
            display: none;
        }
}

/* ===== Dropdown Styles ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    list-style: none;
}

    .dropdown-menu.show {
        display: block;
    }

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

    .dropdown-item:hover {
        color: #1e2125;
        background-color: #f8f9fa;
    }

/* ===== Form Controls (minimal) ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* ===== Address & Contact ===== */
address {
    font-style: normal;
}

/* ===== Responsive Address ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("./space-grotesk-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
