/*
Theme Name: Ucare Herbal
Theme URI: https://ucareherbal.com
Author: Ucare
Author URI: https://ucareherbal.com
Description: World-class, immersive WordPress theme for Ucare Herbal with high-end animations and minimalist, elegant design.
Version: 2.0
Text Domain: ucareherbal
*/

:root {
    --color-sage: #5A9C14;
    /* vivid logo green */
    --color-light-sage: #F4F9EB;
    /* very pale yellow-green */
    --color-off-white: #FCFDF5;
    /* Creamy yellowish-white from background */
    --color-cream: #F5F7D0;
    --color-charcoal: #1C3306;
    /* Deep green for text instead of black */
    --color-dark: #376F0E;
    /* Medium-dark green from the logo for headers/footers */
    --color-red: #A3D25A;
    /* Bright yellow-green highlight */

    --font-heading: 'Marcellus', serif;
    --font-body: 'Jost', sans-serif;

    --transition-smooth: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-off-white);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-off-white);
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-style: italic;
    opacity: 0;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--color-sage);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth), background-color 0.3s;
}

.custom-cursor.hover {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Magnetic WhatsApp Button (Small Icon) */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 9000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out, background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #1EBE5D;
}

.whatsapp-btn svg {
    pointer-events: none;
}

/* Typography & Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.dark-section {
    background-color: var(--color-dark);
    color: var(--color-off-white);
}

.light-section {
    background-color: var(--color-off-white);
    color: var(--color-charcoal);
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: white;
}

.site-logo {
    text-decoration: none;
    color: white;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
}

.nav-menu ul {
    display: flex;
    gap: 3vw;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: white;
    transition: width 0.3s var(--transition-smooth);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.is-active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5vw;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 12, 0.5);
    /* dark overlay */
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 10vh;
}

.hero-reveal-text {
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 9vw, 10rem);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -0.02em;
    transform: translateY(110%);
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 300;
    max-width: 500px;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
}

.scroll-line {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: translateX(-100%);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Common Image Reveal Wrapper */
.image-reveal-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform-origin: center;
}

/* Problem Section */
.problem {
    padding: 20vh 0;
}

.problem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.problem-text p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: rgba(26, 28, 25, 0.8);
}

.problem-visual {
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
}

/* Solution Section */
.solution {
    padding: 20vh 0;
}

.solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.solution-visual {
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
}

.solution-content .stagger-text p {
    font-size: 1.25rem;
    color: rgba(241, 239, 234, 0.8);
    margin-bottom: 3rem;
}

/* Accordion */
.benefits-accordion {
    border-top: 1px solid rgba(241, 239, 234, 0.2);
}

.accordion-item {
    border-bottom: 1px solid rgba(241, 239, 234, 0.2);
}

.accordion-header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
    color: rgba(241, 239, 234, 0.6);
}

.accordion-content p {
    padding-bottom: 1.5rem;
}

/* Gallery Grid Section */
.gallery-section {
    padding-top: 15vh;
    padding-bottom: 15vh;
    background-color: var(--color-off-white);
}

.gallery-container {
    padding-bottom: 5vh;
}

.gallery-wrapper {
    width: 100%;
    margin-top: 3rem;
}

.gallery-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3vw;
    padding: 0 5vw;
}

.gallery-item {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
    padding: 1rem;
    filter: saturate(0.9) contrast(1.1);
    transition: filter 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.gallery-item:hover .gallery-img {
    filter: saturate(1.1) contrast(1.1);
    transform: scale(1.05);
}

/* Footer Section */
.footer {
    background-color: var(--color-dark);
    color: var(--color-off-white);
    padding: 10vh 0;
    text-align: center;
}

.footer h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Default Page Styles for Subpages */
.page-header {
    padding: 25vh 0 10vh;
    background-color: var(--color-dark);
    color: var(--color-off-white);
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.page-content {
    padding: 10vh 0;
    background-color: var(--color-off-white);
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.7);
}

.page-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--color-charcoal);
}

/* Contact & About Details Grid */
.contact-grid,
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.contact-form-wrap {
    display: flex;
    align-items: stretch;
    margin-top: 3rem;
}

.contact-form-card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-form-topline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-sage);
}

.contact-form-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-charcoal);
}

.contact-form-intro {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.65);
    margin: 0.8rem 0 1.5rem 0;
}

.contact-form-card .wpcf7 form {
    display: grid;
    gap: 0.9rem;
}

.contact-form-card .wpcf7-form-control-wrap {
    display: block;
}

.contact-form-card .wpcf7 input[type="text"],
.contact-form-card .wpcf7 input[type="email"],
.contact-form-card .wpcf7 input[type="tel"],
.contact-form-card .wpcf7 textarea {
    width: 100%;
    border: 1px solid rgba(28, 51, 6, 0.2);
    border-radius: 12px;
    background: #fff;
    color: var(--color-charcoal);
    font: inherit;
    padding: 0.8rem 1rem;
}

.contact-form-card .wpcf7 textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form-card .wpcf7 input:focus,
.contact-form-card .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(90, 156, 20, 0.12);
}

.contact-form-card .wpcf7 input[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--color-dark);
    color: var(--color-off-white);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-form-card .wpcf7 input[type="submit"]:hover {
    background: var(--color-sage);
    transform: translateY(-1px);
}

.contact-form-card .wpcf7-not-valid-tip,
.contact-form-card .wpcf7-response-output {
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.contact-form-missing {
    margin: 0;
    border: 1px dashed rgba(28, 51, 6, 0.3);
    background: rgba(90, 156, 20, 0.06);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
}

.contact-map-side {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    min-height: 450px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .problem-container,
    .solution-container,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4vh;
    }

    .problem-visual,
    .solution-visual,
    .contact-image,
    .about-image {
        height: 50vh;
        grid-row: 1;
    }

    .page-template-page-about-us .about-image,
    .page-template-page-about-us-php .about-image {
        height: auto;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-form-card h3 {
        font-size: 1.7rem;
    }

    .contact-form-wrap {
        margin-top: 2rem;
    }

    .gallery-section {
        height: auto;
        padding-top: 5vh;
    }

    .gallery-wrapper {
        height: auto;
        display: block;
        margin-top: 2rem;
    }

    .gallery-track {
        display: flex;
        flex-direction: column;
        gap: 5vh;
        padding: 0 5vw;
        height: auto;
        will-change: auto;
    }

    .gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        opacity: 1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-menu a {
        font-size: 2.5rem;
        font-family: var(--font-heading);
    }

    .nav-menu a.is-active {
        color: var(--color-dark);
        background-color: var(--color-off-white);
        border-radius: 999px;
        padding: 0.2rem 1.2rem;
    }

    .nav-menu a.is-active::after {
        width: 0;
    }

    .section-title {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .site-header {
        padding: 20px 5vw;
    }

    .site-header.menu-open {
        mix-blend-mode: normal;
    }
}
