/*
 * Naman Impex - Design System & Custom Stylesheet
 * Standard Level Project Structure
 */

:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --platinum-border: rgba(229, 228, 226, 0.4);
    --ambient-glow: 0 40px 60px -15px rgba(0, 0, 0, 0.03);
    --pearl-white: #fcf9f8;
    --champagne-gold: #6c5e06;
}

body {
    background-color: #edebe7;
    background-attachment: fixed;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}


/* ── Diamond wrappers (appended to body by main.js) ───────────────────────── */
/* Diamonds are position:fixed, z-index:15 — above all sections (z-10), below nav (z-100) */
/* No mix-blend-mode — zero colour bleed / blue tint on any background */


.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--platinum-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--champagne-gold);
    transform: translateY(-4px);
    box-shadow: var(--ambient-glow);
}

.image-zoom-container:hover img {
    transform: scale(1.08);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Mobile Menu Overlay Styles */
#mobile-menu-overlay {
    clip-path: circle(0% at 90% 5%);
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu-overlay.active {
    clip-path: circle(150% at 90% 5%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

html {
    scroll-behavior: smooth;
}

/* Premium sliding underline animation */
.nav-link-underline {
    position: relative;
    display: inline-block;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(var(--underline-scale, 0));
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--champagne-gold);
    transform-origin: bottom left;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link-underline:hover::after {
    transform: scaleX(1) !important;
}

/* Navigation Theme Transitions (Light Theme) */
#main-nav {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s ease-in-out !important;
}

#main-nav .logo-text {
    font-family: 'Cormorant Garamond', serif !important;
    color: #063675 !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.4s ease-in-out !important;
}

#main-nav .logo-subtext {
    color: #6c5e06 !important;
    transition: color 0.4s ease-in-out !important;
}

#main-nav .nav-link {
    color: #444845 !important;
    transition: color 0.3s ease !important;
}

#main-nav .nav-link:hover {
    color: #6c5e06 !important;
}

#main-nav .contact-btn {
    color: #1c1b1b !important;
    border-color: #1c1b1b !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}

#main-nav .contact-btn:hover {
    background-color: #1c1b1b !important;
    color: #ffffff !important;
    border-color: #1c1b1b !important;
}

#main-nav #mobile-menu-toggle {
    color: #5e5e5d !important;
    transition: color 0.3s ease !important;
}

/* Scrolled navigation state */
#main-nav.nav-scrolled {
    background-color: rgba(237, 235, 231, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}


/* ── Platinum border utility ─────────────────────────────────────────────── */
.platinum-border {
    border-color: var(--platinum-border);
}

/* ── Luxury heading font — Cormorant Garamond for H1 & H2 ───────────────── */
h1,
h2 {
    font-family: 'Cormorant Garamond', serif !important;
    letter-spacing: -0.01em;
}


/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM LUXURY CONTACT FORM
   ══════════════════════════════════════════════════════════════════════════ */

/* Card wrapper */
.luxury-form-card {
    background: linear-gradient(158deg, #ffffff 0%, #faf8f5 100%);
    border: 1px solid rgba(108, 94, 6, 0.28);
    padding: 3rem 2.75rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(108, 94, 6, 0.07),
        0 24px 64px -12px rgba(10, 29, 55, 0.13),
        0 4px 18px -4px rgba(108, 94, 6, 0.10);
}

/* Top gradient line */
.luxury-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(108, 94, 6, 0.55) 40%,
            rgba(10, 29, 55, 0.35) 60%,
            transparent);
}

/* Subtle inner glare */
.luxury-form-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg,
            rgba(255, 255, 255, 0.18) 0%,
            transparent 55%);
    pointer-events: none;
}

/* Form layout */
.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    position: relative;
    z-index: 1;
}

/* Individual field */
.lf-field {
    position: relative;
    padding-top: 0.75rem;
}

/* Input / Textarea base */
.lf-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(68, 72, 69, 0.18);
    padding: 0.75rem 0 0.625rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1c1b1b;
    outline: none;
    display: block;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lf-input:focus {
    border-color: transparent;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Floating label */
.lf-label {
    position: absolute;
    top: 1.5rem;
    left: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(68, 72, 69, 0.82);
    pointer-events: none;
    transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Label floats up when focused or filled */
.lf-input:focus+.lf-label,
.lf-input:not(:placeholder-shown)+.lf-label {
    top: 0;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--champagne-gold);
}

/* Animated underline */
.lf-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--champagne-gold) 0%, #0a1d37 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lf-input:focus~.lf-line {
    transform: scaleX(1);
}

/* Textarea — kill all Tailwind Forms plugin focus ring + browser defaults */
.lf-textarea {
    resize: none;
    min-height: 90px;
    line-height: 1.65;
    border: none !important;
    border-bottom: 1px solid rgba(68, 72, 69, 0.18) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}

.lf-textarea:focus {
    border: none !important;
    border-bottom: 1px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}

/* Submit button */
.lf-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #1c1b1b;
    color: #ffffff;
    border: none;
    padding: 1.375rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.2s ease;
    margin-top: 0.375rem;
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer sweep */
.lf-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg,
            transparent 28%,
            rgba(108, 94, 6, 0.42) 50%,
            transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lf-btn:hover::before {
    transform: translateX(160%);
}

.lf-btn:hover {
    background: #0a1d37;
}

.lf-btn:active {
    transform: scale(0.985);
}

.lf-btn__text {
    position: relative;
    z-index: 1;
}

.lf-btn__arrow {
    font-size: 20px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1;
}

.lf-btn:hover .lf-btn__arrow {
    transform: translateX(8px);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .luxury-form-card {
        padding: 2rem 1.5rem;
    }

    .luxury-form {
        gap: 2rem;
    }

    .lf-btn {
        padding: 1.25rem 1.5rem;
        font-size: 10px;
        letter-spacing: 0.22em;
    }
}

.number-font {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
}

/* ── Diamond Constellation Section ─────────────────────────────────────── */
.constellation-wrapper {
    position: relative;
    width: 180px;
    aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
    .constellation-wrapper {
        width: 260px;
    }
}

/* Slow-rotation wrapper — spins the entire diamond + sparkle composition */
.constellation-spin {
    position: absolute;
    inset: 0;
    animation: constellationSpin 30s linear infinite;
}

@keyframes constellationSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.constellation-diamond-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 0.95;
    /* rich warm golden shadow */
    filter: drop-shadow(0 12px 24px rgba(108, 94, 6, 0.35)) drop-shadow(0 4px 8px rgba(108, 94, 6, 0.20));
}

/* ── 4-pointed diamond sparkle flares ───────────────────────────────────── */
/* Element is sized to --sl × --sl; negative margin centers it on the position point
   so transform-origin:center means scale/rotate work from the cross centre. */
.sparkle {
    position: absolute;
    display: block;
    width: var(--sl, 24px);
    height: var(--sl, 24px);
    margin-left: calc(var(--sl, 24px) * -0.5);
    margin-top: calc(var(--sl, 24px) * -0.5);
    animation: sparklePulse 6s ease-in-out infinite;
    animation-delay: var(--gd, 0s);
    pointer-events: none;
    z-index: 10;
    /* Tiny, sharp pure white glint core */
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.3) 25%, transparent 55%);
}

/* Vertical arm — simple, clean white */
.sparkle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            transparent 0%,
            #ffffff 50%,
            transparent 100%);
}

/* Horizontal arm — simple, clean white */
.sparkle::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(to right,
            transparent 0%,
            #ffffff 50%,
            transparent 100%);
}

@keyframes sparklePulse {

    0%,
    30%,
    70%,
    100% {
        opacity: 0;
        transform: scale(0.2) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.8) rotate(90deg);
    }
}

.visual-anchor-text {
    text-shadow: 0.5px 0.5px 0 currentColor, -0.3px 0 0 currentColor;
}

.label-heading {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
}

/* ── Premium paper-grain texture overlay ────────────────────────────────── */
/* Fixed ::after sits above all content at z-index:9999 with pointer-events:none
   so it never blocks clicks — pure visual grain like the Stitch reference site */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.055;
}

/* ── Scrolling Ticker Strip ─────────────────────────────────────────────── */
.ticker-track {
    display: flex;
    width: max-content;
    padding: 11px 0;
    animation: tickerMove 34s linear infinite;
}

.ticker-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6c5e06;
    white-space: nowrap;
}

.ticker-dot {
    opacity: 0.45;
    margin: 0 1.1em;
    font-size: 7px;
    vertical-align: middle;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Hero Constellation Responsive Styles ──────────────────────────────── */
.hero-constellation-container {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {

    /* Hero height — enough for diamond below buttons, no excess empty space */
    section:first-of-type {
        min-height: 115vh !important;
        align-items: flex-start !important;
        /* content starts below navbar, no top gap */
        padding-top: 96px !important;
        /* nav height (80px) + small breathing room */
    }

    .hero-constellation-container {
        /* Full-width container, flex-centered child = reliable horizontal center */
        bottom: 5%;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0.90;
    }

    .hero-constellation-wrapper {
        width: 150px !important;
    }

    .hero-constellation-wrapper .sparkle {
        --sl: 14px !important;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-constellation-container {
        /* Stretch full visible area (below nav) and use flex to center child */
        top: 80px;
        /* fixed nav height */
        bottom: 0;
        right: 8%;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
    }

    .hero-constellation-wrapper {
        width: 220px !important;
    }

    .hero-constellation-wrapper .sparkle {
        --sl: 20px !important;
    }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-constellation-container {
        /* Stretch full visible area (below nav) and use flex to center child */
        top: 80px;
        /* fixed nav height */
        bottom: 0;
        right: 8%;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
    }

    .hero-constellation-wrapper {
        width: 280px !important;
    }
}

/* Desktop (1440px+) */
@media (min-width: 1440px) {
    .hero-constellation-container {
        /* Stretch full visible area (below nav) and use flex to center child */
        top: 80px;
        /* fixed nav height */
        bottom: 0;
        right: 12%;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
    }

    .hero-constellation-wrapper {
        width: 340px !important;
    }
}

/* ── Sub-Hero Dual Diamond Constellation ───────────────────────────────── */
/* Both tapper & baguette side-by-side below the hero ticker strip */
.sub-constellation-wrapper {
    width: 130px !important;
    opacity: 0;
    animation: subDiamondFadeIn 1.2s ease-out 0.3s forwards;
}

@keyframes subDiamondFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@media (min-width: 768px) {
    .sub-constellation-wrapper {
        width: 180px !important;
    }
}

@media (min-width: 1024px) {
    .sub-constellation-wrapper {
        width: 220px !important;
    }
}

@media (min-width: 1440px) {
    .sub-constellation-wrapper {
        width: 260px !important;
    }
}

/* ── Philosophy Section — Diamond Left, Content Right ───────────────────── */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Tablet and up: side-by-side */
@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1.6fr;
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1.8fr;
        gap: 5rem;
    }
}

@media (min-width: 1440px) {
    .philosophy-grid {
        gap: 6rem;
    }
}

/* Diamond column — always centered */
.philosophy-diamond-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override sub-constellation sizes for this specific use */
.philosophy-constellation {
    width: 150px !important;
    /* Override fade-in — always visible */
    opacity: 0;
    animation: subDiamondFadeIn 1.2s ease-out 0.3s forwards !important;
}

@media (min-width: 768px) {
    .philosophy-constellation {
        width: 220px !important;
    }
}

@media (min-width: 1024px) {
    .philosophy-constellation {
        width: 280px !important;
    }
}

@media (min-width: 1440px) {
    .philosophy-constellation {
        width: 340px !important;
    }
}

/* Content column — right-aligned on all breakpoints */
.philosophy-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

/* Mobile: stack diamond on top, center text */
@media (max-width: 767px) {
    .philosophy-diamond-col {
        order: -1;
        /* diamond on top when stacked */
    }

    .philosophy-content-col {
        text-align: center;
    }
}

/* Keyboard accessibility - focus outline */
*:focus-visible {
    outline: 2px solid var(--champagne-gold, #6c5e06) !important;
    outline-offset: 2px !important;
}

/* Explicit Navy Dark Blue for headings */
.text-luxury-navy {
    color: #063675 !important;
}

/* ── Floating WhatsApp Button & Contact Hover Animations ────────────────── */

.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    animation: whatsappBob 4s ease-in-out infinite;
}

.whatsapp-float-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%; /* Perfect circle */
    background-color: #063675; /* WhatsApp green */
    border: 2px solid rgb(255, 255, 255);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.40);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

/* Subtle green halo effect behind the button on hover */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(37, 211, 102, 0.45);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.whatsapp-float-btn:hover .whatsapp-float-btn-content {
    background-color: #1ebe5d; /* Deeper WhatsApp green on hover */
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-btn:hover::before {
    inset: -9px;
    opacity: 1;
    border-color: rgba(37, 211, 102, 0.28);
}

.whatsapp-float-btn svg {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-float-btn:hover svg {
    transform: scale(1.1) rotate(6deg);
}

/* Contact Detail Box hover effect */
.contact-icon-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border-radius: 50% !important; /* Perfect circle for all 4 contact icons */
}

/* Ringing animation for Call Icons */
@keyframes contactPhoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-8deg) scale(1.1); }
    20%, 40%, 60%, 80% { transform: rotate(8deg) scale(1.1); }
}

.group:hover .contact-icon-phone {
    animation: contactPhoneRing 0.8s ease-in-out;
}

/* Slide/reveal animation for Envelope Icon */
@keyframes contactEmailSlide {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.1); }
}

.group:hover .contact-icon-email {
    animation: contactEmailSlide 0.6s ease-in-out;
}

/* Bouncing animation for Location Icon */
@keyframes contactPinBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-6px) scale(1.1); }
    60% { transform: translateY(2px) scale(0.95); }
}

.group:hover .contact-icon-location {
    animation: contactPinBounce 0.8s ease-in-out;
}

/* Bobbing animation for floating button */
@keyframes whatsappBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive styles for Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        animation: whatsappBobMobile 3.5s ease-in-out infinite;
    }
    
    .whatsapp-float-btn-content {
        width: 52px;
        height: 52px;
        border-radius: 50%;
    }
    
    .whatsapp-float-btn-content svg {
        width: 24px;
        height: 24px;
    }

    @keyframes whatsappBobMobile {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-6px);
        }
    }
}