:root {
    --black: #000000;
    --white: #ffffff;
    --stroke: 1.5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier Prime', monospace;
    background-color: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: none;
}

.border-standard {
    border: var(--stroke) solid var(--black);
    border-radius: 0px;
}

#global-nav {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: var(--stroke) solid var(--black);
}

.logo-container svg {
    height: 120px;
    width: auto;
    display: block;
}

/* Main Layout Architecture */
main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero Section */
#hero {
    padding: 5rem 2rem;
    text-align: center;
}

#hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Call To Action Buttons */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.button {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: var(--stroke) solid var(--black);
}

.button.primary {
    background-color: var(--black);
    color: var(--white);
}

.button.primary:hover {
    background-color: var(--white);
    color: var(--black);
}

.button.secondary {
    background-color: var(--white);
    color: var(--black);
}

.button.secondary:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Framework Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-item {
    padding: 2rem;
}

.grid-item h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--stroke) solid var(--black);
}

.grid-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Scaling for Mobile Terminals */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    #hero h1 {
        font-size: 1.8rem;
    }
    .action-bar {
        flex-direction: column;
    }
}

/* Process Section */
.section-header {
    padding: 2rem;
    text-align: center;
}

.border-bottom {
    border-bottom: var(--stroke) solid var(--black);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.process-step {
    padding: 2rem;
    border-bottom: var(--stroke) solid var(--black);
    border-right: var(--stroke) solid var(--black);
}

.process-step:nth-child(even) {
    border-right: none;
}

/* Removes bottom border from the last two items in the 2-column grid */
.process-step:nth-last-child(-n+2) {
    border-bottom: none;
}

.step-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive constraints for the process grid */
@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process-step {
        border-right: none;
    }
    .process-step:nth-last-child(-n+2) {
        border-bottom: var(--stroke) solid var(--black);
    }
    .process-step:last-child {
        border-bottom: none;
    }
}

/* Legal Footer */
#legal-footer {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col p strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive constraints for footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Verification Portal Styles */
#verify-hero {
    padding: 4rem 2rem;
    text-align: center;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#cert-input {
    padding: 1rem;
    width: 100%;
    max-width: 400px;
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    outline: none;
}

#cert-input:focus {
    background-color: #f0f0f0;
}

#result-display {
    margin-top: 3rem;
    padding: 2rem;
    text-align: left;
    background-color: #f9f9f9;
}

#result-display p {
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .search-container {
        flex-direction: column;
    }
    #cert-input {
        max-width: 100%;
    }
}