/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES */
:root {
    --dark: #1A1C29;
    --light: #F5F5F3;
    --accent: #C1121F;
    --text: #222;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 60px;
    --space-xl: 80px;
}

/* BASE */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 18px;
}

p {
    font-size: 15px;
    line-height: 1.6;
}

.services-grid,
.template-grid,
.process-grid {
    gap: var(--space-md);
}

.content-narrow {
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    margin-bottom: var(--space-sm);
}

.section-sub {
    margin-bottom: var(--space-md);
}

.container {
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
}

.final-cta {
    margin-top: var(--space-lg);
}

.section-sub {
    font-size: 15px;
    opacity: 0.7;
    max-width: 500px;
    margin: 10px auto 30px;
}

html {
    scroll-behavior: smooth;
}

/* HERO */

.hero-logo {
    margin-bottom: 60px;
}

.hero-logo img {
    max-width: 1000px;
    width: 100%;
}

.hero {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 42px;
}

.hero p {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.hero .btn {
    min-width: 180px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 14px 24px;
    margin: 8px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn.secondary {
    background: transparent;
    border: 2px solid white;
}

.template-card .btn {
    margin-top: 15px;
}

/* VALUE STRIP */
.value {
    background: #eaeaea;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: var(--space-md) 0;
}

.value-grid p {
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 18px;
}

.value-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.value-grid p::before {
    content: '✔ ';
    color: var(--accent);
    font-weight: bold;
}

/* SERVICES */
.services {
    gap: var(--space-md);
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.card {
    border: 1px solid #eee;
    padding: var(--space-md);
    border-radius: 6px;
    background: white;
    transition: 0.2s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.template {
    text-align: center;
    padding: 80px 0;
    background: #fafafa;
}

.section-sub {
    margin-top: 10px;
    opacity: 0.7;
}

/* GRID */
.template-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* CARD */
.template-card {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--space-sm);
}

.template-card h3 {
    margin-top: var(--space-sm);
    margin-bottom: 6px;
    font-size: 18px;
}

.template-card p {
    font-size: 14px;
    opacity: 0.7;
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.5;
}

/* MOCKUPS */
.template-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    max-height: 260px;
    /* controls preview size */
    margin-bottom: var(--space-sm);
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* key: crops nicely */
    display: block;
}

.template-image:hover img {
    transform: scale(1.01);
}

.template-image img {
    transition: 0.8s ease;
}

/* Process */
.process {
    background: var(--light);
    text-align: center;
}

.process-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.process-step {
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.process-step h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.process-step p {
    opacity: 0.7;
    font-size: 14px;
}

.final-cta {
    background: var(--dark);
    color: white;
    text-align: center;
    margin-top: 0;;
}

.final-cta h2 {
    max-width: 600px;
    margin: 0 auto 20px;
}

.contact {
    background: #fff;
}

.contact-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form button {
    cursor: pointer;
}

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.preview-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.footer {
    background: var(--dark);
    color: white;
    padding: var(--space-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer h3,
.footer h4 {
    margin-bottom: 10px;
}

.footer p,
.footer li {
    font-size: 14px;
    opacity: 0.8;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-sm);
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* TABLET */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .value-grid {
        flex-direction: row;
        justify-content: center;
        gap: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero {
        padding: 120px 20px;
    }

    h2 {
        font-size: 32px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .template-grid {
    grid-template-columns: repeat(3, 1fr);
    }
}