
/* ===================================
   Litho-Craft Printing Website
   Main External Stylesheet
   =================================== */

/* General page settings */
* {
    box-sizing: border-box;
}

:root {
    --navy: #17365d;
    --blue: #245a91;
    --light-blue: #eaf2f8;
    --red: #b52b32;
    --dark: #252b33;
    --gray: #626b75;
    --light-gray: #f4f6f8;
    --white: #ffffff;
    --border: #dce2e8;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
}

a:hover {
    color: var(--red);
}

/* Header and company branding */
header {
    background-color: var(--white);
    border-bottom: 4px solid var(--red);
}

.header-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 22px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1.2;
}

.brand p {
    margin: 5px 0 0;
    color: var(--gray);
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--navy);
}

nav a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--white);
    background-color: var(--blue);
}

/* Main content */
main {
    max-width: 1150px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

section {
    margin-bottom: 42px;
}

h2,
h3 {
    color: var(--navy);
    line-height: 1.3;
}

h2 {
    margin-top: 0;
    font-size: 2rem;
}

h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

p {
    margin-top: 0;
}

/* Small headings above page titles */
.eyebrow {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Homepage hero */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--light-blue);
}

.hero h2 {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.hero p {
    color: #46515d;
}

.hero img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
}

/* Buttons and call-to-action links */
.button,
button {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 5px;
    background-color: var(--red);
    color: var(--white);
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover,
button:hover {
    background-color: #8f2027;
    color: var(--white);
}

/* Page introductions */
.page-intro {
    max-width: 800px;
    margin: 0 auto 35px;
    text-align: center;
}

.page-intro p:last-child {
    color: var(--gray);
}

/* Homepage and printing service card grids
   Supports the different class names in your HTML */
.cards,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Individual cards */
.card,
.Card,
.class,
.service-card,
.cards article {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.Card:hover,
.class:hover,
.service-card:hover,
.cards article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Images inside cards */
.card img,
.Card img,
.class img,
.service-card img,
.cards article img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

/* Text inside cards */
.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    margin-bottom: 15px;
    color: var(--gray);
}

/* Links inside cards */
.card-content a {
    font-weight: bold;
    text-decoration: none;
}

.card-content a:hover {
    text-decoration: underline;
}

/* Homepage section heading */
.section-heading {
    margin-bottom: 25px;
    text-align: center;
}

/* Highlighted information sections */
.feature-band,
.info-section {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--light-blue);
}

.feature-band {
    text-align: center;
}

.feature-band p {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

/* Office and school supplies gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.gallery figure {
    overflow: hidden;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.gallery figcaption {
    padding: 15px;
    color: var(--gray);
}

.gallery figcaption strong {
    color: var(--navy);
}

/* Contact page columns */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 35px;
}

.contact-details {
    padding: 25px;
    border-radius: 10px;
    background-color: var(--light-blue);
}

.contact-details p {
    margin-bottom: 22px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details a {
    font-weight: bold;
}

/* Contact form */
.contact-form {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin: 15px 0 6px;
    color: var(--navy);
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b9c3ce;
    border-radius: 5px;
    background-color: var(--white);
    color: var(--dark);
    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid #c9e1f5;
    border-color: var(--blue);
}

.contact-form button {
    margin-top: 22px;
}

/* Footer */
.footer-wrap {
    padding: 30px 24px;
    background-color: var(--navy);
}

footer {
    max-width: 1150px;
    margin: 0 auto;
    color: var(--white);
    text-align: center;
}

footer p {
    margin: 5px 0;
}

footer strong {
    font-size: 1.1rem;
}

/* Tablet layout */
@media screen and (max-width: 900px) {
    .cards,
    .card-grid,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero img {
        max-height: 320px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile layout: 480px and below */
@media screen and (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .header-inner {
        padding: 16px;
    }

    .brand {
        gap: 12px;
    }

    .brand img {
        width: 55px;
        height: 55px;
    }

    .brand h1 {
        font-size: 1.35rem;
    }

    .brand p {
        font-size: 0.85rem;
    }

    nav {
        flex-direction: column;
        gap: 4px;
        padding: 10px 16px;
    }

    nav a {
        padding: 9px;
        text-align: center;
    }

    main {
        padding: 22px 16px 35px;
    }

    h2 {
        font-size: 1.65rem;
    }

    .hero {
        gap: 20px;
        padding: 20px;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    .cards,
    .card-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .card img,
    .Card img,
    .class img,
    .service-card img,
    .cards article img {
        height: 200px;
    }

    .gallery img {
        height: 220px;
    }

    .contact-details,
    .contact-form,
    .info-section,
    .feature-band {
        padding: 20px;
    }

    .footer-wrap {
        padding: 24px 16px;
    }
}
