/* Ericom Static Site - Main Stylesheet */
/* Building up CSS layer by layer */

/* Page Layout */
body {
    font: 18px/1.6em "IBM Plex Sans", Helvetica, Verdana, Arial, sans-serif;
    max-width: 1024px;
    margin: 0 auto;
}

/* Header */
header {
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

header .logo img {
    height: 45px;
    width: auto;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 20px;
    background: #333F48;
    color: #fff;
}

.hero-content {
    padding: 20px 40px 20px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.hero-image {
    padding-right: 40px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 20px 20px 20px;
}

footer .footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 30px;
}

footer .footer-brand img {
    max-width: 180px;
}

footer .footer-links h4 {
    color: #FFAD00;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-links li {
    margin-bottom: 8px;
}

footer .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

footer .footer-links a:hover {
    color: #fff;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Portal Section */
.portal {
    padding: 60px 20px;
    background: #fff;
}

.portal h2 {
    margin: 0 0 16px 0;
    font-size: 2rem;
    text-align: center;
}

.portal .subtitle {
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portal-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 24px;
}

.portal-section h3 {
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    color: #003366;
    border-bottom: 2px solid #FFAD00;
    padding-bottom: 8px;
}

.portal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-section li {
    margin-bottom: 12px;
}

.portal-section a {
    color: #008EAA;
    text-decoration: none;
}

.portal-section a:hover {
    text-decoration: underline;
    color: #006d87;
}

.eol-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.eol-notice p {
    margin: 0;
    color: #856404;
}

.eol-notice a {
    color: #533f03;
}

/* Page Hero (inner pages) */
.page-hero {
    background: #fff;
    color: #000;
    padding: 50px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 12px 0;
    color: #000;
}

.page-hero p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Agreements Section - matching ericom.com */
.agreements {
    padding: 40px 20px 32px 20px;
    background: #eeeeee;
}

.agreements h2 {
    font-size: 1.5rem;
    color: #000;
    margin: 0 0 10px 0;
    text-align: center;
}

.agreement-group {
    margin-bottom: 40px;
}

.agreement-group h2 {
    font-size: 1.5rem;
    color: #003366;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFAD00;
}

.agreement-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agreement-group li {
    margin-bottom: 12px;
}

.agreement-group a {
    color: #0066cc;
    text-decoration: none;
}

.agreement-group a:hover {
    text-decoration: underline;
}

.previous-versions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    text-align: center;
}

.previous-versions a {
    color: #0066cc;
}

/* Document Cards - matching ericom.com */
.doc-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1 1 auto;
    max-width: 180px;
    padding: 0 15px;
}

.doc-icon {
    background: #008EAA;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 24px;
}

.doc-icon img {
    display: block;
    max-width: 132px;
    height: auto;
}

.doc-card span {
    display: block;
    margin-top: 0;
    text-align: center;
    font-weight: 700;
    color: #000;
    font-size: 1rem;
    line-height: 1.3;
}

/* Product Support Section */
.products {
    background: #f5f5f5;
    padding: 60px 20px;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #003366;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-card .btn {
    display: inline-block;
    background: #FFAD00;
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.product-card .btn:hover {
    background: #e69d00;
}

.product-card .notice {
    font-size: 0.875rem;
    color: #856404;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .doc-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .doc-cards {
        flex-direction: column;
        align-items: center;
    }

    .doc-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    footer .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
