:root {
    --bg-color: #f9f9f9;
    --text-color: #1a1c1c;
    --primary-color: #000000;
    --secondary-color: #5f5e5e;
    --surface-container: #eeeeee;
    --accent-color: #3b3b3b;
    --border-color: #c6c6c6;
    --white: #ffffff;
    --font-heading: 'Noto Serif', serif;
    --font-body: 'Manrope', sans-serif;
    --spacing-page: clamp(5rem, 15vw, 12rem);
}

.mobile-block {
    display: inline;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    /* Increased general base scale */
}

#about .about-img img {
    transform: scale(1.15);
    /* Matched base scale for interaction depth */
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: calc(var(--spacing-page) * 1) 0;
    scroll-margin-top: 70px;
}

#contact {
    scroll-margin-top: 100px;
}

#services {
    padding-bottom: 4rem;
}

#carta {
    padding-top: 4rem;
}

/* Premium Map Filter (Option A) */
.map-container {
    overflow: hidden;
    border-radius: 12px;
}

.map-container iframe {
    filter: grayscale(100%) contrast(0.95) brightness(1.05);
    transition: filter 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease-in-out;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    justify-content: space-between;
    alignment-baseline: center;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.mobile-only-item {
    display: none;
}

.menu-logo {
    display: none;
}

.mobile-only-footer-lang {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    opacity: 0.4;
    transition: 0.3s;
    font-weight: 700;
}

.lang-btn.active {
    opacity: 1;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Desktop centering */
    text-align: center;
    background: var(--bg-color);
    position: relative;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
    perspective: 1000px;
}

@media (max-width: 768px) {
    #hero {
        justify-content: flex-start; /* Stable alignment on mobile */
        padding-top: 140px; /* Precise fixed position */
    }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../img/editorial/hero.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(1) brightness(0.2) blur(10px);
    opacity: 0;
    transform: scale(1.5);
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 80%);
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

#hero .hero-tagline {
    width: 100%;
    margin: 2rem auto 0;
    display: block;
    text-align: center;
    opacity: 0.5;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

#hero .hero-tagline .word {
    display: inline-block;
    margin: 0 0.3em;
    /* Mandatory gap for SplitType words */
}

#hero .hero-content h1,
#hero .hero-content h2,
#hero .hero-cta,
#hero .hero-logo-wrapper,
#hero .hero-tagline {
    opacity: 0;
    filter: blur(15px);
}

.hero-logo-wrapper {
    height: 150px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-logo-wrapper {
        height: 100px; /* More balanced for mobile */
        margin-bottom: 1.5rem;
    }
}

.hero-logo-wrapper img {
    height: 100%;
    width: auto;
}

#hero .hero-content .hero-logo-wrapper,
#hero .hero-content h1 {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#hero .hero-content:hover .hero-logo-wrapper {
    transform: scale(1.08) translateY(-8px) !important;
}

#hero .hero-content:hover h1 {
    transform: scale(1.02) translateY(-5px) !important;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 6rem);
    margin-bottom: 2rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .reviews-carousel-wrapper {
        padding: 0 !important;
    }

    .mobile-block {
        display: block !important;
    }
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.4rem 3rem;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* SplitType Masking */
.split-reveal {
    line-height: 1.1;
}

.split-reveal .char {
    display: inline-block;
}

/* About Section */
.about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-text {
    padding-left: 2.5rem;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-img {
    height: 600px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
}

/* Services */
#services {
    padding-top: calc(var(--spacing-page) * 0.5);
    padding-bottom: calc(var(--spacing-page) * 0.5);
}

.services-title {
    text-align: center;
    margin-bottom: 4.5rem;
}

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

.service-card {
    background: var(--white);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover,
.service-card.is-active {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

.service-card:hover h3,
.service-card.is-active h3 {
    color: #ffffff;
}

.service-card p {
    color: var(--secondary-color);
    transition: color 0.4s ease;
}

.service-card:hover p,
.service-card.is-active p {
    color: rgba(255, 255, 255, 0.9);
}

/* Opinions */
#reviews {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- REVIEWS SECTION --- */
section#reviews {
    background: var(--text-color) !important;
    /* Perfect match with footer charcoal */
    padding: 100px 0;
}

section#reviews h2 {
    color: white !important;
}

section#reviews p[data-t="review_footer"] {
    color: white !important;
    opacity: 0.8;
}

.reviews-carousel-wrapper {
    position: relative;
    padding: 0 4rem;
    /* Gutters for arrows */
}

.reviews-swiper {
    padding: 2rem 0 5rem !important;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Force equal height for all cards in a row */
.swiper-slide {
    height: auto !important;
}

.review-card {
    background: white;
    padding: 1.2rem 1.5rem 2rem;
    /* Balanced, but content starts at top */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    text-align: center;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.user-avatar {
    width: 10px;
    height: 10px;
    background: var(--color-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.user-info {
    width: 100%;
}

.user-info h4 {
    font-size: 1.1rem;
    /* Restored visibility */
    margin-bottom: 0.2rem;
    display: block;
    color: var(--text-color) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stars {
    color: #ffcc00;
    font-size: 0.9rem;
    /* Restored visibility */
    display: flex;
    gap: 4px;
    justify-content: center;
}

.review-text {
    font-style: italic;
    color: #444444;
    line-height: 1.6;
    font-size: 1.05rem;
    /* Restored original premium size */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

/* Swiper Navigation Arrows - Premium Outside Contrast */
.swiper-button-next,
.swiper-button-prev {
    color: var(--text-color) !important;
    background: white;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    top: 50% !important;
    transform: translateY(-50%) scale(1);
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-next {
    right: 0.5rem !important;
}

.swiper-button-prev {
    left: 0.5rem !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .reviews-swiper {
        padding: 2rem 1rem 4rem !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on small mobile to save space */
    }
}

/* Experience Visual */
#experience {
    padding-top: calc(var(--spacing-page) * 0.5);
    padding-bottom: calc(var(--spacing-page) * 0.5);
}

.experience-visual {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: 700px;
}

.exp-img-large {
    overflow: hidden;
}

.exp-img-small {
    display: grid;
    gap: 2rem;
}

.exp-img-small div {
    overflow: hidden;
}

/* Info Section */
#info {
    padding-top: calc(var(--spacing-page) * 0.5);
    padding-bottom: calc(var(--spacing-page) * 0.5);
}

.info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 600;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid var(--border-color);
}

.schedule-table td {
    padding: 1rem 0;
}

.schedule-table td:last-child {
    text-align: right;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--text-color);
    color: #ffffff;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h4 {
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: 0.8;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 750px;
}

.footer-logo img {
    height: 110px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

footer .lang-btn {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {

    .about-grid,
    .info-grid,
    .experience-visual {
        grid-template-columns: 1fr;
    }

    .experience-visual {
        height: auto;
    }

    .about-img {
        height: 400px;
    }
}

@media (max-width: 768px) {

    /* Hide scrollbar for mobile */
    html,
    body {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    nav {
        justify-content: center;
        position: relative;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 0;
    }

    /* Move lang-switcher to menu */
    nav>.lang-switcher {
        display: none;
    }

    .mobile-only-item {
        display: block;
        margin-top: 1rem;
    }

    .menu-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 0rem;
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
        z-index: 2000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 1.3rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .mobile-block {
        display: block !important;
        text-align: center;
    }

    .hero-content h1 {
        white-space: normal !important;
        font-size: clamp(2rem, 12vw, 2.5rem) !important;
        line-height: 1.1;
        text-align: center;
    }

    #hero h1 .word:first-child {
        display: block !important;
        width: 100%;
        text-align: center;
    }

    :root {
        --spacing-page: 4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding-left: 0;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .about-text h2 {
        margin-bottom: 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        margin: 0 auto;
    }

    .footer-legal-col {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-legal-col ul {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom .lang-switcher {
        display: none;
    }

    #contact h2 {
        text-align: center;
    }

    /* Mobile Only Carta Compaction */
    #carta .container {
        padding: 4rem 1rem !important;
    }

    #carta div[style*="padding: 4rem"] {
        padding: 2rem 1rem !important;
        margin-top: 1.5rem !important;
        font-size: 0.8rem !important;
    }

    .mobile-only-footer-lang {
        display: block;
        margin-top: 1rem;
    }
}


/* WhatsApp Button Fixed */
.whatsapp-fixed {
    position: fixed;
    bottom: 6.3rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    /* Higher than mobile menu (2000) but lower than AI Chat (10000) */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Entrance Animation State */
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}

@media (max-width: 480px) {
    .whatsapp-fixed {
        width: 55px;
        height: 55px;
        bottom: 5.2rem;
        right: 1.2rem;
        font-size: 1.8rem;
    }
}

.whatsapp-fixed:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    opacity: 1;
    /* Ensure it stays fully visible */
}

/* Bubble Tooltips (WhatsApp & Assistant) */
.bubble-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-fixed:hover .bubble-tooltip,
.ai-chat-bubble:hover .bubble-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

@media (max-width: 768px) {
    .bubble-tooltip {
        display: none !important;
    }
}

/* INSTAGRAM FEED SECTION */
.insta-feed-section {
    padding: 6rem 0;
    background: var(--bg-color);
    overflow: hidden;
    text-align: center;
}

.insta-feed-header {
    margin-bottom: 4rem;
}

.insta-feed-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.insta-feed-header p {
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.insta-feed-carousel {
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.insta-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.insta-swiper .swiper-slide {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: var(--surface-color);
}

.insta-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2.5rem;
}

.insta-swiper .swiper-slide:hover img {
    transform: scale(1.1);
}

.insta-swiper .swiper-slide:hover .insta-overlay {
    opacity: 1;
}

.insta-icon-title {
    stroke: var(--secondary-color);
    transition: transform 0.3s ease;
}

.insta-feed-header:hover .insta-icon-title {
    transform: scale(1.1) rotate(-5deg);
}

.insta-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 4rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.insta-link-btn:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .insta-feed-header h2 {
        font-size: 2rem;
    }

    .insta-feed-carousel {
        padding: 0;
    }
}

/* Page Transitions - Content Fade Only (More fluid) */
@view-transition {
  navigation: auto;
}

.subpage header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}