/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fcf9f2;
    /* Soft luxury cream */
    color: #1a1a1a;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.serif {
    font-family: 'Cinzel', serif;
}

/* Gradient text utility */
.gradient-text,
.section-title,
.product-info h1 {
    background: linear-gradient(45deg, #111 20%, #014c40 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #111;
}

/* Ensure hero and feature headings remain white */
.hero h1,
.features .section-title,
.page-header h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #fff !important;
}

.page-header h1 {
    color: #014c40 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Custom Selection */
::selection {
    background: #014c40;
    color: #fff;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffebe6;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-brand {
    color: #014c40;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    letter-spacing: 5px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    top: 20px;
    width: 90%;
    left: 5%;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand {
    display: flex;
    align-items: center;
}

@media(max-width: 768px) {
    .brand span {
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
    }
    .brand img {
        height: 40px !important;
        max-width: 200px;
        object-fit: contain;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    color: #111;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: 0.3s;
    font-family: 'Cinzel', serif;
}

.hero .nav-links li a {
    color: #fff;
    /* White only when over hero section */
}

.navbar.scrolled .nav-links li a {
    color: #111;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #014c40;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #014c40;
}

.hamburger {
    display: none;
    color: #111;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: #111;
}

/* Home Nav Specifics */
.navbar.home-nav:not(.scrolled) .nav-links li a {
    color: #fff;
}

.navbar.home-nav:not(.scrolled) .brand span {
    color: #fff;
}

.navbar.home-nav:not(.scrolled) .hamburger {
    color: #fff;
}

/* Logo White/Dark logic */
.logo-white {
    display: none;
}

.logo-dark {
    display: block;
}

.navbar.home-nav:not(.scrolled) .logo-dark {
    display: none;
}

.navbar.home-nav:not(.scrolled) .logo-white {
    display: block;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }
    
    .navbar.scrolled {
        padding: 15px 20px;
        width: 95%;
        left: 2.5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        visibility: hidden;
        height: 100vh;
        width: 100%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0.5s;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0s;
    }

    .nav-links li a {
        color: #111 !important;
        /* Always dark on mobile menu */
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .navbar.scrolled .hamburger {
        color: #014c40;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.hero-content .btn-primary {
    border: 1px solid #fff;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.hero-content .btn-primary::before {
    background: #fff;
}

.hero-content .btn-primary:hover {
    color: #014c40;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #014c40;
    color: #014c40;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    transition: 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #014c40;
    z-index: -1;
    transition: 0.4s ease;
}

.btn-primary:hover {
    color: #fff;
}

.btn-primary:hover::before {
    width: 100%;
}

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

/* Page Header */
.page-header {
    background: #fcf9f2 !important;
    padding: 150px 50px 80px !important;
    text-align: center !important;
}

@media(max-width: 768px) {
    .page-header {
        padding: 120px 20px 60px !important;
    }
}

/* Sections */
.section {
    padding: 120px 50px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

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

/* About / Intro */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: #014c40;
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.about-img {
    flex: 1;
    height: 500px;
    overflow: hidden;
    position: relative;
}

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

.about-img:hover img {
    transform: scale(1.05);
}

@media(max-width: 900px) {
    .about {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
    }

    .about-modern,
    .about-collage {
        flex-direction: column !important;
        padding: 0 !important;
        text-align: center;
        gap: 30px !important;
    }

    .about-collage-imgs {
        height: auto !important;
    }

    .about-modern-img,
    .arch-img-wrapper {
        width: 100% !important;
        height: 300px !important;
        border-radius: 0 !important;
        position: relative !important;
    }

    .square-img-wrapper {
        display: none !important;
        /* Hide secondary image on small screens for cleaner look */
    }

    .about-modern-text,
    .about-collage-text {
        width: 100% !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 20px !important;
    }
    
    .about-collage-text h3,
    .about-collage-text h4 {
        text-align: center !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.8rem !important;
    }
}

/* Products Grid - Grid of 4 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    /* Center items if they don't fill the row */
}

@media(max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* Reduce gap on mobile */
        padding: 10px;
    }
}

.product-card {
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    z-index: 2;
}

.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #111;
    letter-spacing: 1px;
}

.product-card .price {
    color: #014c40;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 12px;
}

.btn-whatsapp {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: #fff;
    color: #111;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-card:hover .btn-whatsapp {
    bottom: 20px;
    opacity: 1;
}

.btn-whatsapp:hover {
    background: #014c40;
    color: #fff;
    box-shadow: 0 8px 20px rgba(1, 76, 64, 0.3);
}

/* Why Choose Us */
.features {
    background: #111;
    color: #fff;
    padding: 100px 50px;
}

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

.features .section-title {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: #014c40;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-item p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    height: auto;
    /* Let items determine their own height */
    overflow: hidden;
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: 0.5s;
}

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

@media(max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media(max-width: 600px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
    }
    .gallery-item {
        margin-bottom: 15px;
    }
}

/* Testimonials */
.testimonials {
    background: #f9f5ed;
    text-align: center;
}

.testimonial-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    font-style: italic;
    color: #444;
}

.testimonial-wrap p {
    margin-bottom: 30px;
}

.testimonial-author {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    color: #014c40;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: #fff0e6;
    color: #333;
    padding: 80px 50px 30px;
    border-top: 1px solid #eee;
}

@media(max-width: 768px) {
    footer {
        padding: 60px 20px 30px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
    padding-bottom: 50px;
}

.footer-col h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #014c40;
    margin-bottom: 25px;
}

.footer-col p,
.footer-col a {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #014c40;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
}

.social-links a:hover {
    background: #014c40;
    border-color: #014c40;
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    color: #999;
    font-size: 0.9rem;
}

/* Custom Cursor (for desktop only) */
@media(min-width: 1025px) {
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        background-color: #014c40;
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
        z-index: 10000;
        mix-blend-mode: difference;
    }

    .custom-cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 1px solid #014c40;
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
        z-index: 9999;
    }

    .custom-cursor.hover {
        width: 60px;
        height: 60px;
        opacity: 0.1;
    }
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 4s infinite ease-in-out;
}

/* Text Shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer {
    background: linear-gradient(90deg, #111 0%, #014c40 50%, #111 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

/* Contact Page Grid */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 50px;
    align-items: start;
}

@media(max-width: 768px) {
    .contact-wrapper {
        padding: 0 20px;
    }
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: #fff;
    padding: 25px;
    border-radius: 0;
    /* Boxy luxury look */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border-top: 3px solid #014c40;
    transition: 0.3s;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card i {
    font-size: 1.2rem;
    color: #014c40;
    margin-bottom: 12px;
    display: block;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    height: 450px;
    margin-bottom: 100px;
    filter: grayscale(1);
    transition: 0.5s;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.map-container:hover {
    filter: grayscale(0);
}

/* Instagram Grid */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
}

.ig-item {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1 / 1;
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 76, 64, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: 0.3s;
}

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

.ig-item:hover .ig-overlay {
    opacity: 1;
}

@media(max-width: 1000px) {
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 600px) {
    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Scroll To Top */
.scroll-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #014c40;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.active {
    bottom: 30px;
}

.scroll-to-top:hover {
    background: #111;
    transform: translateY(-3px);
}

@media(max-width: 768px) {
    p {
        text-align: justify !important;
    }
}