/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 80px;
    padding-bottom: 0;
}

/* Fixed Header - 80px tall */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #212121;
    border-bottom: 2px solid #e0e0e0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#nav-branding {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

#nav-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#nav-branding img {
    height: 40px;
    width: auto;
    margin-right: 20px;
}

#fluke-logo {
    height: 50px;
    width: auto;
    margin-right: 20px;
}

#tagline {
    font-size: 16px;
    color: #ccc;
    font-weight: 500;
}

#tagline sup {
    font-size: 12px;
}

/* Main Content */
#main-content {
    min-height: auto;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Intro Section */
.intro-section {
    margin: 0 0 40px 0;
    text-align: left;
    padding: 0;
}

.intro-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.intro-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Grid Cards */
.grid-card {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.grid-card img {
    max-width: 100%;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}

.grid-card a {
    text-decoration: none;
    color: inherit;
}

.grid-card a:first-child {
    display: block;
    margin-bottom: 0;
    width: 100%;
}

.grid-card a:last-child {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CTA Buttons */
.cta-button {
    background-color: #ffc20e;
    color: #333;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 280px;
    height: 60px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cta-button:hover {
    background-color: #e6ae0c;
}

.cta-button:focus {
    background-color: #e6ae0c;
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Focus states for links */
a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Footer */
#site-footer {
    background-color: #212121;
    color: #fff;
    padding: 0;
    margin-top: 60px;
}

/* Support Section within Footer */
.support-section {
    background-color: #eee;
    color: #333;
    padding: 40px 0;
    width: 100%;
}

.support-section .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.support-section p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.support-section a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.support-section a:hover {
    color: #004499;
    text-decoration: underline;
}

.support-section a:focus {
    color: #004499;
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.footer-top {
    margin-bottom: 10px;
}

.block-menu .menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.block-menu .menu li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.block-menu .menu li a:hover {
    color: #fff;
}

#copyright {
    text-align: left;
    border-top: none;
    padding-top: 0;
    margin-top: 5px;
}

#copyright small {
    font-size: 12px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 0;
    }
    
    #site-header {
        height: 70px;
    }
    
    #nav-branding {
        padding: 0 15px;
    }
    
    #nav-branding img {
        height: 30px;
        margin-right: 15px;
    }
    
    #fluke-logo {
        height: 40px;
        margin-right: 15px;
    }
    
    #tagline {
        font-size: 14px;
        display: none;
    }
    
    #main-content {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .intro-section {
        margin-bottom: 30px;
        padding: 0;
    }
    
    .intro-section h1 {
        font-size: 24px;
    }
    
    .intro-section p {
        font-size: 15px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .block-menu .menu {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }
    
    .cta-button {
        width: 260px;
        height: 56px;
        font-size: 0.9rem;
        font-weight: 400;
        padding: 10px 14px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .cta-button {
        width: 240px;
        height: 52px;
        font-size: 0.8rem;
        font-weight: 400;
        padding: 8px 12px;
        line-height: 1.2;
    }
}

/* Desktop Grid Layout */
@media (min-width: 769px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .support-section {
        padding: 30px 0;
    }
    
    .support-section .footer-content {
        padding: 0 15px;
        text-align: left;
    }
    
    .support-section p {
        font-size: 15px;
        text-align: left;
    }

    #site-footer .footer-content {
        padding: 30px 15px;
    }
}
