/* ============================================================
   Raquel Mascarell Photography — Unified Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #383737;
    line-height: 1.6;
    background-color: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
    line-height: 1.2;
}

.page-title {
    font-family: 'Cookie', cursive;
    font-size: 80px;
    color: #fff;
    text-align: center;
}

.page-title--dark {
    color: #383737;
}

.section-title {
    font-family: 'Cookie', cursive;
    font-size: 70px;
    color: #818181;
}

.body-text {
    font-size: 15px;
    color: #383737;
    margin-bottom: 0.5em;
}

.body-text strong {
    font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.container--fluid {
    max-width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.header-mobile {
    display: none;
}

.header-logo img {
    max-width: 200px;
}

/* ---------- Navigation ---------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: #fff;
    font-size: 11px;
    padding: 6px 8px;
    transition: color 0.2s;
    text-transform: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c2c1c1;
}

/* Mobile nav overlay (hidden by default, shown via JS) */
.mobile-nav {
    display: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* ---------- Social Icons ---------- */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #c2c1c1;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 900px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.46);
}

.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Service Content Section ---------- */
.service-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.service-content__text {
    flex: 1 1 50%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content__image {
    flex: 1 1 50%;
}

.service-content__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    grid-auto-flow: dense;
    align-items: start;
    padding: 40px 0;
}

.gallery-grid>div {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background-color: #e7e7e7;
    text-align: center;
    padding: 40px 20px;
}

.cta-banner p {
    font-size: 16px;
    color: #383737;
    margin-bottom: 5px;
}

/* ---------- WhatsApp Button ---------- */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background-color: #4ac236;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s;
}

.whatsapp-btn:hover {
    background-color: #288d16;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid #c2c1c1;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-logo img {
    max-width: 85%;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1b;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-link {
    display: block;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #383737;
}

/* Kit Digital banner */
.kit-digital {
    padding: 0;
}

.kit-digital img {
    width: 100%;
}

/* Copyright bar */
.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 12px;
    color: #383737;
    border-top: 1px solid #e7e7e7;
    margin-top: 20px;
}

.copyright a {
    color: #383737;
}

/* ---------- Main background (service pages outer wrapper) ---------- * /
/* .main-wrapper class was removed because the background should not be seen on other pages */

/* ---------- Index / Home Page Specific ---------- */
.home-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.home-service-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.home-service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.home-service-card:hover img {
    transform: scale(1.05);
}

.home-service-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.home-service-card:hover .home-service-card__overlay {
    background: rgba(0, 0, 0, 0.5);
}

.home-service-card__title {
    font-family: 'Cookie', cursive;
    font-size: 40px;
    color: #fff;
    text-align: center;
}

/* ---------- Gracias Page ---------- */
.gracias-section {
    text-align: center;
    padding: 100px 20px;
}

.gracias-section h1 {
    font-family: 'Cookie', cursive;
    font-size: 60px;
    color: #818181;
    margin-bottom: 20px;
}

/* ---------- Legal Pages ---------- */
.legal-content h1 {
    font-family: 'Maven Pro', 'Poppins', sans-serif;
    font-size: 28px;
    color: #383737;
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 20px;
    color: #383737;
    margin: 24px 0 12px;
}

.legal-content p,
.legal-content li {
    font-size: 14px;
    color: #383737;
    margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content a {
    color: #4ac236;
    text-decoration: underline;
}

/* Hero variant for legal/gracias pages */
.hero--legal {
    padding-top: 370px;
    padding-bottom: 0;
}

.hero--legal::before {
    background-color: rgba(0, 0, 0, 0.46);
}

.legal-content {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 15px;
}

/* Legal page titles */
.legal-title {
    font-family: 'Maven Pro', 'Poppins', sans-serif;
    font-size: 28px;
    color: #383737;
    margin-bottom: 24px;
}

.legal-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #383737;
    margin: 24px 0 12px;
}

/* Cookie policy table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: Arial, sans-serif;
    margin: 16px 0;
}

.cookies-table th {
    background-color: #efefef;
    font-weight: 700;
    text-align: center;
    padding: 10px 5px;
    border: 1px solid #c0c0c0;
}

.cookies-table td {
    padding: 10px 5px;
    border: 1px solid #c0c0c0;
    vertical-align: top;
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #383737;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: opacity 0.3s;
}

.scroll-top.visible {
    display: flex;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
    .page-title {
        font-size: 55px;
    }

    .section-title {
        font-size: 55px;
    }

    .hero {
        padding-top: 360px;
        padding-bottom: 260px;
    }

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .nav-toggle {
        display: block;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 1000;
        padding: 60px 30px 30px;
        overflow-y: auto;
    }

    .mobile-nav.open {
        display: block;
    }

    .mobile-nav a {
        display: block;
        color: #fff;
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-nav .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .hero--legal {
        padding-top: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 45px;
    }

    .section-title {
        font-size: 50px;
    }

    .hero {
        padding-top: 320px;
        padding-bottom: 160px;
    }

    .service-content {
        flex-direction: column;
    }

    .service-content--reverse {
        flex-direction: column-reverse;
    }

    .service-content__text,
    .service-content__image {
        flex: 1 1 100%;
    }

    .service-content__text {
        padding: 30px 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .whatsapp-btn {
        display: flex; /* Show on mobile */
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        left: 10px;
    }

    .copyright {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero--legal {
        padding-top: 200px;
    }

    .legal-content {
        padding: 40px 15px;
    }

    .home-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-service-card__title {
        font-size: 28px;
    }
}