:root {
    --brand-primary: #C8102E; /* red — replace with exact hex from your logo if needed */
    --brand-dark: #000000; /* black */
    --brand-accent: #ffffff; /* white */
    --text-muted: #cfcfcf;
    --site-max-width: 1200px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
    background: var(--brand-accent);
    margin: 0;
}

/* header */
/* increased header padding/height for better presence */
.site-header .navbar {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-primary));
    padding: 1.0rem 0;
    border-bottom: 4px solid rgba(255,255,255,0.03);
    min-height: 88px;
}

/* brand block next to logo */
.brand .brand-title {
    font-weight: 800;
    color: var(--brand-accent);
    font-size: 1.05rem;
    line-height: 1;
}

.brand .brand-tagline {
    font-size: .75rem;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
    letter-spacing: .02em;
}

/* header CTA */
.header-cta .btn-outline-light {
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

    .header-cta .btn-outline-light:hover {
        background: rgba(255,255,255,0.06);
        color: var(--brand-accent);
    }

/* navbar links */
.navbar .nav-link {
    color: rgba(255,255,255,0.95);
}

    .navbar .nav-link:hover {
        color: var(--brand-primary);
    }

    .navbar .nav-link.active {
        color: var(--brand-primary);
        font-weight: 600;
    }

/* logo */
.logo {
    height: 64px; /* larger to match increased header height */
    width: auto;
    display: inline-block;
    object-fit: contain;
    background: transparent; /* ensure no CSS background */
    mix-blend-mode: normal;
}

/* center main sections and add top spacing for separation */
.main-section {
    max-width: var(--site-max-width);
    margin: 2.5rem auto;
    padding-top: 0.5rem;
}

    /* center section headings and spacing */
    .main-section h2,
    #produtos > .d-flex > h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

/* hero */
.hero {
    max-width: var(--site-max-width);
    margin: 0 auto;
    background: var(--brand-dark);
    color: var(--brand-accent);
    padding: 4rem 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(0,0,0,0.12), rgba(200,16,46,0.05));
        pointer-events: none;
    }

    .hero .lead {
        color: rgba(255,255,255,0.9);
    }

    .hero .btn-primary {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        color: var(--brand-accent);
        box-shadow: none;
    }

    .hero .btn-outline-light {
        color: #fff;
        border-color: rgba(255,255,255,0.14);
    }

/* Justify "Sobre" text */
#sobre .col-md-9 p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
/* Sobre image */
.sobe-img {
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* product gallery */
.product-search input.form-control {
    min-width: 220px;
}

.product-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .product-card .product-img {
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

.product-meta {
    font-size: 0.85rem;
}

.product-badges .badge {
    font-size: 0.75rem;
}

/* how we work */
.how-card {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,250,1));
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.how-step {
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

/* testimonials */
#testimonials .card {
    border: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* contact form area */
.contact-form {
    background: var(--brand-accent);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,0.04);
}

    .contact-form .form-control {
        border-radius: 6px;
        padding: .6rem;
        border: 1px solid #e6e6e6;
        /* room for right-side icon */
        padding-right: 44px;
        background-repeat: no-repeat;
        background-position: right 12px center;
    }

    .contact-form label {
        font-weight: 600;
        color: #222;
    }

    .contact-form .btn-primary {
        background: var(--brand-primary);
        border-color: var(--brand-primary);
        color: var(--brand-accent);
    }

    /* validation icons and colors (green check / red X) */
    /* green check (is-valid) */
    .contact-form .form-control.is-valid {
        border-color: #28a745;
        box-shadow: 0 0 0 .15rem rgba(40,167,69,0.12);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'><path d='M13.485 1.929a1 1 0 0 1 0 1.414L6.414 10.414a1 1 0 0 1-1.414 0L2.515 7.929a1 1 0 1 1 1.414-1.414L6 8.586l6.071-6.071a1 1 0 0 1 1.414 0z'/></svg>");
    }

    /* red X (is-invalid) */
    .contact-form .form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 .15rem rgba(220,53,69,0.12);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'><path d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707 5.354 11.354a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/></svg>");
    }

/* scroll-to-top button */
.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    transition: opacity .2s ease, transform .15s ease;
    opacity: 0;
    transform: translateY(8px);
}

    .scroll-top.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-top.d-none {
        display: none !important;
    }

/* footer */
.site-footer {
    background: var(--brand-dark);
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 18px;
    padding-bottom: 18px;
}

    /* social icon in footer */
    .site-footer .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        color: var(--brand-accent);
        opacity: 0.95;
        text-decoration: none;
    }

        .site-footer .social-link:hover {
            opacity: 1;
            transform: translateY(-2px);
        }

/* small UI tweaks */
.navbar-toggler {
    border-color: rgba(255,255,255,0.12);
}

.navbar-toggler-icon {
    filter: invert(1) contrast(2);
}

/* responsive tweaks */
@media (max-width: 991.98px) {
    .logo {
        height: 56px;
    }

    .brand .brand-tagline {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 2rem 1rem;
    }
}

/* add at end of file or inside appropriate section */
.contact-info {
    text-align: center; /* center block in column */
}

.contact-info-inner {
    display: inline-block; /* allow centering while keeping left-aligned lines */
    text-align: left;
    min-width: 320px; /* ensures labels align at same point; adjust as needed */
    max-width: 90%;
}

/* label/value split so all values start at same column */
.contact-info .ci-label {
    display: inline-block;
    width: 140px; /* label column width — adjust to fit longest label */
    font-weight: 600;
}

.contact-info .ci-value {
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 140px);
    word-wrap: break-word;
}

/* responsive: reduce label width on small screens */
@media (max-width: 576px) {
    .contact-info-inner {
        min-width: 0;
    }

    .contact-info .ci-label {
        width: 110px;
    }

    .contact-info .ci-value {
        max-width: calc(100% - 110px);
    }
}

/* small numeric "Uni" input for product cards */
.uni-input {
    width: 64px;
    max-width: 64px;
    min-width: 48px;
    padding: .25rem .35rem;
    font-size: .85rem;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}

/* a bit smaller on very small screens */
@media (max-width: 576px) {
    .uni-input {
        width: 52px;
        max-width: 52px;
    }
}

/* Validation visuals: green check for valid, red for invalid (applies to contact form) */
.contact-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 .15rem rgba(40,167,69,0.12);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'><path d='M13.485 1.929a1 1 0 0 1 0 1.414L6.414 10.414a1 1 0 0 1-1.414 0L2.515 7.929a1 1 0 1 1 1.414-1.414L6 8.586l6.071-6.071a1 1 0 0 1 1.414 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 .15rem rgba(220,53,69,0.12);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'><path d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707 5.354 11.354a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.lightbox-content {
    position: relative;
    z-index: 1081;
    max-width: 92%;
    max-height: 84%;
    width: auto;
    padding: .75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: calc(84vh - 64px);
        border-radius: 6px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    }

/* Lightbox close button - explicit SVG icon, high contrast and focus styles */
.lightbox-close {
    position: absolute;
    right: .5rem;
    top: .5rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0,0,0,0.55); /* dark translucent so white icon shows */
    color: #fff;
    border: none;
    z-index: 1082;
    cursor: pointer;
}

    .lightbox-close svg {
        width: 18px;
        height: 18px;
        display: block;
        fill: currentColor; /* uses color: #fff */
    }

    .lightbox-close:focus {
        outline: 2px solid rgba(255,255,255,0.18);
        box-shadow: 0 0 0 .12rem rgba(255,255,255,0.06);
    }

/* make sure close button remains on top of image content */
.lightbox-content {
    z-index: 1081;
    position: relative;
}

/* optional: slightly lighten backdrop on hover of close */
.lightbox-close:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-1px);
}

/* responsive tweak */
@media (max-width: 576px) {
    .lightbox-content {
        padding: .5rem;
    }

    .lightbox-close {
        width: 32px;
        height: 32px;
    }
}

/*Cookies*/
/*.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    z-index: 9999;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}*/

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.cookie-content h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.cookie-content p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-buttons button {
    flex: 1;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Accept button */
#accept-cookies {
    background: var(--brand-primary);
    color: #ffffff;
    border: 1px solid #176b49;
}

#accept-cookies:hover {
    background: #CD0727;
}

/* Reject button */
#reject-cookies {
    background: #ffffff;
    color: #222222;
    border: 1px solid #cccccc;
}

#reject-cookies:hover {
    background: #f3f3f3;
}

/* Mobile layout */
@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 20px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-buttons button {
        width: 100%;
        flex: none;
        min-height: 48px;
        font-size: 16px;
    }
}
