/* Ace Printing & Publishing Inc. — U.S. Lithographic Print Shop Design */

:root {
    --ink: #0A0A0A;
    --ink-soft: #1A1A1A;
    --ink-muted: #4A4A4A;
    --ink-light: #7A7A7A;
    --paper: #F7F6F4;
    --paper-warm: #EEECE8;
    --white: #FFFFFF;
    --c: #00A8E8;
    --m: #E4007C;
    --y: #FFC20A;
    --k: #111111;
    --c-muted: rgba(0, 168, 232, 0.12);
    --m-muted: rgba(228, 0, 124, 0.1);
    --border: #E4E2DE;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.05);
    --shadow: 0 8px 28px rgba(10, 10, 10, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 10, 10, 0.12);
    --transition: 0.22s ease;
    --font: "Source Sans 3", system-ui, sans-serif;
    --font-display: "Barlow Condensed", "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

a { text-decoration: none; color: inherit; transition: color var(--transition); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: 0.02em;
    font-weight: 700;
    text-transform: uppercase;
}

img { max-width: 100%; display: block; }

/* Top bar */
.top-bar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0;
    flex-wrap: wrap;
}

.top-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-links a:hover { color: var(--y); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 244, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--white);
    background: linear-gradient(135deg, var(--c) 0%, var(--m) 55%, var(--y) 100%);
    border-radius: var(--radius);
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.1;
}

.brand-tagline {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--m); }

.nav-cta {
    background: var(--ink) !important;
    color: var(--white) !important;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
}

.nav-cta:hover { background: var(--m) !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 650;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
}

.btn-primary:hover { background: var(--m); }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--ink);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

/* Hero */
.hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: flex-end;
    padding: 5rem 0 4.5rem;
    background:
        linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 48%, rgba(10, 10, 10, 0.45) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 168, 232, 0.35), transparent 45%),
        radial-gradient(ellipse at 90% 80%, rgba(228, 0, 124, 0.28), transparent 40%),
        radial-gradient(ellipse at 60% 60%, rgba(255, 194, 10, 0.18), transparent 35%),
        linear-gradient(160deg, #1a1a1a, #0a0a0a);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.02) 48px,
            rgba(255, 255, 255, 0.02) 49px
        );
    pointer-events: none;
}

.hero-cmyk {
    position: absolute;
    top: 2.5rem;
    right: 8%;
    display: flex;
    gap: 0.55rem;
    z-index: 1;
}

.hero-cmyk span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    color: var(--white);
}

.hero-cmyk .dot-c { background: var(--c); }
.hero-cmyk .dot-m { background: var(--m); }
.hero-cmyk .dot-y { background: var(--y); color: var(--ink); }
.hero-cmyk .dot-k { background: #222; }

.hero-inner { position: relative; z-index: 2; max-width: 640px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--y);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 48ch;
    margin-bottom: 1.75rem;
    font-weight: 400;
    text-transform: none;
    font-family: var(--font);
    letter-spacing: 0;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Trust bar */
.trust-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.trust-item span {
    font-size: 0.82rem;
    color: var(--ink-muted);
}

/* Sections */
section { padding: 4.5rem 0; }

.section-head {
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--ink-muted);
    font-size: 1.02rem;
}

.bg-paper { background: var(--paper); }
.bg-ink {
    background: var(--ink-soft);
    color: var(--white);
}

.bg-ink .section-head p { color: rgba(255, 255, 255, 0.7); }
.bg-ink .eyebrow { color: var(--y); }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--ink);
    padding: 1.6rem 1.4rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:nth-child(1) { border-top-color: var(--c); }
.service-card:nth-child(2) { border-top-color: var(--m); }
.service-card:nth-child(3) { border-top-color: var(--y); }
.service-card:nth-child(4) { border-top-color: var(--c); }
.service-card:nth-child(5) { border-top-color: var(--m); }
.service-card:nth-child(6) { border-top-color: var(--k); }

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.94rem;
    color: var(--ink-muted);
    text-transform: none;
    font-family: var(--font);
    letter-spacing: 0;
    font-weight: 400;
    line-height: 1.65;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.about-copy p {
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-panel {
    background: var(--ink);
    color: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.about-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c), var(--m), var(--y), var(--k));
}

.about-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--y);
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-list li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: none;
    font-family: var(--font);
    letter-spacing: 0;
    font-weight: 400;
}

.about-list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--c);
}

.about-list li:nth-child(2)::before { background: var(--m); }
.about-list li:nth-child(3)::before { background: var(--y); }
.about-list li:nth-child(4)::before { background: #888; }

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    padding: 1.5rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.why-card h3 {
    font-size: 1.2rem;
    margin: 0.85rem 0 0.5rem;
    color: var(--white);
}

.why-card p {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.68);
    text-transform: none;
    font-family: var(--font);
    letter-spacing: 0;
    font-weight: 400;
}

.why-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--y);
    letter-spacing: 0.06em;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: 0.75rem; }

.contact-info > p {
    color: var(--ink-muted);
    margin-bottom: 1.75rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.contact-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.02rem;
}

.contact-item a:hover { color: var(--m); }

.contact-form {
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    margin-bottom: 0.35rem;
    color: var(--ink-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--ink);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.consent {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0.5rem 0 1.15rem;
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.consent a { color: var(--m); text-decoration: underline; }

.form-note {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: var(--c);
    font-weight: 600;
    min-height: 1.3em;
}

/* Legal blocks */
.legal-section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section p,
.legal-section li {
    color: var(--ink-muted);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand .brand-name { color: var(--white); margin-bottom: 0.75rem; }

.footer-brand p {
    font-size: 0.9rem;
    max-width: 36ch;
    line-height: 1.65;
}

.footer-col h4 {
    color: var(--y);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.footer-bottom a:hover { color: var(--y); }

/* Motion */
@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-dot {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

.hero-inner { animation: rise-in 0.7s ease both; }
.hero-cmyk span { animation: fade-dot 0.5s ease both; }
.hero-cmyk span:nth-child(1) { animation-delay: 0.15s; }
.hero-cmyk span:nth-child(2) { animation-delay: 0.25s; }
.hero-cmyk span:nth-child(3) { animation-delay: 0.35s; }
.hero-cmyk span:nth-child(4) { animation-delay: 0.45s; }
.service-card { animation: rise-in 0.55s ease both; }

@media (prefers-reduced-motion: reduce) {
    .hero-inner,
    .hero-cmyk span,
    .service-card { animation: none; }
    html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
    .trust-grid,
    .services-grid,
    .why-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-cmyk { right: 5%; top: 1.5rem; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 4%;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

    .nav-links.open { display: flex; }

    .nav-links li { border-top: 1px solid var(--border); }

    .nav-links a {
        display: block;
        padding: 0.85rem 0.25rem;
    }

    .nav-cta {
        text-align: center;
        margin: 0.5rem 0 0.25rem;
    }

    .trust-grid,
    .services-grid,
    .why-grid,
    .about-grid,
    .contact-grid,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 4.5rem 0 3.5rem;
        align-items: center;
    }

    .hero-cmyk {
        position: static;
        margin-bottom: 1.25rem;
    }

    section { padding: 3.5rem 0; }
}
