/*
 * Responsive AI informational website
 * Built from the supplied responsive layout template
 */

/* General Styles
--------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background: #f4f7fb;
}

/* Imports
--------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto+Slab:wght@600;700&display=swap');

/* Helper Classes
--------------------------------------------- */
.clearfix {
    display: block;
    clear: both;
}

/* Typography
--------------------------------------------- */
body {
    font-size: 18px;
    line-height: 1.7;
    color: #24323f;
    word-wrap: break-word !important;
    font-family: 'Open Sans', Arial, sans-serif;
}

p {
    margin: 0 0 1.4rem;
    padding: 0;
}

a {
    color: #155e75;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: #0f172a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #15314a;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 23px;
}

/* Sections
--------------------------------------------- */
#container {
    margin: 0 auto;
    max-width: 1200px;
    background: #ffffff;
    box-shadow: 0 0 24px rgba(15, 23, 42, 0.08);
}

/* Header
--------------------------------------------- */
header {
    width: 94%;
    padding: 4% 3%;
    background: linear-gradient(135deg, #0f3d5e, #155e75);
}

header #title {
    max-width: 900px;
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 12px;
}

.eyebrow {
    margin-bottom: 10px;
    color: #d5eef5;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tagline {
    max-width: 850px;
    color: #f3fbfd;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Navigation
--------------------------------------------- */
nav {
    width: 97%;
    background-color: #102f45;
    padding: 0 1.5%;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li {
    display: block;
}

nav ul li a {
    display: block;
    min-height: 44px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

nav ul li a:hover,
nav ul li a:focus {
    background: #dff4f7;
    color: #102f45;
    text-decoration: none;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

/* Content
--------------------------------------------- */
#content {
    float: left;
    box-sizing: border-box;
    padding: 3%;
    width: 70%;
}

.content-section {
    scroll-margin-top: 20px;
    margin-bottom: 48px;
}

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

.highlight {
    padding: 18px 20px;
    border-left: 5px solid #155e75;
    background: #edf8fa;
}

.info-card,
.tool-card {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #d7e2ea;
    border-radius: 10px;
    background: #fbfdff;
}

.info-card p:last-child,
.tool-card p:last-of-type {
    margin-bottom: 0;
}

.tool-card {
    border-top: 5px solid #155e75;
}

.button-link {
    display: inline-block;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #155e75;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover,
.button-link:focus {
    background: #0f3d5e;
    color: #ffffff;
    text-decoration: none;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.feature-list,
.sidebar-list {
    margin: 0 0 24px 1.25rem;
    list-style: disc;
}

.feature-list li,
.sidebar-list li {
    margin-bottom: 10px;
}

.button-center {
    text-align: center;
}

/* Sidebar
--------------------------------------------- */
aside {
    float: right;
    box-sizing: border-box;
    padding: 3%;
    width: 30%;
    background-color: #eef5f8;
    border-left: 1px solid #d7e2ea;
}

aside h2,
aside h3 {
    color: #0f3d5e;
}

.internal-links a {
    display: inline-block;
    min-height: 44px;
    padding: 8px 0;
    font-weight: 600;
}

/* Footer
--------------------------------------------- */
footer {
    width: 94%;
    padding: 3%;
    background-color: #102f45;
    border-top: 5px solid #155e75;
    color: #ffffff;
    text-align: center;
}

footer p {
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: #ffffff;
    font-weight: 700;
}

/* Tablet Media Query
--------------------------------------------- */
@media all and (max-width: 900px) {
    body {
        font-size: 17px;
        line-height: 1.65;
    }

    header #title {
        font-size: 40px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li a {
        padding: 14px 13px;
        font-size: 0.95rem;
    }

    #content,
    aside {
        float: none;
        width: 100%;
        padding: 4%;
    }

    aside {
        border-left: 0;
        border-top: 1px solid #d7e2ea;
    }

    .two-column {
        gap: 18px;
    }
}

/* Phone Media Query
--------------------------------------------- */
@media all and (max-width: 600px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    header {
        width: 90%;
        padding: 7% 5%;
    }

    header #title {
        font-size: 32px;
    }

    .tagline {
        font-size: 1rem;
    }

    nav {
        width: 100%;
        padding: 0;
    }

    nav ul {
        display: block;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    nav ul li:last-child {
        border-bottom: 0;
    }

    nav ul li a {
        width: auto;
        min-height: 48px;
        padding: 14px 20px;
        text-align: center;
        font-size: 1rem;
    }

    #content,
    aside {
        width: 90%;
        padding: 6% 5%;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 21px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .info-card,
    .tool-card {
        padding: 18px;
    }

    .button-link {
        display: block;
        min-height: 48px;
        text-align: center;
    }

    footer {
        width: 90%;
        padding: 6% 5%;
    }
}
