/* Variables & resets */
:root {
    --primary-color: #D4AF37;
    /* Gold / Champagne */
    --primary-dark: #b5952f;
    --text-color: #333333;
    --text-light: #555555;
    --bg-color: #ffffff;
    --bg-light: #faf9f6;
    /* Off-white / Ivory */
    --border-color: #eee;
    --font-heading: 'Cormorant', serif;
    --font-body: 'Assistant', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    font-display: swap;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Optimizing repaint/reflow outside viewport */
    content-visibility: auto;
    contain-intrinsic-size: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 300;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    word-break: break-word;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* CENTER TITLE LOGO */
.center-title-logo {
    height: 110px;
    margin: 0 auto 10px auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

/* MARKETING BAR */
.marketing-bar {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 100;
    animation: flash 2s infinite alternate;
}

@keyframes flash {
    from {
        background: var(--primary-color);
    }

    to {
        background: #E8C14B;
    }
}

/* STICKY WHATSAPP */
.sticky-wa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounce-wa 3s infinite;
}

.sticky-wa-btn:hover {
    transform: scale(1.05);
}

@keyframes bounce-wa {

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

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

/* pb for mobile so footer doesn't hide behind sticky button */
.pb-mobile-spacing {
    padding-bottom: 90px;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding-top: 50px;
}

/* Shifted hero-bg to apply natively onto the <img> tag instead of background-url, which scores vastly better on LCP */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.05);
    z-index: 1;
    /* Keeping it behind overlay */
    will-change: transform;
    /* Hinting the browser for smooth parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
    /* Explicitly above the background image */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: -12vh;
    /* Push everything higher up as requested */
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle-block {
    display: block;
    font-size: 2.2rem;
    margin-top: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    padding: 0 10px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    /* Better mobile default */
    align-items: center;
}

@media(min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-benefits span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 600px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #000;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    flex-grow: 1;
}

.service-cta {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
    align-items: start;
}

.testimonial-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #fdfdfd;
}

.testimonial-card img {
    width: 100%;
    /* Reverting height to auto to enforce specific layout ratios while respecting width */
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/4;
    /* Guarantee zero CLS during load */
    transition: transform 0.4s ease;
}

img.keep-original {
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

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

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #f4f4f4;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Footer Section */
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

.footer-logo {
    max-width: 120px;
    /* Reduced to keep it clean */
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* Mobile Overrides Strategy */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle-block {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        font-weight: 400;
        padding: 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Full width buttons on mobile */
    .hero-buttons {
        width: 100%;
        max-width: none;
    }

    .hero-benefits {
        flex-direction: column;
        gap: 10px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }