/* ============================================
   TOKSTONE — Design System
   Based on marbrasa.com.br
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: #f5f5f0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover { opacity: 0.7; }

ul { list-style: none; }

/* === TYPOGRAPHY === */
.section-title {
    font-family: 'Georgia', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: #000;
    margin-bottom: 1.5rem;
}

.section-title--large {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title--center {
    text-align: center;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.35s ease;
    text-align: center;
}

.btn--outline {
    color: #fff;
    border-color: #fff;
    background: transparent;
}

.btn--outline:hover {
    background: #fff;
    color: #000;
    opacity: 1;
}

.btn--white {
    color: #000;
    background: #fff;
    border-color: #fff;
}

.btn--white:hover {
    background: transparent;
    color: #fff;
    opacity: 1;
}

.btn--black {
    color: #fff;
    background: #000;
    border-color: #000;
}

.btn--black:hover {
    background: transparent;
    color: #000;
    opacity: 1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 245, 240, 0.97);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.header__left {
    display: flex;
    gap: 32px;
    flex: 1;
}

.header__link {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

.header__link:hover::after { width: 100%; }
.header__link:hover { opacity: 1; }

.header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__logo-img {
    height: 55px;
    width: auto;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #999;
    cursor: pointer;
    padding: 4px 2px;
    transition: color 0.3s;
}

.lang-btn.active { color: #000; }
.lang-btn:hover { color: #000; }

.lang-divider {
    font-size: 0.7rem;
    color: #ccc;
}

/* Hamburger */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    width: 34px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 75%; margin-left: auto; }
.hamburger span:nth-child(3) { width: 50%; margin-left: auto; }

.hamburger:hover span { width: 100%; }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.open {
    pointer-events: all;
    visibility: visible;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.open .mobile-menu__overlay { opacity: 1; }

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    padding: 60px 48px;
    transition: right 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open .mobile-menu__panel { right: 0; }

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    line-height: 1;
    transition: transform 0.3s ease;
}

.mobile-menu__close:hover { transform: rotate(90deg); }

.mobile-menu__list {
    margin-top: 40px;
}

.mobile-menu__list li {
    border-bottom: 1px solid #eee;
}

.mobile-menu__list a {
    display: block;
    padding: 18px 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    transition: padding-left 0.3s ease;
}

.mobile-menu__list a:hover {
    padding-left: 12px;
    opacity: 1;
}

.mobile-menu__logo {
    margin-top: auto;
    padding-top: 40px;
}

.mobile-menu__logo img {
    height: 47px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 82px;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__slide.active { opacity: 1; z-index: 1; }

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeSlideUp 0.8s ease;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__title {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.25;
    margin-bottom: 32px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__title em {
    font-style: italic;
}

/* Hero Arrows */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s;
}

.hero__arrow:hover { color: #fff; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* Hero Dots */
.hero__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.hero__dot.active { background: #fff; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    padding: 0;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.category-card {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card__img {
    transform: scale(1.08);
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.4s ease;
}

.category-card:hover .category-card__overlay {
    background: rgba(0, 0, 0, 0.4);
}

.category-card__title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ============================================
   FEATURE BANNERS
   ============================================ */
.banners {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.banner {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0;
}

.banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.banner:hover .banner__bg { transform: scale(1.04); }

.banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 60px;
    gap: 40px;
}

.banner__title {
    font-family: 'Georgia', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
}

/* ============================================
   PRODUCTS INTRO
   ============================================ */
.products-intro {
    padding: 100px 40px;
    text-align: center;
    background: #f5f5f0;
}

.products-intro__inner {
    max-width: 700px;
    margin: 0 auto;
}

.products-intro__text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 36px;
}

/* ============================================
   QUALITY BLOCK
   ============================================ */
.quality {
    padding: 100px 40px;
    background: #fff;
}

.quality__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.quality__text p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 32px;
}

.quality__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ============================================
   TEXTURE SHOWCASE
   ============================================ */
.texture-showcase {
    padding: 120px 40px;
    background: #f5f5f0;
    overflow: hidden;
}

.texture-showcase__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
}

.texture-showcase__slab {
    position: absolute;
    overflow: hidden;
}

.texture-showcase__slab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texture-showcase__slab--dark {
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.texture-showcase__slab--light {
    right: 0;
    top: 40px;
    width: 55%;
    height: 100%;
    z-index: 2;
}

.texture-showcase__text {
    position: absolute;
    z-index: 3;
    bottom: 40px;
    left: 0;
    width: 100%;
}

.texture-showcase__line1 {
    display: block;
    font-family: 'Georgia', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.texture-showcase__line2 {
    display: block;
    font-family: 'Georgia', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-style: italic;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.1;
    margin-left: 35%;
}

/* ============================================
   QUARRIES
   ============================================ */
.quarries {
    padding: 100px 40px;
    background: #fff;
}

.quarries__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.quarries__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.quarries__text p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 32px;
}

/* ============================================
   RESPONSIBILITY / ESG
   ============================================ */
.responsibility {
    padding: 100px 40px;
    background: #f5f5f0;
}

.responsibility__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.responsibility__text p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 24px;
}

.responsibility__badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsibility__badge img {
    max-width: 280px;
    height: auto;
}

/* ============================================
   INSTAGRAM FEED
   ============================================ */
.instagram {
    padding: 80px 40px;
    background: #f5f5f0;
}

.instagram__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.instagram__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.instagram__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

.instagram__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.instagram__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram__item:hover img { transform: scale(1.08); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 40px 0;
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    height: 55px;
    width: auto;
    margin-bottom: 24px;
    filter: invert(1) brightness(2);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    color: #fff;
    transition: opacity 0.3s;
}

.footer__social a:hover { opacity: 0.6; }

.footer__phone,
.footer__email {
    font-size: 0.85rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
}

.footer__col--address p {
    font-size: 0.85rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
}

.footer__col--map iframe {
    border-radius: 4px;
    filter: grayscale(0.8) invert(0.92);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.whatsapp-btn__tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-btn:hover .whatsapp-btn__tooltip { opacity: 1; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .quality__inner,
    .quarries__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quality__image img,
    .quarries__image img {
        height: 350px;
    }

    .responsibility__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .responsibility__badge {
        order: -1;
    }

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

    .texture-showcase__inner {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding: 16px 20px;
    }

    .header__left {
        display: none;
    }

    .header__logo-img {
        height: 32px;
    }

    .hero {
        margin-top: 64px;
        min-height: 500px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

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

    .category-card {
        height: 220px;
    }

    .banners {
        padding: 40px 20px;
        gap: 30px;
    }

    .banner {
        height: 240px;
    }

    .banner__content {
        flex-direction: column;
        text-align: center;
        padding: 0 30px;
        gap: 20px;
    }

    .products-intro {
        padding: 60px 20px;
    }

    .quality,
    .quarries,
    .responsibility {
        padding: 60px 20px;
    }

    .texture-showcase {
        padding: 60px 20px;
    }

    .texture-showcase__inner {
        height: 280px;
    }

    .texture-showcase__line1 {
        font-size: 1.8rem;
    }

    .texture-showcase__line2 {
        font-size: 2.2rem;
        margin-left: 20%;
    }

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

    .instagram__grid .instagram__item:nth-child(4),
    .instagram__grid .instagram__item:nth-child(5) {
        display: none;
    }

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

    .footer__social {
        justify-content: center;
    }

    .footer__col--map iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 420px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.68rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title--large {
        font-size: 2.2rem;
    }
}
