/* =========================================================
   Anandi Charcoal — Premium Website Styles
   ========================================================= */

:root {
    --black: #0e0d0c;
    --charcoal: #1a1816;
    --charcoal-2: #242019;
    --gold: #c9a14a;
    --gold-light: #e3c779;
    --gold-dark: #a8842f;
    --cream: #f6f1e7;
    --cream-2: #efe7d6;
    --text: #2a2622;
    --muted: #6f675c;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(14, 13, 12, 0.12);
    --shadow-lg: 0 30px 70px rgba(14, 13, 12, 0.22);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }

/* Allow content to breathe on very large screens */
@media (min-width: 1600px) {
    :root { --maxw: 1360px; }
}
@media (min-width: 1920px) {
    :root { --maxw: 1500px; }
    html { font-size: 18px; }
}

h1, h2, h3, h4 { font-family: "Playfair Display", serif; line-height: 1.2; color: var(--charcoal); }

.text-gold { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 2rem; border-radius: 50px; font-weight: 600; font-size: .95rem;
    letter-spacing: .3px; cursor: pointer; border: 2px solid transparent;
    transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); box-shadow: 0 12px 30px rgba(201, 161, 74, .35); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201, 161, 74, .5); }
.btn--gold::after {
    content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn--gold:hover::after { left: 130%; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--dark { background: var(--charcoal); color: var(--cream); }
.btn--dark:hover { background: var(--black); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ===== Section base ===== */
.section { padding: 110px 0; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; font-weight: 700;
    color: var(--gold-dark); margin-bottom: .9rem; position: relative; display: inline-block;
}
.eyebrow--light { color: var(--gold-light); }
.heading { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
.heading--light { color: var(--white); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__head--light { color: var(--white); }
.section__sub { color: var(--muted); margin-top: 1rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 1.6rem; }

/* ===== Top bar ===== */
.topbar { background: var(--black); color: #cfc7b8; font-size: .85rem; padding: .55rem 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; }
.topbar__left span { margin-right: 1.4rem; }
.topbar__left i, .topbar__right i { color: var(--gold); }
.topbar__right a { margin-left: 1rem; transition: color .3s; }
.topbar__right a:hover { color: var(--gold-light); }

/* ===== Navbar ===== */
.navbar {
    position: sticky; top: 0; z-index: 1000; background: rgba(246, 241, 231, .92);
    backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .3s, padding .3s;
}
.navbar.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }

.brand { display: flex; align-items: center; gap: .65rem; font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.4rem; color: var(--charcoal); }
.brand__mark {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--black); font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(201,161,74,.4);
}
.brand__accent { color: var(--gold-dark); }
.brand__logo { height: 52px; width: auto; display: block; }
.brand__logo--footer { height: 58px; filter: brightness(0) invert(1); }

.nav { display: flex; gap: 2rem; }
.nav__link { font-weight: 500; font-size: .95rem; color: var(--text); position: relative; padding: .3rem 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--gold-dark); }
.nav__cta { padding: .65rem 1.4rem; font-size: .88rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--charcoal); transition: .3s; }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 92vh; min-height: 92dvh; display: flex; align-items: center;
    background: url("../images/hero-coal.jpg") center/cover fixed;
    color: var(--white); overflow: hidden;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(14,13,12,.92) 0%, rgba(14,13,12,.65) 50%, rgba(14,13,12,.35) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 80px 0; max-width: 760px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 600; color: var(--gold-light); margin-bottom: 1.4rem; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; color: var(--white); margin-bottom: 1.3rem; }
.hero__sub { font-size: 1.15rem; color: #ded7ca; max-width: 600px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats { display: inline-flex; gap: 0; margin-top: 3.5rem; flex-wrap: wrap; padding: 1.4rem 1.8rem; background: rgba(14,13,12,.5); border: 1px solid rgba(201,161,74,.28); border-radius: var(--radius); backdrop-filter: blur(3px); }
.hero__stat { display: flex; flex-direction: column; padding: 0 1.8rem; position: relative; }
.hero__stat + .hero__stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(201,161,74,.3); }
.hero__stat-value { display: flex; align-items: baseline; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero__stat .num, .hero__stat .plus { font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 700; color: var(--gold-light); }
.hero__stat small { color: #e6dfd2; font-size: .82rem; letter-spacing: .5px; margin-top: .35rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

.hero__scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
    color: var(--white); width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%; display: grid; place-items: center; animation: bob 2s infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about__media { position: relative; }
.about__frame {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
}
.about__frame img, .about__frame video { width: 100%; height: 100%; object-fit: cover; display: block; background-color: #efe9dc; }
.about__badge {
    position: absolute; top: 20px; left: -22px; z-index: 3;
    display: flex; align-items: center; gap: .8rem;
    padding: .75rem .95rem .75rem .8rem; border-radius: 16px;
    background: rgba(20, 18, 16, .72);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 161, 74, .35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.about__badge-icon {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.15rem; color: var(--black);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    box-shadow: 0 6px 16px rgba(168, 132, 47, .45);
}
.about__badge-info { display: flex; flex-direction: column; line-height: 1.1; }
.about__badge-num { display: block; font-family: "Playfair Display", serif; font-size: 1.5rem; color: var(--gold-light); font-weight: 700; }
.about__badge-text { font-size: .72rem; letter-spacing: .4px; color: var(--cream); white-space: nowrap; }
.about__exp {
    position: absolute; bottom: -26px; right: -20px; z-index: 3;
    display: flex; align-items: center; gap: .8rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--black); padding: 1rem 1.4rem; border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(168,132,47,.4);
}
.about__exp-num { font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about__exp-num span { font-size: 1.4rem; vertical-align: super; }
.about__exp-text { font-size: .8rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .5px; }

.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; margin: 1.8rem 0 2rem; }
.about__feature { display: flex; gap: .9rem; align-items: flex-start; }
.about__feature-icon {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.1rem; color: var(--gold-dark);
    background: linear-gradient(135deg, rgba(201,161,74,.18), rgba(168,132,47,.12));
    transition: all .4s var(--ease);
}
.about__feature:hover .about__feature-icon { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--black); transform: translateY(-3px); }
.about__feature h4 { font-size: 1rem; margin-bottom: .2rem; }
.about__feature p { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* About — desktop-only decorative animation */
@media (min-width: 993px) {
    .about__media::before {
        content: ""; position: absolute; left: -16px; top: -16px; width: 70%; height: 70%;
        border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
        opacity: .55; pointer-events: none;
        transition: transform .6s var(--ease), opacity .6s var(--ease);
    }
    .about__media:hover::before { transform: translate(-8px, -8px); opacity: .8; }
    .about__frame { transition: transform .6s var(--ease); will-change: transform; }
    .about__media:hover .about__frame { transform: translateY(-6px); }
    .about__frame img { transition: transform .8s var(--ease); }
    .about__media:hover .about__frame img { transform: scale(1.05); }
    .about__frame video { transition: transform .8s var(--ease); }
    .about__media:hover .about__frame video { transform: scale(1.05); }
    .about__badge { animation: floatY 5s ease-in-out infinite .6s; }
    .about__exp { animation: floatY 6s ease-in-out infinite; }
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Products ===== */
.products { background: var(--cream-2); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
/* Staggered reveal cascade (desktop) */
@media (min-width: 769px) {
    .products__grid .product:nth-child(3n+2) { transition-delay: .12s; }
    .products__grid .product:nth-child(3n+3) { transition-delay: .24s; }
}
.product {
    background: var(--white); border-radius: var(--radius); padding: 0;
    box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
}
.product::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: 3; }
.product:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product:hover::before { transform: scaleX(1); }
.product__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--charcoal); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.08); }
.product__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,12,0) 55%, rgba(14,13,12,.45)); }
.product__body { padding: 2rem 1.8rem 2.2rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.product__icon {
    width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(201,161,74,.18), rgba(168,132,47,.12)); color: var(--gold-dark);
    margin: -52px 0 1.1rem; position: relative; z-index: 2; box-shadow: var(--shadow);
    transition: all .4s var(--ease); flex: 0 0 auto;
}
.product:hover .product__icon { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--black); transform: rotate(-6deg); }
.product h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.product p { color: var(--muted); font-size: .95rem; }
.product__link {
    margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: center; gap: .5rem;
    color: var(--gold-dark); font-weight: 600; font-size: .9rem; letter-spacing: .3px;
    align-self: flex-start;
}
.product__link i { transition: transform .35s var(--ease); }
.product:hover .product__link { color: var(--black); }
.product:hover .product__link i { transform: translateX(5px); }

/* ===== Why ===== */
.why { position: relative; background: url("../images/why-bg.jpg") center/cover fixed; color: var(--white); }
.why__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,12,.93), rgba(26,24,22,.9)); }
.why__inner { position: relative; z-index: 2; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why__card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
    padding: 2.2rem 1.6rem; text-align: center; transition: all .4s var(--ease); backdrop-filter: blur(4px);
}
.why__card:hover { background: rgba(201,161,74,.12); border-color: var(--gold); transform: translateY(-8px); }
.why__card i { font-size: 2.2rem; color: var(--gold-light); margin-bottom: 1rem; }
.why__card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .6rem; }
.why__card p { color: #cfc7b8; font-size: .92rem; }

/* ===== Process ===== */
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { text-align: center; padding: 2.2rem 1.4rem 2rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); position: relative; transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-8px); }
.step__num { position: absolute; top: 14px; right: 18px; font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 800; color: rgba(201,161,74,.18); }
.step i { font-size: 2rem; color: var(--gold-dark); margin-bottom: .9rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ===== Gallery (3D Carousel) ===== */
.gallery { background: var(--cream-2); overflow: hidden; }

.carousel3d { margin-top: 10px; }
.carousel3d__stage {
    position: relative; height: 440px; perspective: 1400px;
    perspective-origin: 50% 45%;
}
.carousel3d__ring {
    position: absolute; inset: 0; margin: auto; width: 320px; height: 400px;
    transform-style: preserve-3d; transition: transform 1s var(--ease);
    will-change: transform;
}
.carousel3d__card {
    position: absolute; top: 0; left: 0; width: 320px; height: 400px; margin: 0;
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(14,13,12,.28);
    border: 1px solid rgba(201,161,74,.35); background: var(--charcoal);
    backface-visibility: hidden; cursor: pointer;
    transition: box-shadow .5s var(--ease);
}
.carousel3d__card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .8s var(--ease), filter .6s var(--ease);
    filter: brightness(.55) saturate(.85) blur(3px);
}
.carousel3d__card figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1rem;
    color: #fff; font-family: "Playfair Display", serif; font-weight: 600; font-size: 1.05rem;
    text-align: center; letter-spacing: .3px; z-index: 4;
    background: linear-gradient(180deg, rgba(14,13,12,0), rgba(14,13,12,.85));
    transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
/* Active (front-facing) card highlight */
.carousel3d__card.is-active { box-shadow: 0 30px 70px rgba(168,132,47,.45); }
.carousel3d__card.is-active img { filter: brightness(1) saturate(1.05) blur(0); transform: scale(1.04); }
.carousel3d__card.is-active figcaption { transform: translateY(0); opacity: 1; }

/* Running neon-light border on the active card */
@property --neon-angle {
    syntax: "<angle>"; initial-value: 0deg; inherits: false;
}
.carousel3d__card.is-active::before {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    border-radius: var(--radius); padding: 3px;
    background: conic-gradient(from var(--neon-angle),
        transparent 0deg, transparent 60deg,
        rgba(227,199,121,.6) 90deg, var(--gold-light) 110deg,
        #fff7e0 120deg, var(--gold-light) 130deg,
        rgba(227,199,121,.6) 150deg, transparent 180deg, transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: neonRun 2.8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(227,199,121,.85));
}
@keyframes neonRun { to { --neon-angle: 360deg; } }

.carousel3d__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 28px; }
.carousel3d__btn {
    width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold);
    background: transparent; color: var(--gold-dark); font-size: 1rem; cursor: pointer;
    display: grid; place-items: center; transition: all .35s var(--ease);
}
.carousel3d__btn:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(168,132,47,.4); }
.carousel3d__dots { display: flex; gap: 9px; align-items: center; }
.carousel3d__dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: rgba(111,103,92,.4); transition: all .35s var(--ease);
}
.carousel3d__dot.is-active { background: var(--gold); width: 26px; border-radius: 6px; }

/* ===== Testimonials ===== */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial { background: var(--white); border-radius: var(--radius); padding: 2.4rem 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.testimonial > i { font-size: 1.8rem; color: var(--gold); opacity: .5; margin-bottom: 1rem; }
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 1.3rem; }
.testimonial footer strong { display: block; font-family: "Playfair Display", serif; color: var(--charcoal); }
.testimonial footer span { font-size: .85rem; color: var(--muted); }

/* ===== CTA Banner ===== */
.cta-banner { background: linear-gradient(135deg, var(--charcoal), var(--black)); padding: 70px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-banner p { color: #cfc7b8; margin-top: .4rem; }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__list { margin: 2rem 0; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--black); }
.contact__list strong { display: block; font-family: "Playfair Display", serif; color: var(--charcoal); }
.contact__list p { color: var(--muted); margin: 0; }
.contact__social a { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--charcoal); color: var(--cream); margin-right: .6rem; transition: all .3s; }
.contact__social a:hover { background: var(--gold); color: var(--black); transform: translateY(-3px); }

.contact__form { background: var(--white); padding: 2.6rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.field { position: relative; margin-bottom: 1.4rem; }
.field input, .field textarea {
    width: 100%; padding: 1rem 1rem .6rem; border: 1.5px solid #e2d9c8; border-radius: 10px;
    background: var(--cream); font-family: inherit; font-size: .95rem; color: var(--text); transition: border .3s; resize: vertical;
}
.field textarea { padding-top: 1.2rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field label { position: absolute; left: 1rem; top: .9rem; color: var(--muted); font-size: .95rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
    top: .25rem; font-size: .7rem; color: var(--gold-dark); font-weight: 600; letter-spacing: .5px;
}
.form__note { margin-top: 1rem; color: var(--gold-dark); font-weight: 600; text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--black); color: #b8b0a3; padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer__brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; max-width: 320px; }
.footer__addr { margin-top: .6rem; }
.footer__addr i { color: var(--gold); margin-right: .5rem; }
.footer__social { margin-top: 1.2rem; }
.footer__social a, .contact__social a { transition: all .3s; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.07); color: var(--cream); margin-right: .5rem; }
.footer__social a:hover { background: var(--gold); color: var(--black); }
.footer__col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.2rem; }
.footer__col ul li { margin-bottom: .6rem; }
.footer__col ul a { font-size: .92rem; transition: color .3s; }
.footer__col ul a:hover { color: var(--gold-light); padding-left: 5px; }
.footer__news { display: flex; margin-top: 1rem; }
.footer__news input { flex: 1; padding: .75rem 1rem; border: none; border-radius: 50px 0 0 50px; background: rgba(255,255,255,.08); color: var(--white); }
.footer__news input::placeholder { color: #8c857a; }
.footer__news input:focus { outline: none; background: rgba(255,255,255,.14); }
.footer__news button { padding: 0 1.2rem; border: none; border-radius: 0 50px 50px 0; background: var(--gold); color: var(--black); cursor: pointer; transition: background .3s; }
.footer__news button:hover { background: var(--gold-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; text-align: center; font-size: .88rem; }

/* ===== Floating elements ===== */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; z-index: 900;
    background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(37,211,102,.5); animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.to-top {
    position: fixed; right: 22px; bottom: 88px; width: 46px; height: 46px; border-radius: 50%; z-index: 900;
    background: var(--charcoal); color: var(--gold-light); border: none; cursor: pointer; font-size: 1rem;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--black); }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Staggered cascade for product cards */
.products__grid .product { transition-delay: 0s; }
.products__grid .product:nth-child(1) { transition-delay: .05s; }
.products__grid .product:nth-child(2) { transition-delay: .13s; }
.products__grid .product:nth-child(3) { transition-delay: .21s; }
.products__grid .product:nth-child(4) { transition-delay: .29s; }
.products__grid .product:nth-child(5) { transition-delay: .37s; }
.products__grid .product:nth-child(6) { transition-delay: .45s; }

/* ===== Grain texture overlay (dark sections) ===== */
.hero::after,
.why::after,
.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}
.footer { position: relative; }
.footer__grid, .footer__bottom { position: relative; z-index: 2; }

/* ===== Responsive ===== */

/* --- Large tablets / small laptops --- */
@media (max-width: 1100px) {
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .footer__news { grid-column: 1 / -1; max-width: 380px; }
}

@media (max-width: 992px) {
    .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
    .products__grid, .why__grid, .process__steps, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__news { grid-column: auto; }
    /* About on tablet/mobile */
    .about__media { width: 100%; max-width: 440px; margin: 0 auto; }
    .about__frame { aspect-ratio: 4 / 3; }
    .about__badge { left: 12px; top: 12px; }
    .about__exp { right: 10px; bottom: -20px; }
    /* Fixed backgrounds break / jump on mobile & tablets */
    .hero, .why { background-attachment: scroll; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed; top: 0; right: -100%; height: 100vh; height: 100dvh; width: 78%; max-width: 320px;
        background: var(--cream); flex-direction: column; padding: 100px 2rem; gap: 1.4rem;
        box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .4s var(--ease); z-index: 1001;
        overflow-y: auto;
    }
    .nav.open { right: 0; }
    .nav__toggle { display: flex; z-index: 1002; }
    .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav__cta { display: none; }
    .topbar__left span:nth-child(2), .topbar__left span:nth-child(3) { display: none; }
    .section { padding: 80px 0; }
    .hero__stat { padding: 0 1.2rem; }
    /* prevent body scroll when mobile menu is open */
    body.nav-open { overflow: hidden; }
}

/* --- Phones --- */
@media (max-width: 560px) {
    .products__grid, .why__grid, .process__steps, .testimonials__grid, .footer__grid { grid-template-columns: 1fr; }
    .topbar { font-size: .76rem; }
    .topbar__inner { font-size: .78rem; }
    .topbar__left span { margin-right: .8rem; }
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .about__media { max-width: 100%; }
    .about__features { grid-template-columns: 1fr; gap: 1.1rem; }
    .about__exp { right: 0; bottom: -18px; padding: .8rem 1.1rem; }
    .about__exp-num { font-size: 2.1rem; }
    .hero__actions { width: 100%; }
    .hero__actions .btn { flex: 1 1 auto; }
    .contact__form { padding: 1.8rem 1.4rem; }
    .product__body { padding: 1.7rem 1.5rem 1.9rem; }
    .testimonial { padding: 1.9rem 1.6rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; right: 16px; bottom: 16px; }
    .to-top { right: 16px; bottom: 76px; width: 42px; height: 42px; }
    .carousel3d__stage { height: 380px; perspective: 1000px; }
    .carousel3d__ring { width: 240px; height: 330px; }
    .carousel3d__card { width: 240px; height: 330px; }
    .carousel3d__card figcaption { font-size: .95rem; padding: .9rem .8rem; }
}

/* --- Very small phones --- */
@media (max-width: 380px) {
    .container { width: 92%; }
    .brand { font-size: 1.2rem; }
    .brand__mark { width: 38px; height: 38px; }
    .brand__logo { height: 42px; }
    .hero__stats { padding: 1.1rem 1rem; }
    .hero__stat { padding: 0 .9rem; }
    .hero__stat .num, .hero__stat .plus { font-size: 2.1rem; }
    .btn { padding: .85rem 1.5rem; font-size: .9rem; }
}

/* --- Short / landscape screens --- */
@media (max-height: 600px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 90px 0 60px; }
    .hero__inner { padding: 40px 0; }
    .hero__scroll { display: none; }
}

/* --- Respect reduced motion preferences --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
