/* MAIN */
/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1A1C29;
    color: #F5F5F3;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    max-width: 900px;
    margin: 0 auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #F5F5F3;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background: #C1121F;
    color: #F5F5F3;
}

.cookie-btn.accept:hover {
    opacity: 0.9;
}

.cookie-btn.reject {
    background: transparent;
    border: 1px solid rgba(245, 245, 243, 0.2);
    color: #F5F5F3;
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* MOBILE */

@media (max-width: 768px) {

    .cookie-banner {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 16px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        width: 100%;
    }
}

* {
    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 {
    padding-bottom: 70px;
}

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;
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--dark);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--space-sm);
}

/* MOBILE NAV */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.mobile-nav a {
    text-decoration: none;
    color: white;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: 0.2s ease;
}

.mobile-nav a span {
    font-size: 18px;
    margin-bottom: 3px;
}

.mobile-nav a:hover {
    opacity: 1;
    color: var(--accent);
}

/* LOGO */
.nav-logo a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* LINKS */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* HERO */
.hero-logo {
    margin-bottom: 60px;
}

.hero-logo img {
    max-width: 700px;
    width: 100%;
}

.hero {
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 42px;
}

.hero p {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.hero .btn {
    min-width: 180px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-carousel {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding: 0;
}

.hero-slide {
    display: none;
    animation: heroFade .8s ease-in-out;
}

.hero-slide.active {
    display: block;
}

.configurator-hero-slide {
    background: var(--dark);
    color: white;
    padding: 40px 70px;
}

.configurator-hero-slide.active {
    display: block;
}

@keyframes heroFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.hero-slide {
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.configurator-hero-slide.active {
    display: block;
}

.configurator-hero-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.configurator-hero-content {
    flex: 0 0 42%;
    max-width: 420px;
}

.eyebrow {
    color: #1fc85b;
    font-weight: 700;
    margin-bottom: 10px;
}

.configurator-hero-content h1 {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    margin-bottom: 14px;
}

.hero-copy {
    font-size: 18px;
    line-height: 1.35;
    max-width: 430px;
    margin-bottom: 18px;
}

.configurator-hero-image {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.configurator-hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    transform: rotate(2deg);
    box-shadow: 0 25px 45px rgba(0, 0, 0, .35);
    margin-top: -20px;
}

.hero-feature-row {
    display: flex;
    gap: 34px;
    margin-top: 18px;
}

.hero-feature-row span {
    display: grid;
    gap: 4px;
    font-size: 16px;
}

.hero-feature-row small {
    color: #c8ccd6;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(17, 21, 34, 0.65);
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.hero-carousel-btn.prev {
    left: 24px;
}

.hero-carousel-btn.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dot.active {
    background: #d80d1e;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 35px;
}

/* 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;
}

.location {
    text-align: center;
    padding: 50px 0 20px;
    margin-bottom: -80px;
}

/* LOCATION */
.location p {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 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;
}


/* ABOUT PAGE */

.about-section {
    padding: var(--space-xl) 0;
}

.narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* spacing between paragraphs */
.about-section p {
    margin-bottom: 15px;
}

.about-text {
    max-width: 520px;
}

.about-text p {
    font-size: 16px;
}

/* subtle section variation */
.about-section.alt {
    background: #fafafa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    margin-bottom: var(--space-sm);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%) brightness(0.9);
    width: 100%;
    border-radius: 10px;
}

/* DESKTOP */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-text {
        text-align: left;
        margin: 0;
    }

    .about-section.alt .about-text {
        order: 2;
    }

    .about-section.alt .about-image {
        order: 1;
    }
}

/* PROJECTS PAGE */

.projects {
    padding: var(--space-xl) 0;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* CARD */
.project-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* CONTENT */
.project-content {
    padding: 15px;
    text-align: left;
}

.project-content h3 {
    margin-bottom: 5px;
}

.project-content p {
    font-size: 14px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PRODUCT PAGE */

.project-intro {
    text-align: center;
    padding: var(--space-lg) 0 var(--space-sm);
}

.project-tag {
    color: var(--accent);
    font-size: 12px;
    margin-bottom: 10px;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-split {
    display: grid;
    gap: 40px;
}

.project-image img {
    width: 80%;
    height: auto;
}

.project-section.alt {
    background: #f5f5f5;
}

.feature-grid {
    display: grid;
    gap: 20px;
}

.feature-box {
    border: 1px solid #eee;
    padding: var(--space-md);
    border-radius: 8px;
    background: white;
}

.feature-box h3 {
    margin-bottom: 5px;
}

.sub-heading {
    margin-top: 25px;
    font-size: 20px;
}

.project-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.project-text {
    max-width: 500px;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* PRODUCT CTA */

.project-cta {
    margin-top: 30px;
    padding-top: 20px;
}

.project-cta .section-sub {
    margin: 10px 0 30px;
    max-width: 500px;
}

.project-cta .btn {
    margin-left: 0;
}

@media (min-width: 768px) {
    .project-split {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* BLOG PAGE */

.blog {
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.blog-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-content {
    padding: 15px;
}

.blog-meta {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 5px;
}

.blog-content h3 {
    margin-bottom: 8px;
}

.blog-content p {
    font-size: 14px;
    opacity: 0.7;
}

/* BLOG POST */

.blog-post {
    padding: var(--space-xl) 0;
}

.blog-header {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.blog-header h1 {
    margin: 10px 0 15px;
    font-size: 36px;
}

.blog-sub {
    opacity: 0.7;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.blog-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 22px;
    font-size: 16px;
    opacity: 0.85;
}

.blog-content h2 {
    margin-top: 50px;
    /* space ABOVE heading */
    margin-bottom: 15px;
    /* space BELOW heading */
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

.blog-content h2:first-of-type {
    margin-top: 30px;
}

.blog-meta {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-featured {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
}

.blog-featured img {
    width: 100%;
    display: block;
}

.blog-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 2rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
}

.blog-content li::before {
    content: "✓";
    margin-right: 0.75rem;
    color: #C1121F;
    font-weight: bold;
}

/* CTA */

.blog-cta {
    max-width: 700px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: left;
}

.blog-cta p {
    margin: 10px 0 20px;
}

/* PRIVACY POLICY */

.small-hero {
    min-height: auto;
    padding: 100px 20px;
}

.privacy-policy {
    background: #fafafa;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.policy-block {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: var(--space-md);
    transition: 0.2s ease;
}

.policy-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.policy-block h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.policy-block p,
.policy-block li {
    color: var(--text);
    opacity: 0.85;
    line-height: 1.8;
    font-size: 15px;
}

.policy-block ul {
    margin-top: 15px;
    padding-left: 20px;
}

.policy-block li {
    margin-bottom: 10px;
}

.policy-block a {
    color: var(--accent);
    text-decoration: none;
}

.policy-block a:hover {
    opacity: 0.7;
}

.configurator-info {
    padding-top: 20px;
}

/* 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);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-nav {
        display: none;
    }

    .nav-logo a {
        white-space: nowrap;
        font-size: 15px;
    }

    @media (max-width: 768px) {

    .configurator-hero-layout {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

        padding: 40px 20px;
    }

    .configurator-hero-image {
        display: none;
    }

    .configurator-hero-content {
        max-width: 100%;
        margin: 0;
    }

    .hero-feature-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    @media (max-width:768px){

    .configurator-hero-content h1{
        font-size:2rem;
    }

    .hero-copy{
        font-size:1rem;
    }

}

}

}

/* MOBILE NAV */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-inner {
        justify-content: center;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero {
        padding: 70px 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);
    }

    @media (min-width: 1024px) {
        .blog-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}