:root {
    --deep-navy: #0A3D62;
    --primary-blue: #0D6EFD;
    --teal-accent: #1B9C85;
    --light-gray: #F8F9FA;
    --soft-white: #FFFFFF;
}

/* ===== GLOBAL LAYOUT ===== */
html, body {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-gray);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    flex-shrink: 0;
    flex-grow: 0;
}

/* ===== MAIN CONTENT ===== */
main {
    flex-grow: 1;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
footer {
    flex-shrink: 0;
    flex-grow: 0;
}

.footer {
    background-color: var(--deep-navy);
    color: var(--soft-white);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h6 {
    color: var(--soft-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 8px 0;
}

.footer .small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: var(--teal-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--soft-white);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 40px;
    max-width: 700px;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-subtagline {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* ===== ICON CIRCLE ===== */
.icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FRAMEWORK LIST ===== */
.framework-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.framework-list li {
    color: #333;
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.framework-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--teal-accent);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.service-tagline {
    color: var(--deep-navy);
    font-size: 1rem;
    line-height: 1.5;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    color: #333;
    font-size: 0.95rem;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.service-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--teal-accent);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

/* ===== SECTIONS ===== */
.services-section {
    padding-bottom: 80px;
}

/* ===== FORM STYLING ===== */
.form-control,
.form-select {
    border-color: #e0e0e0;
    color: #333;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    color: #333;
    margin-bottom: 8px;
}

.text-danger {
    color: #dc3545;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.05), rgba(27, 156, 133, 0.05));
    border-top: 1px solid rgba(10, 61, 98, 0.1);
    border-bottom: 1px solid rgba(10, 61, 98, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Hero Section */
    .hero-section {
        height: 400px;
        margin-bottom: 24px;
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    
    .hero-overlay {
        z-index: 1;
    }
    
    .hero-content {
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 20px;
        z-index: 2;
    }

    .hero-subtagline {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Buttons */
    .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Services Section */
    .services-section {
        padding: 40px 0;
    }

    .service-card {
        margin-bottom: 20px;
    }

    /* Framework Cards */
    .framework-list li {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }

    .footer h6 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer p {
        font-size: 0.9rem;
        margin: 6px 0;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Spacing adjustments */
    .py-5 {
        padding: 2rem 0 !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .pb-5 {
        padding-bottom: 2rem !important;
    }
}

/* MOBILE (576px and below) */
@media (max-width: 576px) {
    /* Typography */
    h1, .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h4, h5, h6 {
        font-size: 1rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    /* Hero Section */
    .hero-section {
        height: 300px;
        border-radius: 0;
        margin-bottom: 20px;
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    
    .hero-overlay {
        z-index: 1;
    }
    
    .hero-content {
        left: 15px;
        right: 15px;
        padding: 15px;
        top: 50%;
        z-index: 2;
    }

    .hero-subtagline {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    /* Buttons */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        font-size: 0.9rem;
        padding: 0.6rem 1rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .btn.me-2 {
        margin-right: 0 !important;
    }

    /* Services Section */
    .services-section {
        padding: 30px 0;
    }

    .service-card {
        margin-bottom: 15px;
        padding: 20px !important;
    }

    .service-card h5 {
        font-size: 1rem;
    }

    .service-tagline {
        font-size: 0.9rem;
    }

    .service-list li {
        font-size: 0.9rem;
        padding: 6px 0;
        padding-left: 20px;
    }

    /* Cards and Modals */
    .card {
        margin-bottom: 15px;
    }

    .modal-dialog {
        margin: 10px !important;
    }

    /* Framework Section */
    .container.mb-5.pb-5 {
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .framework-list li {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        height: auto;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 20px;
    }

    .footer h6 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .footer p {
        font-size: 0.85rem;
        margin: 4px 0;
    }

    .footer .small {
        font-size: 0.8rem;
    }

    .footer .btn {
        width: 100%;
        margin-top: 8px;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Grid adjustments */
    .row {
        margin-right: 0;
        margin-left: 0;
    }

    .col-lg-3,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* CTA Section */
    .cta-section {
        padding: 30px 0 !important;
    }

    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .cta-section .lead {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* Tables */
    .table-responsive {
        font-size: 0.85rem;
    }

    .table {
        margin-bottom: 20px;
    }

    .table thead th {
        padding: 8px 4px;
    }

    .table td {
        padding: 10px 4px;
        vertical-align: middle;
    }

    /* Navigation adjustments */
    .navbar-brand img {
        height: 35px !important;
    }

    /* Icon circle */
    .icon-circle {
        width: 60px;
        height: 60px;
    }

    /* Spacing */
    .py-5 {
        padding: 1.5rem 0 !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .pb-5 {
        padding-bottom: 1.5rem !important;
    }

    /* Alert boxes */
    .alert {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Badge sizing */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* EXTRA SMALL (less than 376px) */
@media (max-width: 375px) {
    .hero-section {
        height: 280px;
    }

    h1, .display-4 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem !important;
    }

    .service-card {
        padding: 15px !important;
    }

    .footer {
        padding: 20px 0;
    }

    .table {
        font-size: 0.75rem;
    }

    .table td {
        padding: 8px 2px;
    }
}

/* Viewport and Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    
    .service-card {
        touch-action: manipulation;
    }

    /* Ensure buttons are easy to tap */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices where not needed */
    .service-card:hover {
        transform: none;
    }
}
