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

:root {
    --brand-red: #880A16;
    /* Deep Maroon from card */
    --brand-gold: #FEC015;
    /* Warm Gold from logo */
    --cream: #FDF6E3;
    /* Background cream */
    --gold-text: #F8C400;
    /* Accent gold */
    --smoke: rgba(255, 255, 255, 0.9);
    --text-light: #FDF6E3;
    --text-dark: #3B1A00;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--brand-red);
    /* High-contrast start */
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
    width: 10px;
    height: 10px;
    background: var(--brand-gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* ── SCROLL PATH SVG ── */


/* ── PENDA ── */
#penda {
    position: fixed;
    width: 72px;
    height: 72px;
    pointer-events: none;
    z-index: 101;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 12px rgba(92, 46, 0, 0.35));
    transition: none;
    will-change: transform;
}

#penda img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(2);
    /* Desktop size */
}

/* For mobile: scale back to original (1x) */
@media (max-width: 768px) {
    #penda img {
        transform: scale(1);
    }

    #penda {
        width: 56px;
        height: 56px;
        /* Slightly smaller container on mobile too */
    }
}

/* ── HEADER ── */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(136, 10, 22, 0.82);
    border-bottom: 1px solid rgba(254, 192, 21, 0.15);
}

#main-header.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(136, 10, 22, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

#main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

#main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: width 0.3s ease;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--brand-gold);
}

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle Button */
#mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

#mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFF;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

@media (max-width: 768px) {
    #mobile-nav-toggle {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--brand-red);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1050;
        transform: translateX(100%);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        pointer-events: none;
    }

    #main-nav.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    #main-nav a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation to X */
    body.nav-open #mobile-nav-toggle span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
        background-color: var(--brand-gold);
    }

    body.nav-open #mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open #mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
        background-color: var(--brand-gold);
    }

    /* Prevent scrolling when menu is open */
    body.nav-open {
        overflow: hidden;
    }
}

/* ── SECTIONS ── */
section {
    position: relative;
    overflow: hidden;
}

/* Hero */
#hero {
    min-height: 100vh;
    position: relative;
    background-image: linear-gradient(rgba(136, 10, 22, 0.7), rgba(0, 0, 0, 0.5)),
        url('images/hariomPendaFrontShop1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    z-index: 1;
}

/* Ensure background works nicely on mobile where fixed background is occasionally disabled */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

.mandala-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    /* Increased for better visibility */
    color: var(--brand-gold);
    /* Control stroke color from here */
    animation: spin-slow 60s linear infinite;
    pointer-events: none;
}

.mandala-bg circle,
.mandala-bg line,
.mandala-bg polygon {
    stroke: currentColor;
}

@keyframes spin-slow {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.shop-tag {
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    color: var(--brand-gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s ease both;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.1;
    color: #FFFFFF;
    animation: fadeUp 0.9s 0.1s ease both;
}

.hero-title span {
    color: var(--brand-gold);
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    animation: fadeUp 1s 0.2s ease both;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--brand-gold);
    margin: 2rem auto;
    border-radius: 2px;
    animation: fadeUp 1s 0.3s ease both;
}

.hero-desc {
    max-width: 520px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeUp 1s 0.4s ease both;
}

.scroll-hint {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--saffron);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s 1.5s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About */
#about {
    background: var(--brand-red);
    color: var(--text-light);
    padding: 7rem 2rem;
    text-align: center;
}

#about h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

#about h2 em {
    color: var(--brand-gold);
}

#about p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Products */
#products {
    position: relative;
    /* Lightened gold overlay instead of maroon */
    background-image: linear-gradient(rgba(254, 192, 21, 0.7), rgba(254, 192, 21, 0.75)),
        url('images/hariomPenda shop.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 7rem 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    #products {
        background-attachment: scroll;
    }
}

#products h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brown);
    margin-bottom: 0.5rem;
}

#products .sub {
    color: var(--brown-mid);
    margin-bottom: 3.5rem;
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: var(--cream);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(92, 46, 0, 0.1);
    border: 1px solid rgba(200, 150, 26, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(92, 46, 0, 0.18);
}

.card-img {
    width: 100%;
    height: 180px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
}

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

.card:hover .card-img img {
    transform: scale(1.1);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

/* Process */
#process {
    background: linear-gradient(180deg, #FDF6E3 0%, #F5E8C0 100%);
    padding: 7rem 2rem;
    text-align: center;
}

#process h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand-red);
    margin-bottom: 2rem;
}

.process-gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.proc-img {
    flex: 1;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(136, 10, 22, 0.1);
    box-shadow: 0 8px 24px rgba(92, 46, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.proc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proc-img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(92, 46, 0, 0.2);
    z-index: 2;
}

@media (max-width: 768px) {
    .process-gallery {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .proc-img {
        width: 100%;
        max-width: 350px;
    }
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    counter-reset: step;
}

.step {
    flex: 1 1 180px;
    max-width: 200px;
    text-align: center;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-red);
    color: var(--brand-gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-weight: 700;
}

.step h4 {
    font-family: 'Playfair Display', serif;
    color: var(--brand-red);
    margin-bottom: 0.4rem;
}

.step p {
    font-size: 0.85rem;
    color: #5C2E00;
    line-height: 1.6;
}

/* ── FOOTER ── */
#footer {
    background: #2D0408;
    color: var(--text-light);
    padding: 6rem 2rem 2rem;
    position: relative;
    border-top: 1px solid rgba(254, 192, 21, 0.1);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1.3fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--brand-gold);
    margin-bottom: 1.2rem;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--brand-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.since-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    font-family: 'Kalam', cursive;
    border-radius: 4px;
}

.branch-item {
    margin-bottom: 2rem;
}

.branch-item h5 {
    color: #FFF;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.branch-item .timing {
    color: var(--brand-gold);
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.branch-item .phone a {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 700;
}
.branch-item .phone {
    display: flex;
}

.whatsapp-link {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    color: #25D366 !important;
    /* Original WhatsApp Green */
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 0;
}

.whatsapp-link:hover {
    color: var(--brand-gold);
    transform: scale(1.15);
}

.whatsapp-link svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}
.contact-hint {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.owner-list {
    list-style: none;
}

.owner-list li {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.owner-list .name {
    color: #FFF;
    font-weight: 600;
    font-size: 1rem;
}

/*
.owner-list .role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
} */

.owner-list .num {
    color: var(--brand-gold);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom .small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.credit-link {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-col.brand-info {
        grid-column: span 2;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col.brand-info {
        grid-column: span 1;
    }
}

/* ── INTERACTIVITY ── */
.btn-click,
.card,
#main-nav a {
    cursor: pointer;
}

/* Scale effect on click */
.active-click {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Ripple effect container */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    background: rgba(254, 192, 21, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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