/* ==========================================================================
   Custom Properties
   ========================================================================== */
   :root {
    /* Colors - Primary */
    --bs-primary: #34509c;
    --bs-primary-rgb: 52, 80, 156;
    --bs-primary-subtle: #eceef6;

    /* Colors - Accent */
    --bs-accent: #ea1f63;
    --bs-accent-rgb: 234, 31, 99;
    --bs-accent-subtle: #fee5ed;

    /* Colors - Grays */
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;

    /* Text & Borders */
    --bs-body-color: var(--bs-gray-700);
    --bs-heading-color: var(--bs-primary);
    --bs-secondary-color: #566174; /* Enhanced contrast */
    --bs-border-color: var(--bs-gray-200);

    /* Font Sizes */
    --fs-display: clamp(2.5rem, 5vw, 3.5rem);
    --fs-h1: clamp(2rem, 4vw, 2.5rem);
    --fs-h2: clamp(1.75rem, 3vw, 2rem);
    --fs-lead: clamp(1.125rem, 2vw, 1.25rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Spacing */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */

    /* Other */
    --transition-base: 0.2s ease-in-out;
    --navbar-height: 64px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    color: var(--bs-body-color);
    font-size: var(--fs-body);
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    fill: currentColor;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.display-4 {
    font-size: var(--fs-display);
}

h1, .h1 {
    font-size: var(--fs-h1);
}

h2, .h2 {
    font-size: var(--fs-h2);
}

.lead {
    font-size: var(--fs-lead);
}

.small {
    font-size: var(--fs-small);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container-xxl {
    padding-inline: var(--container-padding);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
/* Navbar fixes */
.navbar {
    position: relative;
    z-index: 1030;
    height: auto;
    min-height: var(--navbar-height);
    background-color: var(--bs-white);
    border-bottom: 1px solid var(--bs-border-color);
}

.navbar-collapse {
    background-color: var(--bs-white);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--bs-border-color);
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        margin-bottom: 1rem;
    }
    
    /* Add spacing to content below navbar when menu is expanded */
    .navbar-collapse.show + * {
        margin-top: var(--navbar-height);
    }
}

/* Fix image container positioning */
.ratio-tg {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: var(--space-lg) 0;
    contain: content;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: calc(100vh - var(--navbar-height));
        display: flex;
        align-items: center;
        padding: var(--space-xl) 0;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bs-border-radius-lg);
}

.ratio-tg {
    --bs-aspect-ratio: 60%;
}

@media (max-width: 767px) {
    .ratio-tg {
        --bs-aspect-ratio: 45%;
    }
}


/* ==========================================================================
   Buttons - Optimized for Mobile
   ========================================================================== */
   .btn {
    padding: 0.5rem 1rem; /* Reduced from default Bootstrap padding */
    font-size: 0.9rem; /* Slightly smaller font */
    transition: all var(--transition-base);
    will-change: transform;
    line-height: 1.4;
}

/* Mobile-first approach - smaller buttons on mobile */
@media (max-width: 767px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Adjust button container spacing on mobile */
    .d-flex.flex-wrap.gap-3 {
        gap: 0.5rem !important;
    }
}

/* Larger screens get slightly bigger buttons */
@media (min-width: 768px) {
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-accent);
    --bs-btn-border-color: var(--bs-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d41b59;
    --bs-btn-hover-border-color: #c81953;
    --bs-btn-focus-shadow-rgb: var(--bs-accent-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c81953;
    --bs-btn-active-border-color: #bc184e;
}

.btn-outline-accent,
.btn-outline-primary {
    --btn-hover-y: -1px;
    --btn-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-accent {
    --bs-btn-color: var(--bs-accent);
    --bs-btn-border-color: var(--bs-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-accent);
    --bs-btn-hover-border-color: var(--bs-accent);
    --bs-btn-focus-shadow-rgb: var(--bs-accent-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-accent);
    --bs-btn-active-border-color: var(--bs-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: #2c447f;
    --bs-btn-active-border-color: #2c447f;
}

.btn-outline-accent:hover,
.btn-outline-primary:hover {
    transform: translateY(var(--btn-hover-y));
    box-shadow: var(--btn-shadow);
}
/* ==========================================================================
   Icons
   ========================================================================== */
.feature-icon {
    width: 24px;
    height: 24px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.feature-icon,
.icon-sm {
    fill: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color var(--transition-base);
    padding: var(--space-xs) 0;
}

.footer-link:hover {
    color: var(--bs-accent);
}

/* ==========================================================================
   Section Separator
   ========================================================================== */
.section-separator {
    position: relative;
    padding: var(--space-md) 0;
}

.separator-line {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--bs-gray-300) 20%,
        var(--bs-gray-300) 80%,
        transparent
    );
}