/*
 * Global HTML setting for smooth scrolling
 */
html {
    scroll-behavior: smooth;
}

/*
 * Color Variables:
 */
:root {
    --primary-blue: #044973;
    --white: #ffffff;
    --accent-blue: #00aae3;
    --dark-navy: #032130;
    --black: #000000;
}

/* * Global/Reset Styles 
 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark-navy);
    line-height: 1.6;
}

/* * Navigation Bar Styles (Desktop/Default)
 */
.navbar {
    background-color: var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-title {
    color: var(--white); 
    font-size: 1.5em; 
    font-weight: bold; 
    padding-left: 20px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    margin-right: 20px;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Style for the Menu/Hamburger button */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 20px;
}

/* * Main Content Area 
 */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 70vh;
}

/* * Hero Section Style for Index Page 
 */
.hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}

/* * Footer Styles
 */
footer {
    background-color: var(--dark-navy); 
    color: var(--white); 
    text-align: center; 
    padding: 20px; 
    margin-top: 40px;
}

/* --- SERVICE CARD LAYOUT STYLES --- */

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    flex: 1 1 calc(25% - 20px); /* Adjusted to 4 columns */
    min-width: 250px;
    padding: 25px;
    background-color: #f7f7f7;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
    margin-top: 0;
}

/* --- CONTACT FORM STYLES (for embedding - kept for legacy) --- */
.form-embed-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.form-embed-container iframe {
    max-width: 100%;
    width: 640px; 
    height: 720px; 
}


/* --- BLOG READABILITY STYLES --- */

.blog-article {
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 20px;
}

.blog-article h2 {
    color: var(--primary-blue);
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.blog-article h3 {
    color: var(--dark-navy);
    margin-top: 25px;
}

.blog-article p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Styling for links within the content */
.blog-article a {
    color: var(--accent-blue);
    text-decoration: underline;
    transition: color 0.3s;
}

.blog-article a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* --- PRODUCT GRID STYLES --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.product-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-icon {
    font-size: 3em; /* Large icon size */
    color: var(--accent-blue);
    margin-bottom: 10px;
    display: block;
}

.product-item h2 {
    font-size: 1.5em;
    color: var(--primary-blue);
    margin-top: 5px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--dark-navy);
    margin: 15px 0;
}

.product-button {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.product-button:hover {
    background-color: var(--primary-blue);
}

/* --- CHECKLIST CONTENT STYLES (for ir-dr-checklist.html) --- */

.checklist-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #f9f9f9; /* Light gray background */
    border-left: 5px solid var(--primary-blue);
    border-radius: 4px;
}

.checklist-section h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
}

.checklist-section ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;
}

.checklist-section li {
    /* Custom bullet: blue checkmark SVG */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%2300aae3" d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>') no-repeat left 5px;
    background-size: 18px;
    padding-left: 30px; /* Space for the checkmark */
    margin-bottom: 15px;
    font-weight: 500;
}

.checklist-section p.why {
    font-style: italic;
    color: var(--dark-navy);
    margin-top: 5px;
    font-size: 0.9em;
}


/* --- BACK TO TOP BUTTON STYLES --- */

#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99; /* Ensure it's above other elements */
    border: none;
    outline: none;
    background-color: var(--primary-blue);
    color: var(--white);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Makes it circular */
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

#back-to-top:hover {
    background-color: var(--accent-blue);
}

/* --- Media Query for Mobile Responsiveness --- */
@media (max-width: 900px) {
    /* Service card fallback for medium screens */
    .service-card {
        flex: 1 1 100%;
        min-width: initial;
    }
}

@media (max-width: 768px) {
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-blue);
        position: absolute; 
        top: 60px;
        left: 0;
        z-index: 1000;
        margin: 0;
    }

    .nav-links.active {
        display: flex; 
        border-top: 1px solid var(--accent-blue);
    }

    .nav-links li {
        text-align: center;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
    }
    
    .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 10px 0;
    }
}
