/* ============================================================
   KURUNDUHAMI PRODUCTS - COMING SOON PAGE
   Artisanal Botanical Spice Sketches | Pure CSS | Responsive
   ============================================================ */

/* ---------- Reset & Box Model ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #8c4418;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Preloader Screen ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Exactly identical to the desktop screen style (radial gradient + silk lighting sheen) */
    background:
        linear-gradient(130deg,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 34%,
            rgba(255, 245, 220, 0.18) 52%,
            transparent 70%,
            rgba(50, 20, 5, 0.16) 100%),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 88% 82%, rgba(40, 15, 5, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 72% 78% at 50% 46%,
            #fff8ed 0%,
            #fae8c6 25%,
            #ebb878 52%,
            #c57834 77%,
            #8c4418 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 3 Horizontal Pulsing Dots */
.loader-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loader-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8e4418;
    box-shadow: none; /* No shadow - plain crisp dots */
    display: inline-block;
    animation: dotPulse 1.35s infinite ease-in-out both;
}

.loader-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dots .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.65);
        opacity: 0.3;
    }
    40% {
        transform: scale(1.15);
        opacity: 1;
        background: #b82315;
    }
}

/* ---------- Main Stage ---------- */
.stage {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    /*
     * Warm radiant golden-amber background
     * Glowing warm cream center (#fff8ed) -> deep golden honey -> warm golden cinnamon
     * (Dark brown tone softened slightly as requested)
     */
    background:
        radial-gradient(ellipse 72% 78% at 50% 46%,
            #fff8ed 0%,
            #fae8c6 25%,
            #ebb878 52%,
            #c57834 77%,
            #8c4418 100%);
}

/* Diagonal lighting sheen (silk / parchment sheen) */
.silk-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(130deg,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 34%,
            rgba(255, 245, 220, 0.18) 52%,
            transparent 70%,
            rgba(50, 20, 5, 0.16) 100%),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 88% 82%, rgba(40, 15, 5, 0.22) 0%, transparent 50%);
}

/* ---------- Botanical Sketch Wrappers (Anchored to Corners, Large & Soft) ---------- */
.sketch-wrapper {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

/* Left: Aromatic Spices cluster anchored in bottom-left corner */
.left-sketch {
    left: -3vw;
    bottom: -5vh;
    width: clamp(340px, 42vw, 680px);
}

/* Right: Ceylon Cinnamon quills & leaves anchored in bottom-right corner */
.right-sketch {
    right: -3vw;
    bottom: -5vh;
    width: clamp(320px, 38vw, 620px);
}

/*
 * Sketch Art Images:
 * Larger size + lower opacity (0.35) gives an ultra-luxurious, subtle watermark engraving feel!
 */
.sketch-art {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    opacity: 0.28; /* Slightly softened watermark opacity across all screens */
    filter: contrast(1.12);
    transition: opacity 0.5s ease;
}

/* Soft mask fade towards center so it melts into the background */
.left-sketch .sketch-art {
    -webkit-mask-image: linear-gradient(to top right, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.1) 95%, transparent 100%);
    mask-image: linear-gradient(to top right, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.1) 95%, transparent 100%);
}

.right-sketch .sketch-art {
    -webkit-mask-image: linear-gradient(to top left, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.1) 95%, transparent 100%);
    mask-image: linear-gradient(to top left, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.1) 95%, transparent 100%);
}

/* ---------- Center Main Content ---------- */
.center-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    width: 90%;
    padding: 20px;
    animation: contentEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Logo Box */
.logo-box {
    margin-bottom: 22px;
}

.brand-logo {
    display: block;
    width: clamp(220px, 24vw, 340px); /* Increased more for desktop */
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(60, 25, 5, 0.16));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Headline */
.main-headline {
    font-family: 'Merriweather', Georgia, serif;
    color: #2b1204;
    line-height: 1.18;
    margin-bottom: 26px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.65);
}

.sub-line {
    display: block;
    font-weight: 300;
    font-size: clamp(28px, 4.2vw, 52px); /* Enlarged to match logo */
    letter-spacing: -0.01em;
}

.highlight-line {
    display: block;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(34px, 5vw, 62px); /* Enlarged to match logo */
    letter-spacing: -0.02em;
    color: #220e03;
}

/* Red accent on "soon!" matching the Kurunduhami brand red */
.red-accent {
    color: #b82315;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Separator Row */
.stay-tuned-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.divider-line {
    flex: 0 1 100px;
    height: 1.5px;
    background: linear-gradient(to right,
        transparent,
        rgba(150, 85, 35, 0.85) 50%,
        transparent);
    border-radius: 2px;
}

.stay-tuned-text {
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 27px); /* Enlarged */
    color: #4a240c;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Entrance Animation */
@keyframes contentEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   RESPONSIVE DESIGN (Desktop Landscape is preserved 100% untouched above)
   ============================================================ */

/*
 * Portrait Mode for ALL Tablets & Phones
 * (Catches iPad Pro 13 [1032x1376], iPad Pro 11 [834x1194], iPad Air, etc.)
 * In portrait mode, diagonal framing ensures the top and bottom corners are beautifully balanced!
 */
@media (orientation: portrait) {
    .stage {
        background:
            radial-gradient(ellipse 90% 80% at 50% 48%,
                #fff9f0 0%,
                #fbebc9 26%,
                #edbf83 54%,
                #cc7e38 78%,
                #8e4618 100%);
    }

    .silk-overlay {
        opacity: 0.65;
    }

    /* Top-left botanical spices bouquet */
    .left-sketch {
        width: clamp(380px, 66vw, 680px);
        left: -8vw;
        top: -3vh;
        bottom: auto;
        transform: none;
    }

    /* Bottom-right Ceylon cinnamon bouquet */
    .right-sketch {
        width: clamp(360px, 64vw, 650px);
        right: -8vw;
        bottom: -3vh;
    }

    .sketch-art {
        opacity: 0.26;
    }

    /* Center content properly scaled for tall tablet canvas */
    .center-content {
        max-width: 720px;
        width: 90%;
    }

    .brand-logo {
        width: clamp(240px, 30vw, 360px); /* Increased more for portrait tablets */
    }

    .sub-line {
        font-size: clamp(36px, 5.5vw, 62px); /* Enlarged for tablet */
    }

    .highlight-line {
        font-size: clamp(42px, 6.4vw, 74px); /* Enlarged for tablet */
    }

    .stay-tuned-text {
        font-size: clamp(25px, 3.4vw, 34px); /* Enlarged for tablet */
    }

    .divider-line {
        flex: 0 1 110px;
    }
}

/* --- Tablet Landscape (max 1024px, landscape) --- */
@media (max-width: 1024px) and (orientation: landscape) {
    .stage {
        background:
            radial-gradient(ellipse 80% 80% at 50% 48%,
                #fff8ed 0%,
                #fae8c6 26%,
                #ebb876 52%,
                #ca7c36 78%,
                #8e4818 100%);
    }
    .left-sketch {
        width: clamp(320px, 42vw, 520px);
        left: -4vw;
        bottom: -4vh;
    }
    .right-sketch {
        width: clamp(300px, 40vw, 500px);
        right: -4vw;
        bottom: -4vh;
    }
    .sketch-art {
        opacity: 0.28;
    }
    .center-content {
        max-width: 500px;
    }
}

/* --- Mobile Portrait (max 540px) --- */
@media (max-width: 540px) {
    .stage {
        padding: 20px 14px;
        background:
            radial-gradient(ellipse 85% 78% at 50% 48%,
                #fff9f0 0%,
                #fbebc9 26%,
                #edbf83 54%,
                #cc7e38 78%,
                #8e4618 100%);
    }

    .silk-overlay {
        opacity: 0.65;
    }

    /* Mobile diagonal framing */
    .left-sketch {
        width: clamp(340px, 92vw, 480px);
        left: -10vw;
        top: -4vh;
        bottom: auto;
        transform: none;
    }

    .right-sketch {
        width: clamp(320px, 88vw, 460px);
        right: -8vw;
        bottom: -4vh;
    }

    .sketch-art {
        opacity: 0.24;
    }

    .center-content {
        width: 100%;
        padding: 10px;
    }

    .brand-logo {
        width: clamp(150px, 42vw, 210px); /* Scaled down slightly for mobile */
    }

    .main-headline {
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .sub-line {
        font-size: clamp(21px, 6.2vw, 30px); /* Scaled down slightly for mobile */
    }

    .highlight-line {
        font-size: clamp(26px, 7.6vw, 36px); /* Scaled down slightly for mobile */
    }

    .divider-line {
        flex: 0 1 60px;
    }

    .stay-tuned-text {
        font-size: clamp(16px, 4.6vw, 21px); /* Scaled down slightly for mobile */
    }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .center-content,
    .brand-logo,
    .sketch-art {
        animation: none !important;
        transition: none !important;
    }
}
