/*
* RUPAYNA - Ultra Luxury Aesthetic Brand
* Design System & Core Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --color-black: #050505;
    --color-off-black: #0a0a0a;
    --color-white: #ffffff;
    --color-off-white: #fcfcfc;
    --color-gold: #D4AF37;
    --color-gold-light: #F1D78A;
    --color-gold-dim: #997B1A;
    --color-grey-500: #888888;
    --color-grey-100: #f5f5f5;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    --gradient-dark: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));

    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-spacing: 120px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-main);
    overflow-x: hidden !important;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility */
.display-text {
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-gold {
    color: var(--color-gold);
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.grid {
    display: grid;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Less rounded */
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
}

.btn-primary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-black);
}

.btn-outline {
    background: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #000;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
    z-index: 1;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 5%;
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeUp 1s ease 1s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Utilities for Section 2 onwards */
.trust-strip {
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-grey-100);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.icon-gold {
    color: var(--color-gold);
    font-size: 1.2rem;
}

/* Services Carousel Styles */
.services-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.services-carousel {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

.services-track {
    display: flex !important;
    gap: 2rem !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: max-content !important;
    padding: 2rem 0;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Less rounded */
    cursor: pointer;
    height: 400px;
    min-width: 300px;
    flex-shrink: 0;
    border: 1px solid var(--color-grey-100);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-gold);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.service-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 4px;
    /* Less rounded (Square-ish) */
    background: white;
    border: 1px solid var(--color-grey-100);
    color: var(--color-black);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ----------------------------------------------------------------
   SYSTEM & ERROR PAGES (11 - RUPAYNA)
   Ultra-Luxury | Calm | Trust-Preserving
---------------------------------------------------------------- */

.sys-body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sys-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: radial-gradient(circle at center, #fafafa 0%, #ffffff 100%);
}

.sys-icon-large {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.sys-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.sys-subtext {
    font-size: 1.1rem;
    color: var(--color-grey-500);
    max-width: 500px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.sys-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.sys-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-grey-100);
}

.sys-footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.sys-link {
    color: var(--color-black);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid transparent;
}

.sys-link:hover {
    border-bottom-color: var(--color-gold);
    color: var(--color-gold);
}

/* Maintenance Page Specifics */
.maint-bg {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
}

.maint-divider {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 2rem auto;
}

/* ----------------------------------------------------------------
   MOBILE RESPONSIVE STYLES
---------------------------------------------------------------- */

/* Tablet and Below */
@media (max-width: 968px) {
    :root {
        --section-spacing: 80px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        height: 80vh;
        min-height: 600px;
    }

    .hero-content {
        padding-left: 0;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .trust-strip {
        padding: 2rem 0;
    }

    .trust-item {
        font-size: 0.85rem;
        gap: 0.75rem;
    }

    .service-card {
        height: 350px;
        min-width: 280px;
    }

    .service-overlay h3 {
        font-size: 1.3rem;
    }

    .sys-title {
        font-size: 2.5rem;
    }

    .sys-subtext {
        font-size: 1rem;
    }

    .sys-actions {
        flex-direction: column;
        gap: 1rem;
    }

    /* Homepage inline style overrides (968px) */
    .about-section .display-text,
    .services-section .display-text,
    .why-choose .display-text,
    .experts-section .display-text,
    .results-section .display-text,
    .how-it-works .display-text,
    .testimonials .display-text,
    .gallery-section .display-text,
    .final-cta .display-text,
    .cta-consultation .display-text {
        font-size: 2.25rem !important;
        margin-bottom: 2.5rem !important;
    }

    .about-section .d-flex {
        gap: 3rem !important;
    }

    .about-section .d-flex>div {
        min-width: 300px !important;
    }

    .about-section .d-flex p {
        font-size: 1rem !important;
    }

    /* Trust strip wrap fix */
    .trust-strip .container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 2rem !important;
    }
    .trust-item {
        flex: 1 1 150px !important;
        justify-content: center !important;
    }
}


/* Mobile */
@media (max-width: 640px) {
    :root {
        --section-spacing: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.8rem;
    }

    .trust-strip {
        padding: 1.5rem 0;
    }

    .trust-item {
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .icon-gold {
        font-size: 1rem;
    }

    /* Footer Grid Mobile Fix */
    .footer .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem !important;
    }

    .footer .footer-grid > div:first-child,
    .footer .footer-grid > div:last-child {
        grid-column: span 2;
    }

    .service-card {
        height: 300px;
        min-width: 250px;
    }

    .service-overlay {
        padding: 1.5rem;
    }

    .service-overlay h3 {
        font-size: 1.1rem;
    }

    .services-track {
        gap: 1.5rem !important;
        padding: 1.5rem 0;
    }

    .sys-icon-large {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .sys-title {
        font-size: 2rem;
    }

    .sys-subtext {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .sys-footer {
        padding: 1.5rem;
    }

    .sys-footer-logo {
        font-size: 1rem;
    }

    /* =========================================
       HOMEPAGE INLINE STYLE OVERRIDES (640px)
       These use !important because index.php
       uses inline styles that block media queries
       ========================================= */

    /* Section headings */
    .about-section .display-text,
    .services-section .display-text,
    .why-choose .display-text,
    .experts-section .display-text,
    .results-section .display-text,
    .how-it-works .display-text,
    .testimonials .display-text,
    .gallery-section .display-text,
    .final-cta .display-text,
    .cta-consultation .display-text {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }

    /* About section */
    .about-section .d-flex {
        gap: 2rem !important;
        flex-direction: column !important;
    }

    .about-section .d-flex>div {
        min-width: 100% !important;
        flex: none !important;
    }

    .about-section .d-flex p {
        font-size: 0.95rem !important;
    }

    /* Why Choose Us grid */
    .why-choose .grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }

    .why-choose .grid>div i {
        font-size: 2rem !important;
    }

    .why-choose .grid>div h3 {
        font-size: 1.05rem !important;
    }

    .why-choose .grid>div p {
        font-size: 0.9rem !important;
    }

    /* How it works */
    .how-it-works .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .how-it-works .step-number {
        font-size: 3rem !important;
    }

    .how-it-works .step-card h3 {
        font-size: 1.2rem !important;
    }

    /* Testimonials */
    .testimonials .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .testimonials .grid>div {
        padding: 2rem !important;
    }

    /* CTA sections */
    .cta-consultation .display-text {
        font-size: 1.5rem !important;
    }

    .cta-consultation p {
        font-size: 1rem !important;
    }

    .final-cta .display-text {
        font-size: 1.5rem !important;
    }

    /* Service cards inline overrides */
    .service-card {
        min-width: 250px !important;
        max-width: none !important;
    }

    .service-card img {
        height: 300px !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .service-card {
        min-width: 220px !important;
        height: 280px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }

    .sys-title {
        font-size: 1.75rem;
    }

    /* Homepage inline overrides (480px) */
    .about-section .display-text,
    .services-section .display-text,
    .why-choose .display-text,
    .experts-section .display-text,
    .results-section .display-text,
    .how-it-works .display-text,
    .testimonials .display-text,
    .gallery-section .display-text,
    .final-cta .display-text,
    .cta-consultation .display-text {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .why-choose .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .about-section .d-flex>div p {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }

    .cta-consultation .display-text {
        font-size: 1.3rem !important;
    }

    .final-cta .display-text {
        font-size: 1.3rem !important;
    }

    .service-card img {
        height: 280px !important;
    }
}
@media (max-width: 768px) { .d-flex { flex-wrap: wrap; } }

/* -------------------------------------------
   PREVENT SERVICE PAGE COLLAPSE BUGS 
   ------------------------------------------- */
.svc-two-col-row, .hydra-top-row {
    grid-template-columns: 1fr 300px !important;
}
.svc-steps-col, .svc-booking-aside, .hydra-steps-col, .hydra-top-right {
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.svc-pricing-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
}
.hydra-steps-col > div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
}

@media (max-width: 968px) {
    .svc-two-col-row, .hydra-top-row {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .svc-pricing-inner, .hydra-steps-col > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
    .pricing-card {
        border-right: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
}
