/* ==============================================
   COMPONENTS — Nav, Logo, Buttons, Cards, etc.
   ============================================== */

/* =====================
   NAVIGATION
   ===================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 1.25rem 0;
    transition: background var(--transition-base),
                padding var(--transition-base),
                box-shadow var(--transition-base);
}

.main-nav.scrolled {
    background: rgba(13, 10, 8, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.7rem 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
}

/* Nav Logo */
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    z-index: calc(var(--z-modal) + 1);
}

.nav-logo-rajs {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    color: var(--text-light);
    line-height: 1;
}

.nav-logo-sub {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    color: var(--clr-gold);
    line-height: 1;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
    opacity: 0.8;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-gold);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--clr-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: calc(var(--z-modal) + 1);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform var(--transition-base),
                opacity var(--transition-fast);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* =====================
   HERO LOGO
   ===================== */
.hero-logo {
    position: relative;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(212, 168, 83, 0.25);
    margin-bottom: 1.5rem;
}

/* Decorative corners */
.logo-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--clr-gold);
    border-style: solid;
}

.logo-corner-tl {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.logo-corner-tr {
    top: -2px;
    right: -2px;
    border-width: 2px 2px 0 0;
}

.logo-corner-bl {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 2px 2px;
}

.logo-corner-br {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

.logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.logo-rajs {
    font-family: var(--font-logo);
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    color: var(--text-light);
    line-height: 1;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4);
}

.logo-right-group {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-curry,
.logo-house {
    font-family: var(--font-logo);
    color: var(--text-light);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}

.logo-curry {
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
}

.logo-house {
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
}

.logo-dome {
    width: clamp(30px, 5vw, 50px);
    height: auto;
    color: var(--text-light);
    margin-left: 0.3rem;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.3));
}

.logo-phone {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--clr-gold);
    margin-top: 0.75rem;
    opacity: 0.75;
}


/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-gold {
    background: var(--clr-gold);
    color: var(--bg-dark);
    border-color: var(--clr-gold);
}

.btn-gold:hover {
    background: var(--clr-gold-light);
    border-color: var(--clr-gold-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
}


/* =====================
   SECTION HEADERS
   ===================== */
.section-header {
    text-align: center;
    margin-bottom: var(--gap-xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header--light h2 {
    color: var(--text-light);
}

.section-header--light .section-label {
    color: var(--clr-gold-light);
}


/* =====================
   ORNAMENTAL DIVIDER
   ===================== */
.ornament {
    display: flex;
    justify-content: center;
}

.ornament svg {
    width: 160px;
    height: 20px;
    color: var(--clr-gold);
}

.ornament--light svg {
    color: var(--clr-gold-light);
}


/* =====================
   GALLERY ITEMS
   ===================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-soft);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 30, 45, 0.4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-overlay svg {
    color: var(--text-light);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    line-height: 1;
    z-index: 2;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}


/* =====================
   SCROLL INDICATOR
   ===================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    opacity: 0.5;
    z-index: 3;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-line {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 3px;
    height: 10px;
    background: var(--clr-gold);
    border-radius: 2px;
    position: absolute;
    left: -1px;
    animation: scrollBounce 2.2s ease-in-out infinite;
}


/* =====================
   CONTACT CARDS
   ===================== */
.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}

.contact-card:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-primary);
    color: var(--text-light);
    border-radius: var(--radius-full);
}

.contact-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.contact-card-body p {
    color: var(--text-muted-dark);
    font-size: 0.93rem;
    line-height: 1.6;
}

.contact-link {
    font-size: 0.93rem;
    color: var(--clr-primary) !important;
    font-weight: 500;
    transition: color var(--transition-fast) !important;
}

.contact-link:hover {
    color: var(--clr-gold) !important;
}


/* =====================
   HOURS TABLE
   ===================== */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.hours-table td {
    padding: 0.3rem 0;
    color: var(--text-muted-dark);
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
    padding-right: 1.5rem;
    white-space: nowrap;
}

.hours-table td:last-child {
    text-align: right;
    white-space: nowrap;
}


/* =====================
   SOCIAL LINKS
   ===================== */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--clr-gold);
    border-color: var(--clr-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}


/* =====================
   BACK TO TOP
   ===================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-above);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-base),
                visibility var(--transition-base),
                transform var(--transition-base),
                background var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--clr-gold);
    color: var(--bg-dark);
}


/* =====================
   MENU CATEGORIES
   ===================== */
.menu-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.menu-cat {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--clr-gold-light);
    letter-spacing: 0.5px;
}

.menu-cat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clr-gold);
    opacity: 0.5;
    flex-shrink: 0;
}
