/* Allermuir Capital - Shared Styles & Branding */

/* ===== BRAND COLORS & VARIABLES ===== */
:root {
    /* Premium Blue Color Palette - Streamlined & Professional */
    --c-deep: #0a1428;           /* Deepest navy - for backgrounds */
    --c-navy: #1e293b;           /* Rich navy - primary dark */
    --c-teal: #0891b2;           /* Premium teal - primary accent */
    --c-blue-light: #1e40af;     /* Royal blue - secondary accent */
    --c-blue-dark: #1e3a8a;      /* Deep blue - depth */
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    
    /* Typography System - Professional Landing Page */
    --font-size-sm: 1rem;         /* 16px - Small text, captions */
    --font-size-base: 1.125rem;   /* 18px - Body text */
    --font-size-lg: 1.25rem;      /* 20px - Large body text */
    --font-size-xl: 1.5rem;       /* 24px - Subheadings */
    --font-size-2xl: 2rem;        /* 32px - Section headings */
    --font-size-3xl: 2.5rem;      /* 40px - Large section titles */
    --font-size-5xl: 3.25rem;     /* 52px - Hero title */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== BACKGROUND STYLES ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-blue-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.bg-dots {
    display: none;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dropdown-menu {
    /* Neutralize global dropdown styling; navbar-specific styles live in navbar-footer.css */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    margin-top: 0.5rem;
    box-shadow: none;
}

.dropdown-item {
    color: var(--c-deep);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--c-deep);
    transform: none;
}

.dropdown-toggle::after {
    border-top-color: var(--c-deep);
    margin-left: 0.5rem;
}

/* ===== BUTTON STYLES ===== */
.btn-demo {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 36px;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-demo:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 2px solid #1e3a8a;
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
    min-height: 40px;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.5);
}

.btn-hero:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.5), 0 8px 32px rgba(30, 58, 138, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 40px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 32px rgba(255, 255, 255, 0.15);
}

/* ===== TYPOGRAPHY STYLES ===== */
.hero-heading {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: var(--white);
    margin-bottom: 3rem;
    line-height: var(--line-height-relaxed);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.section-heading {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--white);
    letter-spacing: -0.02em;
}

.section-heading-dark {
    color: var(--c-deep);
}

.section-subtitle {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--light-gray);
    font-weight: var(--font-weight-normal);
}

.section-subtitle-dark {
    color: var(--dark-gray);
}

/* ===== CARD STYLES ===== */
.card-modern {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: var(--c-deep);
    border: 1px solid #6b7280;
}

.card-header-modern {
    padding: 2rem 2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.card-body-modern {
    padding: 2rem 2rem 1rem;
    text-align: left;
}

.card-footer-modern {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== ICON STYLES ===== */
.icon-modern {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.icon-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.25);
}

.icon-modern i {
    font-size: 1.2rem;
    color: var(--white);
}

/* ===== ANIMATION STYLES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== SCROLLBAR STYLES ===== */
/* Scope page scrollbar to root only to avoid affecting nested scroll containers (e.g., modals) */
html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: rgba(4, 26, 51, 0.1);
}

html::-webkit-scrollbar-thumb {
    background: var(--c-navy);
    opacity: 0.8;
    border-radius: 4px;
    transition: all 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--c-deep);
    opacity: 1;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--c-navy) rgba(4, 26, 51, 0.1);
}

/* Ensure Bootstrap modal internal scrollbars use default/native styling */
.modal, .modal * {
    scrollbar-width: auto;
}
.modal ::-webkit-scrollbar,
.modal *::-webkit-scrollbar {
    width: auto;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .hero-heading {
        font-size: var(--font-size-3xl);
        margin-bottom: 1rem;
        line-height: var(--line-height-tight);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: 2rem;
        line-height: var(--line-height-normal);
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .bg {
        background-attachment: scroll;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-heading,
    .hero-subtitle,
    .hero-cta,
    .hero-visual {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Generic modal content styles - only for non-fullscreen modals */
.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* ===== STANDARDIZE SHARED MODALS ACROSS PAGES ===== */
/* Fullscreen layout and consistent paddings */
#calendlyModal .modal-dialog,
#contactSalesModal .modal-dialog,
#disclaimerModal .modal-dialog,
#contact-form-modal .modal-dialog { margin: 0; }

#calendlyModal .modal-content,
#contactSalesModal .modal-content,
#disclaimerModal .modal-content,
#contact-form-modal .modal-content {
    max-width: none;
    width: 100vw;
    max-height: none;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

#calendlyModal .modal-body,
#contactSalesModal .modal-body,
#disclaimerModal .modal-body,
#contact-form-modal .modal-body {
flex: 1 1 auto;
    overflow: auto;
}

/* Neat interior padding for content modals */
#contactSalesModal .modal-body,
#disclaimerModal .modal-body,
#contact-form-modal .modal-body { padding: 1.5rem; }

/* Calendly should be edge-to-edge */
#calendlyModal .modal-body { padding: 0; }

/* Remove outer padding that causes left gutter */
#calendlyModal.modal,
#contactSalesModal.modal,
#disclaimerModal.modal,
#contact-form-modal.modal { padding: 0 !important; }

/* Calendly iframe container full height minus header */
#calendlyModal .calendly-inline-widget { min-width: 100%; width: 100%; height: calc(100vh - 64px); }

/* ===== MODAL BUTTON STYLES ===== */
.btn-modal-submit {
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    color: var(--white);
    border: 2px solid var(--c-deep);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.3);
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-deep) 100%);
    border-color: var(--c-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.4);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.form-control:focus {
    color: #1f2937;
    background-color: #ffffff;
    border-color: var(--c-teal);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-control.textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== FLOATING ELEMENT STYLES ===== */
.floating-element {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.25);
}

.floating-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 20, 40, 0.35);
}

.floating-element i {
    color: var(--white);
    font-size: 1.3rem;
}

