/* ==========================================
   AVENFORT SOLUTIONS
   Corporate Website Stylesheet
========================================== */

/* 1. GENERAL */

:root {
    --navy: #08244a;
    --blue: #1256b8;
    --blue-hover: #0c438f;
    --text: #243247;
    --muted: #64748b;
    --light: #f3f6fa;
    --border: #e5eaf0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

/* 2. HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 8px 8%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 3. NAVIGATION */

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 28px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--blue);
}

/* 4. HERO */

.hero {
    padding: 115px 8%;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #f5f8fc 100%);
    text-align: center;
}

.hero h1 {
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 22px;
}

.hero p {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 32px;
}

/* 5. BUTTONS */

.btn {
    display: inline-block;
    padding: 13px 26px;
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(18, 86, 184, 0.12);
    transition:
        background-color 0.3s,
        transform 0.3s;
}

.btn:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
}

/* 6. SHARED SECTION HEADINGS */

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    color: var(--navy);
    font-size: 36px;
    margin-bottom: 15px;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* 7. SERVICES */

.services {
    padding: 100px 8%;
    background-color: var(--white);
}

.services .section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 38px 32px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(8, 36, 74, 0.035);
    transition:
        border-color 0.3s,
        box-shadow 0.3s,
        transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #c7d8ef;
    box-shadow: 0 14px 30px rgba(8, 36, 74, 0.08);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background-color: #edf3fb;
    border-radius: 10px;
    margin-bottom: 25px;
}

.service-icon span {
    color: var(--blue);
    font-size: 18px;
    font-weight: 700;
}

.service-card h3 {
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

/* 8. AVENFORT OPERATIONS */

.software {
    padding: 105px 8%;
    background-color: var(--light);
}

.software .section-heading {
    max-width: 800px;
    margin: 0 auto 55px;
}

.software .section-heading h2 {
    color: var(--navy);
    font-size: 38px;
    letter-spacing: -0.5px;
}

.development-badge {
    display: inline-block;
    margin-top: 25px;
    padding: 8px 18px;
    background-color: #e4ebf3;
    color: var(--navy);
    border: 1px solid #d2dfed;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.software-card {
    padding: 36px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(8, 36, 74, 0.035);
    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.software-card:hover {
    transform: translateY(-5px);
    border-color: #c7d8ef;
    box-shadow: 0 14px 30px rgba(8, 36, 74, 0.08);
}

.software-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: #edf3fb;
    border-radius: 10px;
    margin-bottom: 22px;
}

.software-icon span {
    color: var(--blue);
    font-size: 18px;
    font-weight: 700;
}

.software-card h3 {
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 12px;
}

.software-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.software-action {
    text-align: center;
    max-width: 650px;
    margin: 50px auto 0;
}

.software-action p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 22px;
}

/* 9. ABOUT US */

.about {
    padding: 110px 8%;
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--navy);
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 20px;
}

.about-content .btn {
    margin-top: 12px;
}

.about-highlight {
    padding: 40px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.about-highlight h3 {
    color: var(--navy);
    font-size: 25px;
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.about-feature:last-child {
    margin-bottom: 0;
}

.about-feature span {
    color: var(--blue);
    font-size: 20px;
    font-weight: bold;
}

.about-feature h4 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 5px;
}

.about-feature p {
    color: var(--muted);
    font-size: 15px;
}

/* 10. CONTACT */

.contact {
    padding: 110px 8%;
    background-color: var(--light);
    text-align: center;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact .section-heading {
    max-width: 720px;
    margin: 0 auto 50px;
}

.contact .section-heading h2 {
    color: var(--navy);
    font-size: clamp(30px, 3vw, 42px);
    margin: 15px 0 20px;
}

.contact .section-heading p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.contact-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 45px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(8, 36, 74, 0.04);
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8e1ec;
    border-radius: 7px;
    background-color: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-color: var(--blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.contact-submit {
    width: 100%;
    border: none;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.contact-submit:disabled {
    background-color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.contact .form-notice {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 11. FOOTER */

footer {
    padding: 55px 8% 20px;
    background-color: var(--navy);
    color: var(--white);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #c8d5e5;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #91c7ff;
}

.footer-bottom {
    border-top: 1px solid #365575;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #c8d5e5;
    font-size: 13px;
}

/* 12. RESPONSIVE - TABLETS */

@media (max-width: 900px) {

    .services-container {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    header {
        padding-left: 5%;
        padding-right: 5%;
    }

    nav {
        gap: 16px;
    }
}

/* 13. RESPONSIVE - MOBILE */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 14px;
        padding: 16px 6%;
    }

    .logo-img {
        width: 140px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        padding: 75px 6%;
    }

    .hero p {
        font-size: 17px;
    }

    .services,
    .software,
    .about,
    .contact {
        padding: 75px 6%;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: 28px;
    }

    .software .section-heading h2 {
        font-size: 29px;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 25px;
    }

    .software-card {
        padding: 28px;
    }

    .about-highlight {
        padding: 25px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 15px;
    }
}

/* 14. SMALL MOBILE */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 30px;
    }

    .nav {
        gap: 10px 14px;
    }
}

/* 15. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .btn,
    .service-card,
    .software-card {
        transition: none;
    }
}

/* MOBILE NAVIGATION */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {

    header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    header nav.active {
        display: flex;
    }

    header nav a {
        padding: 14px 10px;
        border-top: 1px solid var(--border);
    }
}

/* MOBILE SECTION TEXT IMPROVEMENTS */

@media (max-width: 768px) {

    .section-heading p {
        font-size: 16px;
        line-height: 1.7;
        padding: 0 12px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

}

/* 16. COMPACT MOBILE DESIGN */

@media (max-width: 768px) {

    header {
        padding: 8px 5%;
    }

    .logo-img {
        width: 115px;
    }

    .hero {
        padding: 36px 5%;
    }

    .hero h1 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .services,
    .software,
    .about,
    .contact {
        padding: 36px 5%;
    }

    .section-heading,
    .services .section-heading,
    .software .section-heading,
    .contact .section-heading {
        margin-bottom: 24px;
    }

    .section-heading p {
        padding: 0;
        line-height: 1.6;
    }

    .section-label {
        margin-bottom: 8px;
    }

    .services-container,
    .software-grid {
        gap: 12px;
    }

    .service-card,
    .software-card {
        padding: 18px;
    }

    .service-icon,
    .software-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
    }

    .service-card h3,
    .software-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .service-card p,
    .software-card p {
        font-size: 15px;
        line-height: 1.5;
    }

    .development-badge {
        margin-top: 14px;
    }

    .software-action {
        margin-top: 24px;
    }

    .about-container {
        gap: 22px;
    }

    .about-content h2 {
        margin-bottom: 16px;
    }

    .about-content p {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .about-highlight {
        padding: 20px;
    }

    .about-highlight h3 {
        margin-bottom: 18px;
    }

    .about-feature {
        gap: 12px;
        margin-bottom: 16px;
    }

    .contact .section-heading h2 {
        font-size: 28px;
        margin: 8px 0 12px;
    }

    .contact-form-wrapper {
        padding: 20px 16px;
    }

    .contact-form {
        gap: 16px;
    }

    .form-group {
        gap: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    footer {
        padding: 28px 5% 16px;
    }

    .footer-container {
        gap: 18px;
        padding-bottom: 20px;
    }

    .footer-logo {
        width: 115px;
    }
}

/* TWO-COLUMN SOFTWARE GRID */

@media (min-width: 390px) and (max-width: 768px) {

    .software-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .software-card {
        padding: 14px;
        overflow-wrap: anywhere;
    }

    .software-card h3 {
        font-size: 16px;
    }
}