/* 
   XetaCorp — VisitorGuard Inspired Edition
   Aesthetic: Modern Corporate / High-Trust Insurance
   Palette: Deep Blues + Teal Accent + Lime Green CTA
   Based on visitorguard.ca design language
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* ─── VisitorGuard-Inspired Palette ─── */
    --navy-deep: #002D45;
    --navy-mid: #004B7D;
    --nav-blue: #004F98;
    --teal-accent: #00B589;
    --teal-light: #00D4A0;
    --lime-cta: #8DB71B;
    --lime-hover: #7AA316;

    /* Surfaces */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #F1F5F9;
    --border-light: #E2E8F0;
    --border-soft: rgba(0, 79, 152, 0.08);

    /* Text */
    --text-dark: #1A2B3C;
    --text-body: #4A5B6C;
    --text-muted: #7A8B9C;
    --text-on-dark: #CDD8E0;
    --text-on-deep: #A8BDC8;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* System */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 16px rgba(0, 45, 69, 0.06);
}

/* ─── Keyframe Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25); }
    50%      { box-shadow: 0 10px 40px rgba(34, 197, 94, 0.45); }
}

@keyframes shimmer {
    0%   { left: -50%; }
    100% { left: 120%; }
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Base Reset ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ═══════════════════════════════════════════
   NAVIGATION — Clean Professional
   ═══════════════════════════════════════════ */
.nav-elite {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-top-bar {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    padding: 10px 0;
}

.nav-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-contact-items {
    display: flex;
    gap: 25px;
}

.nav-contact-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.nav-contact-link:hover {
    color: var(--teal-accent);
}

.nav-contact-link i {
    color: var(--teal-accent);
}

.nav-main-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-elite {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--nav-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--nav-blue), var(--teal-accent));
    border-radius: 8px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-mark i {
    transform: rotate(-45deg);
    color: var(--white);
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--nav-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-item:hover > .nav-link {
    color: var(--teal-accent);
}

/* ─── Mega Menu Dropdown ─── */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    gap: 12px;
}

.mega-link:hover {
    background: var(--off-white);
    color: var(--teal-accent);
}

.mega-link i {
    font-size: 1rem;
    color: var(--teal-accent);
    width: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════════
   HERO — Background Image + Overlay
   ═══════════════════════════════════════════ */
.hero-v4 {
    padding: 220px 0 120px;
    background:
        linear-gradient(135deg, rgba(0, 45, 69, 0.82), rgba(0, 75, 125, 0.75)),
        url('../assets/images/hero-family.png') center/cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle bottom curve */
.hero-v4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-v4 h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-v4 p {
    font-size: 1.2rem;
    color: var(--text-on-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

/* ═══════════════════════════════════════════
   BUTTONS — Glossy, Embossed, Professional
   ═══════════════════════════════════════════ */
.btn-v4 {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-v4-primary {
    background: linear-gradient(135deg, var(--lime-cta) 0%, #9DC925 50%, var(--lime-cta) 100%);
    background-size: 200% auto;
    color: var(--white);
    font-weight: 800;
    box-shadow:
        0 6px 20px rgba(141, 183, 27, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Glossy shimmer */
.btn-v4-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-v4-primary:hover::before {
    left: 120%;
}

.btn-v4-primary:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow:
        0 12px 35px rgba(141, 183, 27, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.btn-v4-primary:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(141, 183, 27, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-v4-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-v4-outline:hover {
    background: var(--white);
    color: var(--nav-blue);
    border-color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   SERVICE CARDS — Clean Professional Cards
   ═══════════════════════════════════════════ */
.elite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.elite-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 20px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-card);
}

/* Teal accent top border on hover */
.elite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-accent), var(--nav-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.elite-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.elite-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--teal-accent);
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card-desc {
    color: var(--text-body);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   TRUST / PARTNERS BAR
   ═══════════════════════════════════════════ */
.trust-bar {
    padding: 60px 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.trust-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.partners-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    opacity: 0.7;
    filter: grayscale(1);
    transition: var(--transition-smooth);
}

.partners-flex:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ═══════════════════════════════════════════
   CONTENT HUB
   ═══════════════════════════════════════════ */
.elite-content-hub {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.elite-content-hub h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 20px;
}

.elite-content-hub h2, .elite-content-hub h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 4rem 0 1.5rem;
}

.elite-content-hub p {
    margin-bottom: 2rem;
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

.elite-content-hub li {
    padding: 20px 30px;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    color: var(--text-body);
    transition: var(--transition-fast);
}

.elite-content-hub li:hover {
    border-color: var(--teal-accent);
    box-shadow: var(--shadow-sm);
}

.elite-content-hub li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--teal-accent);
}

/* ═══════════════════════════════════════════
   FOOTER — Deep Navy Professional
   ═══════════════════════════════════════════ */
.footer-v4 {
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
    padding: 100px 0 50px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--teal-accent);
}

.footer-desc {
    color: var(--text-on-deep);
    max-width: 350px;
}

.footer-column h4 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    color: var(--teal-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 12px; }

.footer-link {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--teal-accent);
    padding-left: 5px;
}

/* ═══════════════════════════════════════════
   FLOATING CTA
   ═══════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    padding: 15px 25px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    z-index: 2000;
    transition: var(--transition-smooth);
    animation: subtlePulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

/* ─── Section Labels ─── */
.section-label {
    color: var(--teal-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

th {
    background: var(--navy-mid);
    color: var(--white);
    padding: 20px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
    font-size: 1rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off-white); }

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
form {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--nav-blue);
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-dark);
    margin-bottom: 25px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 4px rgba(0, 181, 137, 0.1);
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--lime-cta), #9DC925);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow:
        0 6px 20px rgba(141, 183, 27, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(141, 183, 27, 0.4);
}

button[type="submit"]:hover::before {
    left: 120%;
}

.partner-logos-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.partner-marquee {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    gap: 80px;
    align-items: center;
}

.partner-marquee:hover {
    animation-play-state: paused;
}

.partner-item {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition-smooth);
}

.partner-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: var(--transition-smooth);
}

.partner-item:hover img {
    filter: grayscale(0);
}

/* ═══════════════════════════════════════════
   ADVISOR CTA SECTION
   ═══════════════════════════════════════════ */
.advisor-cta-section {
    padding: 80px 0;
    background:
        linear-gradient(135deg, rgba(0, 75, 125, 0.88), rgba(0, 45, 69, 0.92)),
        url('../assets/images/advisor-meeting.png') center/cover no-repeat;
    text-align: center;
    color: var(--white);
}

.advisor-cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.advisor-cta-section p {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--nav-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-deep);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 992px) {
    .nav-menu { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .elite-grid { grid-template-columns: 1fr; }
    .container { padding: 0 20px; }
    .hero-v4 { padding: 180px 0 80px; }
}

/* ─── Selection ─── */
::selection {
    background: rgba(0, 181, 137, 0.2);
    color: var(--text-dark);
}
