/* ===== Shared CSS — manicode.com ===== */

/* --- Design Tokens --- */
:root {
    --color-primary-a11y: #f52830;
    --color-secondary: #242424;
    --color-blk: #000;
    --color-wht: #fff;
    --color-primary-header-bar: #da0a12;
    --brand-red: #E62A33;
    --brand-charcoal: #111;
    --text-light: #E5E5E5;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* --- Font Faces --- */
@font-face {
    font-family: "myriad-pro-condensed";
    src: url("fonts/RobotoCondensed-Bold.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "myriad-pro-condensed";
    src: url("fonts/RobotoCondensed-Light.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "myriad-pro";
    src: url("fonts/Roboto-Bold.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "myriad-pro";
    src: url("fonts/Roboto-Light.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 300;
}

/* --- Base Reset --- */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    font-size: clamp(14px, 2vw, 18px);
    background-color: var(--color-blk);
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: "myriad-pro-condensed", sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "myriad-pro-condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    color: var(--color-wht);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

p, li {
    color: var(--color-wht);
    font-family: "myriad-pro", sans-serif;
    font-weight: 300;
    font-style: normal;
}

p { font-size: 2rem; }

ul { list-style-type: none; }
img { max-width: 100%; }
a { text-decoration: none; }

.wrapper { padding: 0; }

.bold-text { font-weight: 700; }

/* --- Shared Components --- */
.icon {
    display: inline !important;
    position: relative;
    top: .2rem;
    width: 1rem;
}

.phone {
    position: relative;
    left: .1rem;
}

.primary-contact-bar {
    background-color: var(--color-primary-header-bar);
    color: var(--color-wht);
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: var(--space-md);
    font-size: 1rem;
}

.primary-contact-bar ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    font-size: 1rem;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.primary-contact-bar ul a {
    color: var(--color-wht);
}

.header-bar {
    background-color: #000;
    width: 100%;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bar .logo {
    height: 6rem;
}

.header-bar .logo img {
    height: 100%;
    width: auto;
    display: block;
}

.class-highlights {
    background: url("../images/red-code.jpg") repeat-x;
    width: 100%;
    background-position: bottom;
    background-size: cover;
    background-blend-mode: multiply;
    background-color: var(--color-primary-a11y);
    text-align: center;
}

.class-highlights p {
    max-width: 40rem;
    margin: 0 auto var(--space-xl);
    font-family: "myriad-pro-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 0.9em;
}

.class-highlights span {
    font-family: "myriad-pro-condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.class-highlights a {
    text-decoration: none;
}

.catalog-btn {
    padding: .6rem 1.5rem;
    background-color: var(--color-blk);
    border: .3rem solid var(--color-primary-a11y);
    color: var(--color-wht);
    font-size: 2rem;
    font-family: "myriad-pro-condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: .1em;
    display: inline-block;
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.catalog-btn:hover,
.catalog-btn:focus {
    background-color: var(--color-primary-a11y);
    border: .3rem solid var(--color-blk);
}

.about {
    background: url("../images/laptop.jpg") no-repeat;
    background-size: cover;
    width: 100%;
    height: auto;
    padding: var(--space-2xl);
    background-color: #c83b36;
}

.about .about-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about .about-wrapper .about-content {
    width: 66.6%;
}

.about .about-wrapper .about-content h2 {
    margin-bottom: var(--space-md);
}

.about .about-wrapper .about-content p {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
}

.about .about-wrapper .about-content img {
    width: 7.5rem;
    margin-bottom: var(--space-md);
}

.about .about-wrapper .about-content ul {
    max-width: 55rem;
    display: flex;
    justify-content: space-between;
}

.about .about-wrapper .about-content li {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-transform: uppercase;
    padding: var(--space-xs);
}

.instructors {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: var(--color-blk);
}

.instructors .jim > img {
    width: 100%;
}

.instructors .instructor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.instructor__bio {
    padding: var(--space-md);
}

.instructors .instructor img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructors .instructor p {
    color: var(--color-wht);
    font-size: 1.2em;
    line-height: 1.4em;
}

.footer {
    background-color: var(--color-blk);
    text-align: left;
    color: var(--color-wht);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
}

.footer h2 {
    font-family: "myriad-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* --- Accessibility Utilities --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-blk);
    color: var(--color-wht);
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    font-family: "myriad-pro", sans-serif;
    font-size: 1rem;
    text-decoration: underline;
}

.skip-link:focus {
    top: 0;
}

/* --- Focus-Visible --- */
:focus-visible {
    outline: 2px solid var(--color-primary-a11y);
    outline-offset: 2px;
}

/* --- Max-width Container at 1440px --- */
@media screen and (min-width: 1440px) {
    html {
        font-size: 28.8px;
    }
    .container {
        max-width: 1440px;
        margin: 0 auto;
    }
}

/* --- Tablet Breakpoint (768–1024px) --- */
@media screen and (max-width: 1024px) {
    .about .about-wrapper .about-content {
        width: 80%;
    }
    .instructors .instructor {
        grid-template-columns: 1fr;
    }
    .about .about-wrapper .about-content ul {
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: center;
    }
}

/* --- Mobile Breakpoint (< 768px) --- */
@media screen and (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    p { font-size: 1.2rem; }

    .primary-contact-bar {
        padding: var(--space-sm);
    }
    .primary-contact-bar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }

    .header-bar .logo {
        height: 4rem;
    }

    .class-highlights p {
        font-size: 0.85em;
        padding: 0 var(--space-md);
    }

    .catalog-btn {
        font-size: 1.3rem;
        padding: .4rem 1rem;
    }

    .about {
        padding: var(--space-lg);
    }
    .about .about-wrapper {
        justify-content: center;
    }
    .about .about-wrapper .about-content {
        width: 100%;
    }
    .about .about-wrapper .about-content ul {
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: center;
    }

    .instructors .instructor {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
}
