/* =========================================
   HOME PAGE - LANDING + PRODUCT GRID
   (markup and logic in index.php)
========================================= */

:root {
    --maroon: #6e0b10;
    --maroon-dark: #3e0407;
    --maroon-deep: #160303;
    --gold: #f2c766;
    --gold-deep: #c8922e;
    --gold-light: #fff0b8;
    --cream: #f6e7c8;

    --font: Georgia, "Times New Roman", "Noto Serif Devanagari", "Nirmala UI", serif;
}


/* =========================
   BASIC RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: var(--maroon-deep);
    color: var(--cream);
    font-family: var(--font);
}

body.is-landing {
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
}


/* =========================
   SCREEN 1 - LANDING
========================= */

.landing {
    position: relative;

    width: 100%;
    height: 100%;
    height: 100dvh;

    overflow: hidden;
}

.landing-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    pointer-events: none;
}

/* "Get Started" button (bottom centre) */
.get-started {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: calc(9vh + env(safe-area-inset-bottom));

    overflow: hidden;

    transform: translateX(-50%);

    padding: 16px 44px;

    border: 2px solid var(--gold);
    border-radius: 40px;

    background: radial-gradient(circle at 50% 30%, #9a161c, var(--maroon-dark));
    color: var(--gold-light);

    box-shadow:
        0 0 0 3px var(--maroon-dark),
        0 0 0 5px var(--gold-deep),
        0 0 26px 6px rgba(242, 180, 80, 0.45),
        0 10px 22px rgba(0, 0, 0, 0.6);

    font: 700 20px/1.2 var(--font);
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;

    animation: get-started-glow 2.4s ease-in-out infinite;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        letter-spacing 0.25s ease,
        color 0.25s ease;
}

/* gold shine that sweeps across */
.get-started::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;

    width: 50%;
    height: 100%;

    background: linear-gradient(100deg, transparent, rgba(255, 240, 184, 0.55), transparent);
    transform: skewX(-20deg);

    pointer-events: none;
}

.get-started:hover,
.get-started:focus-visible {
    color: #fff;
    letter-spacing: 0.12em;

    transform: translateX(-50%) translateY(-4px) scale(1.06);

    box-shadow:
        0 0 0 3px var(--maroon-dark),
        0 0 0 5px var(--gold),
        0 0 40px 12px rgba(242, 190, 90, 0.7),
        0 16px 28px rgba(0, 0, 0, 0.65);

    outline: none;
}

.get-started:hover::before,
.get-started:focus-visible::before {
    animation: shine-sweep 0.8s ease;
}

.get-started:active {
    transform: translateX(-50%) scale(0.95);
}

@keyframes get-started-glow {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.18); }
}

@keyframes shine-sweep {
    from { left: -75%; }
    to   { left: 125%; }
}


/* =========================
   SCREEN 2 - PRODUCTS BACKGROUND
========================= */

body.is-products {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(22, 3, 3, 0.82), rgba(22, 3, 3, 0.94)),
        url("../image/homepageimage.jpg") center top / cover fixed,
        var(--maroon-deep);
}


/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;

    background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
    border-bottom: 2px solid var(--gold-deep);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.brand {
    color: var(--gold);

    font: 700 18px/1.2 var(--font);
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: 0 1px 0 #7a4a0c, 0 2px 6px rgba(0, 0, 0, 0.6);
}

.lang-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-label {
    color: var(--cream);
    font-size: 13px;
    white-space: nowrap;
}

.lang-select,
.lang-submit {
    padding: 7px 10px;

    border: 1.5px solid var(--gold);
    border-radius: 8px;

    background: var(--maroon-dark);
    color: var(--gold-light);

    font: 600 14px/1.2 var(--font);

    cursor: pointer;
}

.lang-select:focus-visible,
.lang-submit:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}


/* =========================
   PRODUCT GRID
========================= */

.products {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
}

.products-title {
    color: var(--gold);
    text-align: center;

    font: 700 26px/1.2 var(--font);
    letter-spacing: 0.05em;
}

.products-sub {
    margin: 6px 0 22px;

    color: var(--cream);
    opacity: 0.85;
    text-align: center;

    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px 8px 12px;

    border: 1.5px solid var(--gold-deep);
    border-radius: 14px;

    background: linear-gradient(180deg, rgba(110, 11, 16, 0.92), rgba(62, 4, 7, 0.95));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px var(--gold),
        0 0 22px 4px rgba(242, 180, 80, 0.35),
        0 14px 26px rgba(0, 0, 0, 0.6);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    border-radius: 9px;

    background: #2a0507;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

/* taller images on phones, 16:9 on tablet / desktop */
@media (max-width: 767px) {
    .product-image { aspect-ratio: 4 / 3; }
}

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

.product-name {
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #fff;
}

.product-name {
    margin: 10px 4px 10px;

    color: var(--gold-light);
    text-align: center;

    font: 700 15px/1.3 var(--font);
}

.product-button {
    display: inline-block;
    margin-top: auto;

    padding: 8px 18px;

    border: 1.5px solid var(--gold);
    border-radius: 20px;

    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: var(--maroon-dark);

    font: 700 13px/1.2 var(--font);
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.product-button:not(.is-disabled):hover,
.product-button:not(.is-disabled):focus-visible {
    transform: scale(1.07);
    filter: brightness(1.1);
    box-shadow: 0 0 16px 3px rgba(242, 199, 102, 0.55);
    outline: none;
}

.product-button:not(.is-disabled):active {
    transform: scale(0.95);
}

.product-button.is-disabled {
    background: transparent;
    color: var(--gold);
    border-style: dashed;
    opacity: 0.7;
    cursor: default;
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 400px) {
    .brand       { font-size: 15px; }
    .lang-label  { font-size: 11px; }
    .get-started { font-size: 17px; padding: 14px 34px; }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    .get-started,
    .get-started:hover::before { animation: none; }

    .get-started,
    .product-card,
    .product-image img,
    .product-button { transition: none; }
}
