/* ===================================
   Global Styles
   =================================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0E2A3A;
    color: #163A59;
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    line-height: 1.6;
}

/* ===================================
   Site Wrapper (Light Panel)
   =================================== */

.site-wrap {
    background-color: #F1F2F4;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
    border-radius: 18px;
    overflow: hidden;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .site-wrap {
        padding: 3rem 2rem;
    }
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    color: #163A59;
    font-weight: bold;
    line-height: 1.2;
}

h1 {
    font-size: clamp(32px, 4vw, 48px);
}

/* Hero H1 - smaller on desktop to prevent overflow */
#hero h1 {
    font-size: clamp(32px, 3.5vw, 42px);
}

h2 {
    font-size: clamp(24px, 3vw, 38px);
    margin-bottom: 1.5rem;
}

/* ===================================
   Navbar
   =================================== */

.navbar {
    background-color: rgba(14, 42, 58, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas for mobile */
.offcanvas {
    background-color: #0E2A3A;
}

.offcanvas-header {
    border-bottom: 1px solid #D9DDE2;
}

.offcanvas-title {
    color: #fff;
}

.btn-close {
    filter: invert(1);
}

.offcanvas-body .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-body .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
    transition: all 0.3s ease;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary {
    background-color: #163A59;
    border-color: #163A59;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0d2a42;
    border-color: #0d2a42;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Sections
   =================================== */

section {
    position: relative;
}

.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .py-md-8 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ===================================
   Hero Section
   =================================== */

#hero {
    padding-top: 2rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===================================
   About Section
   =================================== */

.about-card {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Services Section
   =================================== */

.service-card {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D9DDE2;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    background-color: #F1F2F4;
    border: 2px solid #D9DDE2;
}

/* ===================================
   Why Us Section
   =================================== */

.why-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #D9DDE2;
}

.why-item:last-child {
    border-bottom: none;
}

.why-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #163A59;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-illustration {
    background-color: #F1F2F4;
    border: 2px dashed #D9DDE2;
    min-height: 400px;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing-card {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #D9DDE2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
    color: #163A59;
    font-size: 1.5rem;
}

.pricing-card ul li {
    padding-left: 0.5rem;
    color: #163A59;
    font-size: 0.95rem;
}

/* ===================================
   Contacts Section
   =================================== */

#contacts {
    background-color: #fff;
    border-radius: 18px;
    margin: 2rem;
}

@media (min-width: 768px) {
    #contacts {
        margin: 3rem;
    }
}

.contact-info {
    padding-top: 2rem;
    border-top: 1px solid #D9DDE2;
}

.contact-info p {
    color: #163A59;
    margin-bottom: 0.5rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: #0E2A3A;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

/* ===================================
   Utility Classes
   =================================== */

.rounded-custom {
    border-radius: 18px;
}

.divider {
    border-top: 1px solid #D9DDE2;
    margin: 2rem 0;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 991.98px) {
    .site-wrap {
        margin-top: 70px;
        border-radius: 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-logo {
        max-width: 150px;
    }
    
    #contacts {
        margin: 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 575.98px) {
    .site-wrap {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 28px;
    }
    
    /* Hero H1 - smaller on mobile */
    #hero h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    /* Hero paragraph - smaller on mobile */
    #hero p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h2 {
        font-size: 24px;
    }
    
    /* About H2 - smaller to fit in one line */
    #about h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    /* About paragraph - smaller on mobile */
    #about p {
        font-size: 16px;
    }
    
    /* Pricing H3 - smaller on mobile */
    #pricing h3 {
        font-size: 18px;
    }
    
    /* Pricing list items - smaller on mobile */
    #pricing li {
        font-size: 14px;
    }
    
    /* Footer text - smaller on mobile */
    footer p {
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ===================================
   Accessibility
   =================================== */

:focus-visible {
    outline: 2px solid #163A59;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #163A59;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

