/* Lagos Team - Custom Styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-tagline {
    font-size: 0.7rem;
}

.company-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a5490;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    transform: scaleX(1.3);
    transform-origin: left center;
}

/* Desktop navbar: smaller nav-link font to keep items on one line */
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 0.875rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

/* Mobile navbar adjustments */
@media (max-width: 767px) {
    .navbar-logo {
        height: 40px !important;
        margin-right: 0 !important;
    }

    .navbar-brand {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lead {
    font-size: 1.2rem;
    color: #666;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Article styles */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-content ul {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE FRONTPAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    max-height: 800px;
    background-image: url('/static/pics-2017/t2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax on desktop */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 40, 100, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem 1rem;
}

.hero-buttons .btn {
    min-width: 200px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Typography with clamp() */
.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: -1px;
    transform: scaleX(1.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.75rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: clamp(1.575rem, 2.7vw + 0.45rem, 2.475rem);
}

h2 {
    font-size: clamp(1.215rem, 2.25vw + 0.45rem, 1.8rem);
}

h3 {
    font-size: clamp(1.15rem, 1.75vw + 0.25rem, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
}

h5 {
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
}

h6 {
    font-size: clamp(0.9rem, 1.25vw + 0.25rem, 1.1rem);
}

.lead {
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
    color: #666;
}

.section-title {
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* About Section */
.about-section {
    margin-top: 5rem;
}

.about-section img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-card h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

/* Accessibility */
.btn {
    min-height: 44px; /* WCAG touch target size */
    min-width: 44px;
}

.btn:focus,
.card:focus-within,
a:focus {
    outline: 3px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
}

/* Mobile and below */
@media (max-width: 991px) {
    .about-section img {
        max-height: 350px;
    }
}

/* Mobile: Remove parallax, reduce height */
@media (max-width: 767px) {
    .hero-section {
        height: auto;
        min-height: 0;
        background-attachment: scroll; /* Performance on mobile */
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .hero-overlay {
        position: relative;
        padding: 2.5rem 1rem 2rem;
    }

    .service-card .card-body {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-section img {
        max-height: 300px;
    }
}

/* Touch devices: no hover effects */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }

    .service-card .btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-section {
        background-attachment: scroll;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.85);
    }

    .card {
        border: 2px solid currentColor;
    }
}
