/* --- Global Resets & Color Palette --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #F8F6F0; /* Cream */
    color: #1A1A1A; /* Ink */
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #F0B429; /* Amber */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-flex.container {
    max-width: 1400px;
}

.header-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.nav-links a {
    color: #1A1A1A;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #F0B429;
}

/* --- Hero Section --- */
.hero-section {
    padding: 0;
    overflow: hidden;
}

.hero-flex {
    position: relative;
    padding-right: 150px; /* reserves space for the banner image, prevents any overlap */
    box-sizing: border-box;
    min-height: 550px;
}

.hero-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 5rem 2rem;
    box-sizing: border-box;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-brand-image {
    max-width: 100%;
    height: auto;
    max-height: 1116px; /* 744px + 50%, per Roy's request */
    object-fit: contain;
}

.hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.brand-mark {
  #font-family: "Latin Modern Math", "Cambria Math", serif;
  font-size: 2.8rem;
}

.subheadline {
    font-size: 1.0rem;
    color: #4A4A4A;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background-color: #F0B429; /* Amber */
    color: #1A1A1A; /* Ink */
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
    background-color: #996406; /* Amber-deep */
    color: #FFFFFF;
}

/* --- Right Banner (real image, right edge of hero only) --- */
.hex-banner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 150px;
    overflow: hidden;
}
.hex-banner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 270px; /* was 150px, this is +80% */
    overflow: hidden;
}

.hex-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-flex {
    position: relative;
    padding-right: 270px;
    box-sizing: border-box;
    min-height: 550px;
}


/* --- What PQCore Does Section --- */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid #F0B429;
}

.section-heading {
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
}

.feature-block h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
    border-bottom: 2px solid #F0B429;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.feature-block p {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

/* Typography Grid Enhancements */
.feature-block p strong {
    font-weight: 700;
    color: #1A1A1A;
    display: inline-block;
    margin-right: 0.25rem;
}

/* --- Footer --- */
.site-footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #F0B429;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.footer-logo {
    max-height: 45px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.9;
}

.contact-line {
    font-size: 1rem;
    font-weight: 400;
}

.contact-line a {
    color: #1A1A1A;
    text-decoration: none;
    border-bottom: 1px solid #F0B429;
    transition: background-color 0.2s ease;
}

.contact-line a:hover {
    background-color: #F0B429;
}

.legal-disclaimer {
    font-size: 0.88rem;
    color: #4A4A4A;
    line-height: 1.6;
    text-align: justify;
}

/* --- Responsive Adjustments --- */
@media (max-width: 960px) {
    .hex-banner {
        display: none;
    }
    .hero-flex {
        padding-right: 0;
        min-height: 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-visual {
        order: -1; /* Ensures visual stays above text on mobile */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .feature-block h3 {
        display: block;
        border-bottom: none;
        text-align: center;
    }
    .feature-block h3::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: #F0B429;
        margin: 0.5rem auto 0;
    }
    .footer-logo {
        margin: 0 auto 1rem auto;
    }
    .contact-line {
        text-align: center;
    }
    .footer-left > p {
        text-align: center;
    }
}
