/* =========================================
   C.P. Restaurant - Global Styles
========================================= */

:root {
    --primary-color: #d4af37;
    /* Gold */
    --primary-hover: #b8962f;
    /* Darker Gold */
    --dark-bg: #000000;
    /* Deep Black */
    --surface-bg: #080808;
    /* Slightly lighter for cards */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);

    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(12px, 1vw + 10px, 18px);
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.7;
    letter-spacing: 0.3px;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gold-text {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: clamp(40px, 6vw, 100px) 0;
}

.dark-bg {
    background-color: #030303;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-family: var(--font-body);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: clamp(8px, 1.5vw, 12px) clamp(20px, 3vw, 30px);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-ghost {
    background-color: transparent;
    color: var(--white);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

/* =========================================
   Glassmorphism Utilities
========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================
   Header & Navigation
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    background: transparent;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(15px, 4vw, 40px);
    color: var(--white);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================================
   About Section
========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.about-text {
    margin-bottom: clamp(15px, 3vw, 25px);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-highlights {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    margin-top: clamp(20px, 4vw, 40px);
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.highlight i {
    font-size: 1.8rem;
}

.highlight span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transform: translate(15px, 15px);
    z-index: -1;
    transition: var(--transition-fast);
}

/* =========================================
   Menu Section
========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(25px, 5vw, 50px);
}

.category-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: clamp(15px, 3vw, 30px);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    display: inline-block;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px dotted var(--glass-border);
    z-index: 1;
}

.menu-item-info,
.menu-item-price {
    position: relative;
    z-index: 2;
    background-color: #030303;
    /* Matches .dark-bg */
}

.menu-item-info {
    padding-right: 15px;
    max-width: 75%;
}

.menu-item-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--white);
}

.menu-item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    padding-left: 15px;
    font-weight: 600;
}

/* =========================================
   Special Dishes
========================================= */
.specials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.special-card {
    background-color: var(--surface-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid var(--glass-border);
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.2);
}

.special-img-wrapper {
    height: clamp(200px, 40vw, 350px);
    overflow: hidden;
}

.special-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.special-card:hover .special-img-wrapper img {
    transform: scale(1.1);
}

.special-content {
    padding: 30px;
    text-align: center;
}

.special-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.special-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.special-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

/* =========================================
   Gallery Section
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: clamp(200px, 40vw, 350px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transform: scale(0.5);
    transition: var(--transition-fast);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* =========================================
   Reviews Section
========================================= */
.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: -15px;
}

.rating-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    font-weight: 600;
}

.google-rating .stars i {
    color: #fbbc04;
    /* Google Star Color */
    font-size: 1.2rem;
}

.rating-platform {
    color: var(--text-muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    padding: 30px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.reviewer-info h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.review-stars i {
    color: #fbbc04;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.8;
}

/* =========================================
   Contact & Booking
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 6vw, 60px);
    margin-bottom: 60px;
}

.info-items {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-content h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p,
.info-content a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-content a:hover {
    color: var(--primary-color);
}

.whatsapp-box {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
}

.whatsapp-box h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.whatsapp-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.booking-form-wrapper {
    padding: clamp(20px, 4vw, 40px);
}

.booking-form-wrapper h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.booking-form select option {
    background-color: var(--dark-bg);
    color: var(--white);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: clamp(250px, 50vw, 450px);
    display: block;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: #000000;
    padding: 80px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(30px, 6vw, 60px);
    margin-bottom: 50px;
}

.brand-col p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Reveal Animations
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1024px) {

    .menu-grid,
    .specials-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .menu-category {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {

    .about-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile Nav */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 40px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-btn {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .menu-category {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .highlight {
        align-items: center;
        text-align: center;
    }

    .hero-content,
    .about-content,
    .contact-info,
    .brand-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .menu-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu-item::after {
        display: none;
    }

    .menu-item-info {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .menu-item-price {
        padding-left: 0;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .booking-form-wrapper {
        padding: 25px 20px;
    }

    .about-image .image-wrapper::after {
        transform: translate(8px, 8px);
    }

    .whatsapp-box {
        padding: 20px 15px;
    }

    .special-img-wrapper {
        height: 250px;
    }

    .special-content {
        padding: 20px;
    }

    .gallery-item {
        height: 200px;
    }

    .about-highlights {
        gap: 10px;
        margin-top: 20px;
    }

    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        margin-bottom: 20px;
    }

    .menu-item-info h4 {
        font-size: 1.1rem;
    }

    .menu-item-price {
        font-size: 1.1rem;
    }
}

/* =========================================
   Custom Red Heart Pointer
========================================= */
#heart-cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    *:not(input):not(textarea) {
        cursor: none !important;
    }

    input,
    textarea {
        cursor: text;
    }

    #heart-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 28px;
        height: 28px;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s;
        animation: heartbeat 1.5s infinite;
    }
}

#heart-cursor svg {
    width: 100%;
    height: 100%;
}

#heart-cursor.hovered {
    width: 38px;
    height: 38px;
    animation: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0px 0px 8px rgba(225, 29, 72, 0.6));
}

@keyframes heartbeat {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-5deg);
    }

    75% {
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}