/* importing fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS */

/* global settings */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* body settings */
body {
    background-color: bisque;
}

/* Nav settings */

nav {
    font-family: "Libre Bodoni", serif;
    background-color: #0b1e3a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s ease;
}

.logo img {
    height: 3.43rem;
    margin-left: 2.5rem;
}

.Patiala {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;
    font-size: 2.5rem;
    letter-spacing: 0.25rem;
    font-family: "Cinzel", serif;
}

/* hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

/* bars */
.hamburger span {
    width: 25px;
    height: 3px;
    background: #F5F0E6;
    border-radius: 3px;
    transition: all 0.4s ease;
}

/* when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    list-style-type: none;
    display: flex;
    margin-right: 1.25rem;
}

.nav-links li a {
    font-size: 1.18rem;
    font-family: "Cinzel", serif;
    color: #efe6d8;
    text-decoration: none;
    padding: 0.26rem 0.625rem;
    border-radius: 0.312rem;
    transition: background-color 0.3s ease;
    position: relative
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #C2A75C;

    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 60%;
}

.nav-links li a:hover {
    background-color: #0e2a5c;
    border-radius: 0.625rem;
}


.nav-links li:nth-last-child(-n+2) {
    display: block;
}

.nav-links.open li {
    opacity: 1;
    transform: translateY(0);
}

/* show only desktop links */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Section A */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f5e7d1;
    text-align: center;
    overflow: hidden;
    font-family: "Kalnia", serif;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 15, 0.402);
    /* dark dim */
    backdrop-filter: blur(2px);
    /* slight blur */
    z-index: 0;
}


.hero-content {
    z-index: 1;
    position: relative;
    transform: translateY(-10%);
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.7);
    font-family: "Cinzel", serif;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 2px;
    font-family: "Cinzel", serif;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 25s infinite;
    filter: brightness(0.8) contrast(1.1) saturate(1.1);
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide:nth-child(4) {
    animation-delay: 15s;
}

.slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* side bar icons */
.sidebar {
    position: absolute;
    left: 1.25rem;
    top: 6rem;
    transform: none;

    display: flex;
    flex-direction: column;
    gap: 2rem;

    padding: 1.25rem 0.75rem;
    z-index: 999;
}

/* NAV ITEM */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.9rem 0.75rem;
    border-radius: 999px;

    text-decoration: none;
    color: rgba(245, 240, 230, 0.8);

    backdrop-filter: blur(10px);
    background: rgba(10, 31, 68, 0.25);

    width: 3rem;
    overflow: hidden;

    transition: all 0.4s ease;
}

/* ICON */
.icon {
    /* font-size: 1.4rem; */
    min-width: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    /* keeps icon visible */
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon img {
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;
    display: block;
    transition: 0.3s ease;

}

/* LABEL (hidden by defaolt) */
.label {
    font-size: 0.9rem;
    letter-spacing: 0.06rem;
    font-family: "Cinzel", serif;

    opacity: 0;
    transform: translateX(-15px);
    white-space: nowrap;

    transition: all 0.35s ease;
}

/* HOVER EXPAND */
.nav-item:hover {
    width: 9.3rem;
    background: rgba(194, 167, 92, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: 0.625rem 0.625rem 0.9375rem -0.3125rem rgba(194, 167, 92, 0.25);
}

/* SHOW LABEL */
.nav-item:hover .label {
    opacity: 1;
    transform: translateX(0);
}

/* ICON GOLD ON HOVER */
.nav-item:hover .icon img {
    filter: brightness(1.2) sepia(1) hue-rotate(10deg) saturate(2);

}

/* ACTIVE STATE */
.nav-item.active {
    width: 10rem;
    background: rgba(194, 167, 92, 0.18);
}

.nav-item.active .label {
    opacity: 1;
    color: #C2A75C;
}

/* subtle glow */
.nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg,
            transparent,
            rgba(194, 167, 92, 0.15),
            transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 1290px) {
    .nav-item {
        backdrop-filter: blur(8px);
        background: rgba(10, 31, 68, 0.35);
        width: 3rem;
    }

    .label {
        display: none;
    }

    .nav-item:hover {
        transform: scale(1.2);
        background: rgba(194, 167, 92, 0.2);
        width: 3rem;
    }
}

@media (max-width: 1000px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 784px) {
    /* .nav-links {
        display: none;
    } */

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.7rem;
    }

    .nav-item:hover {
        transform: scale(1.1);
        background: rgba(194, 167, 92, 0.2);
        width: 3rem;
    }

    .Patiala {
        font-size: 2.1rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .nav-links {
        margin-right: 0rem;
    }

    .logo img {
        margin-left: 2rem;
    }

}

@media (max-width: 688px) {
    .Patiala {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .nav-links {
        margin-right: 0rem;
    }

    .logo img {
        margin-left: 0rem;
    }

    .sidebar {
        display: none;

    }

    /* .nav-links li a::after {
        display: none;
    } */

    .hamburger {
        display: flex;
    }

    /* 👇 swap visibility */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;

        background: rgba(10, 31, 68, 0.85);
        backdrop-filter: blur(12px);

        max-height: 0;
        opacity: 0;
        overflow: hidden;
        z-index: 100;
        transition:
            max-height 0.5s ease,
            opacity 0.4s ease;

        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .nav-links.open {
        max-height: 100vh;
        opacity: 1;
        padding: 1rem 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.6rem 0;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 0.8rem 0;


        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .nav-links li a:hover {
        background: rgba(194, 167, 92, 0.15);
        color: #C2A75C;
    }
}


/* SECTION B */
.section-b {
    padding: 4rem 2rem;
    background: #f5e7d1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: "Cinzel", serif;
    margin-bottom: 3rem;
    color: #0b1e3a;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* CARD BASE */
.card {
    background-color: #0b1e3a;
    border-radius: 16px;
    overflow: hidden;
    color: white;
    transition: 0.4s ease;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;

    border: 1.5px solid #C2A75C;
    opacity: 0;

    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* BIG CARD */
.card.big {
    grid-column: span 3;
    display: flex;
}

.card.big .card-content {
    padding: 2rem;
    transition: transform 0.4s ease;
}

.card.big:hover .card-content {
    transform: translateY(-5px);
}

/* SMALL CARD */
.card.small {
    display: flex;
    flex-direction: column;
}

/* photo settings */
.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7),
            transparent);
}

.card.big .card-img::after {
    background: linear-gradient(to right,
            rgba(10, 31, 68, 0.611),
            transparent);
}

.card-content h3 {
    font-family: "Cinzel", serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;

    font-family: "Roboto Slab", serif;
}

.card.big .card-content a {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #C2A75C;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.card.big .card-content a:hover {
    border-bottom: 1px solid #C2A75C;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: 0.5s ease; */
    transition: transform 0.6s ease, filter 0.6s ease;
}

.card.big .card-img {
    width: 30%;
    height: auto;
}

.card.big {
    display: flex;
}

/* resizing the text */
.card.big .card-content h3 {
    font-size: 2rem;
    color: #f6cb3e;
    text-shadow: 1px 1px 6px gray;
}

.card.big .card-content h3::after {
    content: "";
    display: block;
    width: 150px;
    height: 2px;
    background: #C2A75C;
    margin-top: 8px;
}

.card.big .card-content p {
    font-size: 1.15rem;
}

.card.small .card-content h3 {
    font-size: 1.5rem;
    color: #d4af37;

}

.card.small .card-content p {
    font-size: 1.12rem;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(194, 167, 92, 0.4);
}

.card:hover img {
    transform: scale(1.08);
}

.card.small {
    position: relative;
}

.card.small .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 1rem;
    /* background: rgba(0,0,0,0.6); */
    transform: translateY(10px);
    opacity: 0;
    transition: 0.4s ease;
}

.card.small:hover .card-content {
    opacity: 1;
    transform: translateY(0);
}

.card.small:hover img {
    filter: blur(2px) brightness(0.6);
    transform: scale(1.1);
}

@media (max-width: 1000px) {

    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* ALL CARDS SAME STYLE */
    .card,
    .card.big,
    .card.small {
        display: flex;
        flex-direction: row;
        height: 180px;
    }

    /* IMAGE LEFT */
    .card-img {
        width: 40%;
        height: 100%;
    }

    .card-img img {
        height: 100%;
    }

    /* REMOVE OVERLAY GRADIENT FOR CLEAN LOOK */
    .card-img::after {
        display: none;
    }

    /* TEXT RIGHT */
    .card-content {
        width: 60%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* TEXT SMALLER */
    .card-content h3 {
        font-size: 1.2rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    /* REMOVE BIG CARD SPECIAL STYLES */
    .card.big {
        grid-column: span 1;
    }

    .card.big .card-content h3 {
        font-size: 1.2rem;
        color: #d4af37;
    }

    .card.big .card-content p {
        font-size: 0.9rem;
    }

    /* LIGHT HOVER */
    .card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .card:hover img {
        transform: scale(1.05);
    }

    /* DISABLE SMALL CARD OVERLAY ANIMATION */
    .card.small .card-content {
        position: static;
        opacity: 1;
        transform: none;
    }

    .card.small:hover img {
        filter: none;
    }
}

@media (max-width: 696px) {

    .cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* RESET EVERYTHING */
    .card,
    .card.big,
    .card.small {
        display: block !important;
        height: 300px;
        position: relative;
        overflow: hidden;
    }

    .card.big {
        flex: none !important;
    }

    /* FORCE IMAGE FULL COVER */
    .card-img {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }

    .card.big .card-img {
        width: 100% !important;
    }

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: 0.4s ease;
    }

    /* OVERLAY */
    .card-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        transition: 0.3s ease;
        pointer-events: none;
    }

    /* TEXT */
    .card-content {
        position: absolute;
        inset: 0;
        overflow-y: auto;
        display: flex;
        justify-content: flex-end;
        /* align-items: center; */
        flex-direction: column;
        /* text-align: center; */
        align-items: flex-start;
text-align: left;
width: 100%;
        padding: 1rem 1rem 1.8rem;

        opacity: 0;
        transform: translateY(10px);
        transition: 0.3s ease;
        z-index: 5;
    }

    /* KILL SMALL CARD OLD BEHAVIOR */
    .card.small .card-content {
        position: absolute !important;
        opacity: 0 !important;
        transform: translateY(10px) !important;
    }

    /* TEXT SIZE */
    .card-content h3 {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .card-content p {
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
        
    }

    /* CLICK ACTIVE STATE */
    .card.active .card-img img {
        filter: blur(4px) brightness(0.4);
    }

    .card.active .card-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .card.active .card-img::after {
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.85),
                rgba(0, 0, 0, 0.4));
    }

    /* REMOVE DESKTOP HOVER EFFECTS */
    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .card:hover img {
        transform: none;
        filter: none;
    }
}

/* SECTION C */
.section-c {
    padding: 4rem 2rem;
    background: #0b1e3a;
}

.section-c .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: "Cinzel", serif;
    margin-bottom: 3rem;

    color: #f5e7d1;
    /* light cream */
    letter-spacing: 2px;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tile {
    position: relative;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1.5px solid #c2a75c
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tile:hover img {
    transform: scale(1.1);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.4),
            transparent);
}

.tile:hover::after {
    background: rgba(0, 0, 0, 0.522);
}

.tile:hover::before {
    opacity: 1;
}

.tile:hover .tile-content {
    transform: translateY(0);
    opacity: 1;
}

.tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s ease;
    z-index: 3;
}

.tile-content h3 {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    color: #fff;

}

.tile-content p {
    font-size: 1rem;
    color: rgb(255, 255, 255);
    /* opacity: 0.8; */
}

.line {
    display: block;
    width: 90px;
    height: 2px;
    background: #d4b55d;
    margin-bottom: 6px;
}

@media (max-width: 800px) {
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .tile {
        height: 260px;
    }

    .tile-content h3 {
        font-size: 1.3rem;
    }

    .tile-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) {
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tile {
        height: 240px;
    }

    .tile-content {
        padding: 0.8rem;
    }

    .tile-content h3 {
        font-size: 1.2rem;
    }

    .tile-content p {
        font-size: 0.85rem;
    }

    .line {
        width: 30px;
    }

    .tile:hover {
        transform: scale(1.02);
    }
}

/* Contact us */
.contact {
    padding: 5rem 2rem;
    position: relative;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 100%; */
    /* max-width: 1100px;   */
    margin: 0 auto;
    position: relative;
}

.contact-form {
    width: 100%;
    max-width: 650px;
    padding: 2.5rem;
    border-radius: 18px;

    background: rgba(10, 31, 68, 0.9);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    gap: 1rem;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(194, 167, 92, 0.289)
}

.contact-form input,
.contact-form textarea {
    font-family: "Roboto Slab", serif;
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(194, 167, 92, 0.3);
    outline: none;

    background: rgba(255, 255, 255, 0.08);
    color: #f5f0e6;

    transition: 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Roboto Slab", serif;
    font-size: 0.9rem;
}

/* hover glass effect */
.contact-form input:hover,
.contact-form textarea:hover {
    /* backdrop-filter: blur(8px); */
    border-color: #C2A75C;
    box-shadow: 0 0 12px rgba(194, 167, 92, 0.3);
}

/* focus effect */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #C2A75C;
    box-shadow: 0 0 15px rgba(194, 167, 92, 0.5);
}

.contact-form button {
    padding: 0.9rem;
    border: none;
    border-radius: 10px;

    background: #C2A75C;
    color: #0b1e3a;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(194, 167, 92, 0.3);
}

.address {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    text-decoration: none;
}

.address:hover {
    color: #C2A75C;
}

.social-bar {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 50%;
    /* background: rgba(10, 31, 68, 0.6); */
    transition: 0.3s ease;

}

.social-bar a:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(194, 167, 92, 0.381);
    box-shadow: 0 0 12px rgba(194, 167, 92, 0.635);
}

.social-bar a:hover img {
    filter: brightness(1.2);
}

.social-bar img {
    width: 33px;
    height: 33px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: 0.3s ease;
}

@media (max-width: 970px) {

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .social-bar {
        position: static;
        /*removes floating right */
        transform: none;

        flex-direction: row;
        /* horizontal */
        justify-content: center;
        gap: 1.2rem;
    }

}