/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --emerald: #0D7C4F;
    --emerald-light: #E8F5EE;
    --emerald-dark: #065A3A;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-mid: #E9ECEF;
}

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- NAVBAR ----- */
.navbar-custom {
    background: var(--white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}
.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-custom .navbar-brand i {
    color: var(--emerald);
    font-size: 2rem;
}
.navbar-custom .navbar-brand span {
    color: var(--emerald);
}

.navbar-custom .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--black) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}
.navbar-custom .nav-link:hover {
    color: var(--emerald) !important;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: width 0.3s ease;
}
.navbar-custom .nav-link:hover::after {
    width: 60%;
}
.navbar-custom .nav-link.active {
    color: var(--emerald) !important;
}
.navbar-custom .nav-link.active::after {
    width: 60%;
}

.navbar-custom .btn-get-quote {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 2px solid var(--emerald) !important;
    color: var(--black) !important;
    border-radius: 0 !important;
    padding: 0.45rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    margin-left: 0.5rem;
}
.navbar-custom .btn-get-quote:hover {
    background: var(--emerald) !important;
    color: var(--white) !important;
    border-color: var(--emerald) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,26,26,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-nav {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
    .navbar-custom .nav-link {
        padding: 0.6rem 0 !important;
        text-align: center;
    }
    .navbar-custom .nav-link::after {
        display: none;
    }
    .navbar-custom .btn-get-quote {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0 0.25rem 0;
        padding: 0.6rem;
    }
    .navbar-custom .navbar-collapse {
        padding-bottom: 0.5rem;
    }
}

/* ============================================================
   GALLERY HEADER
   ============================================================ */
.gallery-header {
    padding: 4rem 0 2rem 0;
    background: var(--white);
}
.gallery-header .label {
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.gallery-header .label i {
    font-size: 1rem;
}
.gallery-header .gallery-title {
    font-family: 'DM Serif Display', serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 0.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.gallery-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin-top: 0.75rem;
}

@media (max-width: 767.98px) {
    .gallery-header {
        padding: 2.5rem 0 1.5rem 0;
        text-align: center;
    }
    .gallery-header .gallery-title {
        font-size: 2.8rem;
    }
    .gallery-header p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   GALLERY MASONRY — Rounded Corners
   ============================================================ */
.gallery-section {
    padding: 2rem 0 5rem 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--gray-light);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(13, 124, 79, 0.08);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border-color: var(--emerald);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ---- Varying sizes ---- */
.gallery-item.span-2 {
    grid-column: span 2;
}
.gallery-item.span-2h {
    grid-row: span 2;
}
.gallery-item.span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item.span-3 {
    grid-column: span 3;
}

/* ---- Overlay ---- */
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem 1.8rem 1.5rem 1.8rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    border-radius: 0 0 12px 12px;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .overlay h5 {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
    font-family: 'DM Serif Display', serif;
}
.gallery-item .overlay small {
    opacity: 0.85;
    font-weight: 400;
    font-size: 0.85rem;
}
.gallery-item .overlay .tag {
    display: inline-block;
    background: var(--emerald);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    letter-spacing: 0.04em;
    margin-top: 0.4rem;
    border-radius: 0;
}

/* ---- Glowing Border Animation ---- */
@keyframes borderGlowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(13, 124, 79, 0.15);
        border-color: rgba(13, 124, 79, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(13, 124, 79, 0.35);
        border-color: rgba(13, 124, 79, 0.5);
    }
}
.glowing-border {
    animation: borderGlowPulse 3s infinite ease-in-out;
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 260px;
        gap: 14px;
    }
    .gallery-item.span-2 {
        grid-column: span 2;
    }
    .gallery-item.span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .gallery-item.span-3 {
        grid-column: span 3;
    }
    .gallery-item.span-2h {
        grid-row: span 2;
    }
}

@media (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 10px;
    }
    .gallery-item {
        border-radius: 8px;
    }
    .gallery-item.span-2 {
        grid-column: span 2;
    }
    .gallery-item.span-2h {
        grid-row: span 2;
    }
    .gallery-item.span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .gallery-item.span-3 {
        grid-column: span 2;
    }
    .gallery-item .overlay {
        padding: 1rem 1rem 0.8rem 1rem;
        border-radius: 0 0 8px 8px;
    }
    .gallery-item .overlay h5 {
        font-size: 0.95rem;
    }
    .gallery-item .overlay small {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
        gap: 8px;
    }
    .gallery-item {
        border-radius: 6px;
    }
    .gallery-item.span-2 {
        grid-column: span 2;
    }
    .gallery-item.span-2h {
        grid-row: span 2;
    }
    .gallery-item.span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .gallery-item.span-3 {
        grid-column: span 2;
    }
    .gallery-item .overlay {
        padding: 0.6rem 0.6rem 0.4rem 0.6rem;
        border-radius: 0 0 6px 6px;
    }
    .gallery-item .overlay h5 {
        font-size: 0.8rem;
    }
    .gallery-item .overlay small {
        font-size: 0.65rem;
    }
    .gallery-item .overlay .tag {
        font-size: 0.5rem;
        padding: 0.1rem 0.5rem;
    }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 4rem 0;
    background: var(--emerald);
    color: #fff;
}
.cta-section h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.cta-section p {
    opacity: 0.85;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.cta-section .btn-cta {
    background: #fff;
    color: var(--emerald);
    border: 2px solid #fff;
    border-radius: 0;
    padding: 0.7rem 2.8rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.cta-section .btn-cta:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
@media (max-width: 767.98px) {
    .cta-section {
        text-align: center;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1A1A1A;
    color: #bbb;
    padding: 80px 0 35px;
}
.footer-logo {
    font-family: 'DM Serif Display', serif;
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.footer-logo span {
    color: var(--emerald);
}
.footer-about {
    line-height: 1.9;
    color: #999;
    margin-bottom: 30px;
    max-width: 320px;
}
.footer-badge {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    color: #ddd;
    font-size: .85rem;
}
.site-footer h5 {
    font-family: 'DM Serif Display', serif;
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer li {
    margin-bottom: 14px;
}
.site-footer a {
    color: #9d9d9d;
    text-decoration: none;
    transition: .3s;
}
.site-footer a:hover {
    color: var(--emerald);
}
.site-footer hr {
    border-color: rgba(255, 255, 255, .08);
    margin: 40px 0;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: .9rem;
}
.footer-social {
    display: flex;
    gap: 18px;
}
.footer-social a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover {
    background: var(--emerald);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-about {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .site-footer h5 {
        text-align: center;
    }
    .site-footer ul {
        text-align: center;
    }
    .footer-logo {
        text-align: center;
    }
    .footer-badge {
        display: block;
        text-align: center;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ============================================================
   ANIMATION & TRANSITION SYSTEM (GSAP-controlled)
   ============================================================ */

/* Scroll Reveal Base */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
    will-change: opacity, transform;
}

/* Stagger items inside a container */
.stagger-item {
    will-change: opacity, transform;
}

/* Active State for Intersection Observer (fallback) */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
    /* GSAP handles this */
}

/* Fade-up text animation */
.fade-up-text {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Icon Animations */
.animated-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

*:hover > .animated-icon,
a:hover .animated-icon,
button:hover .animated-icon {
    transform: scale(1.25) rotate(6deg);
    color: var(--emerald);
}

/* Button Animations */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}
.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 124, 79, 0.25);
}
.btn-animate:active {
    transform: translateY(0);
}

/* ============================================================
   CONTINUOUS LOOPING ANIMATIONS
   ============================================================ */

/* 1. Floating Animation */
@keyframes floatContinuous {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}
.float-anim {
    animation: floatContinuous 4.5s ease-in-out infinite;
}

/* 2. Sticker Float */
@keyframes stickerFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}
.sticker-float {
    animation: stickerFloat 5s ease-in-out infinite;
}
.sticker-float-delayed {
    animation: stickerFloat 5s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* 3. Pulse Glow Buttons */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 124, 79, 0.4);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(13, 124, 79, 0);
    }
}
.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* 4. Text Shimmering Effect */
@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}
.shimmer-text {
    background: linear-gradient(90deg, #0D7C4F 0%, #3c9779 25%, #88dfbe 50%, #3c9779 75%, #0D7C4F 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
}

/* 5. Slow Icon Spin */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.spin-slow {
    animation: spinSlow 12s linear infinite;
}

/* 6. Icon Bounce Loop */
@keyframes bounceLoop {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.bounce-loop {
    animation: bounceLoop 2s ease-in-out infinite;
}

/* 7. Badge Scale & Shadow Pulse */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}
.badge-pulse {
    animation: badgePulse 3s ease-in-out infinite;
}

/* 8. Pop-in animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.pop-in {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 9. Slide-in animations */
@keyframes slideInLeftBounce {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    60% {
        transform: translateX(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.slide-in-left {
    animation: slideInLeftBounce 0.8s ease forwards;
}

@keyframes slideInRightBounce {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    60% {
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.slide-in-right {
    animation: slideInRightBounce 0.8s ease forwards;
}

/* 10. Zoom-in pulse */
@keyframes zoomPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}
.zoom-pulse {
    animation: zoomPulse 4s ease-in-out infinite;
}

/* 11. Icon Rotation & Wiggle Loop */
@keyframes rotateLoop {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}
.rotate-loop {
    animation: rotateLoop 3s ease-in-out infinite;
}

/* ============================================================
   RESPECT REDUCED MOTION SETTINGS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-zoom,
    .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none !important;
    }
    
    .animated-icon,
    .btn-animate,
    .float-anim,
    .sticker-float,
    .sticker-float-delayed,
    .pulse-glow,
    .shimmer-text,
    .glowing-border,
    .spin-slow,
    .rotate-loop,
    .bounce-loop,
    .badge-pulse,
    .zoom-pulse {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .fade-up-text {
        opacity: 1;
        animation: none !important;
    }
    
    .pop-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1;
        animation: none !important;
        transform: none !important;
    }
}

/* ============================================================
   TESTIMONIALS — Custom Carousel
   ============================================================ */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials .label {
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.testimonials .label i {
    font-size: 1rem;
}

.testimonials-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 0.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.testimonials .emerald-divider {
    width: 60px;
    height: 4px;
    background: var(--emerald);
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 0;
}

.testimonials .section-subtitle {
    font-weight: 400;
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Carousel Wrapper */
.testimonials-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0 1rem 0;
    margin: 0 -15px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    padding: 0 15px;
}

/* Testimonial Cards */
.testimonial-card {
    flex: 0 0 300px;
    background: var(--white);
    padding: 2rem 1.8rem 1.8rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(13, 124, 79, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.10);
    border-color: rgba(13, 124, 79, 0.2);
}

.testimonial-card .stars {
    color: var(--emerald);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    gap: 3px;
}

.testimonial-card blockquote {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    flex: 1;
}

.testimonial-card .client {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.testimonial-card .client .avatar {
    width: 44px;
    height: 44px;
    background: var(--emerald);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-card .client .info strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
}

.testimonial-card .client .info span {
    font-size: 0.85rem;
    color: #777;
}

/* Responsive card size */
@media (max-width: 767.98px) {
    .testimonials-title {
        font-size: 2.5rem;
    }
    .testimonial-card {
        flex: 0 0 260px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 220px;
        padding: 1rem 1.2rem 1.2rem;
    }
    .testimonial-card blockquote {
        font-size: 0.9rem;
    }
}