/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Make images responsive across the site */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Colors based on Minter Logo */
:root {
    --primary-blue: #0b254a; /* Deep Navy from logo */
    --secondary-blue: #1c4b82; /* Lighter Navy */
    --accent-color: #e63946; /* Red for emphasis/buttons if needed */
    --light-bg: #f4f7fa;
    --white: #ffffff;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.navbar-hidden {
    transform: translateY(-120%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 160px; /* Much larger logo on desktop */
    width: auto;
    max-width: 500px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    padding: 10px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-blue);
    border-bottom: 2px solid var(--secondary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    border-bottom: none !important;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(11, 37, 74, 0.9), rgba(11, 37, 74, 0.8)), url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-blue);
}

/* Sections General */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

/* Pain Points (Grid) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Solutions Section */
.solutions {
    background-color: var(--light-bg);
}

.solutions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.solution-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    align-items: flex-start;
}

.solution-item .icon-box {
    background: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Credibility Page Styles */
.page-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cert-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.cert-item img {
    height: 150px; /* Adjust based on cert image aspect ratios */
    object-fit: contain;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.spec-category {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
}

.spec-category h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-category ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    font-size: 0.95rem;
}

.spec-category ul li::before {
    content: "•";
    color: var(--secondary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links p {
    margin-bottom: 5px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links i {
    margin-right: 8px;
    color: #ddd;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    /* Ensure the logo remains suitably large on small screens */
    .logo img {
        height: 120px;
        width: auto;
        max-width: 90vw;
    }
    /* Stack nav links vertically and center them on small screens */
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 30px; /* increased gap to add extra space between buttons on mobile */
        align-items: center;
    }
    .nav-links a {
        padding: 8px 12px;
        width: auto;
    }
    .nav-links a.btn-primary {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    /* Add extra space between stacked nav buttons on mobile */
    .nav-links a.btn-primary:first-child {
        margin-bottom: 20px;
    }
    /* Add extra space below the last nav button on mobile */
    .nav-links li:last-child {
        margin-bottom: 24px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    /* Make hero height flexible on small devices */
    .hero {
        height: auto;
        padding: 60px 0;
    }
    .hero-content {
        padding: 0 12px;
    }
    .grid-3, .solutions-list, .specialties-grid {
        grid-template-columns: 1fr;
    }
    /* Stack solution items vertically and center their content */
    .solution-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .solution-item .icon-box {
        margin-bottom: 12px;
    }
    /* Make certification images a bit smaller on mobile */
    .cert-item img {
        height: 100px;
        object-fit: contain;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    /* Footer logo sizing (override small inline styles if present) */
    .footer-logo img {
        max-width: 260px; /* reduced footer logo size */
        height: auto;
    }
}

@media (max-width: 750px) {
    .footer-logo img {
        max-width: 260px;
    }
}