/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --dark-color: #2d2d2d;
    --light-color: #fafafa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-dark: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(45, 45, 45, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(45, 45, 45, 1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar {
    padding: 1.2rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tagline {
    color: #aaa;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient-dark);
    background-image:
        linear-gradient(135deg, rgba(45, 45, 45, 0.65), rgba(26, 26, 26, 0.75)),
        url('../images/restaurant/restaurant-front.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 20px 120px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Fallback to online image if local image not found */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(135deg, rgba(45, 45, 45, 0.65), rgba(26, 26, 26, 0.75)),
        url('https://images.pexels.com/photos/262978/pexels-photo-262978.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.4s;
}

/* Buttons */
.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    font-weight: 400;
}

/* Menu Section */
.menu-section {
    background: white;
}

/* Menu Search Box */
.menu-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.menu-search input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.menu-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.menu-search .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.menu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.2rem;
    background: var(--light-color);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: block;
}

.menu-item-image:not([src]),
.menu-item-image[src=""] {
    opacity: 0.3;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.1);
}

.menu-item-image-container {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.menu-item-name {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    flex: 1;
}

.menu-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.badge-veg {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.badge-non-veg {
    background: rgba(255, 107, 53, 0.95);
    color: white;
}

.menu-item-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.menu-item-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.price-options {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-option input[type="radio"] {
    accent-color: var(--primary-color);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 100px 20px;
}

/* Story Section */
.about-story {
    margin: 4rem 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h3 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Restaurant Stats */
.restaurant-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 5rem 0;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: #777;
    font-weight: 500;
}

/* Owner Section */
.owner-section {
    margin: 5rem 0;
    padding: 4rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.owner-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.owner-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.owner-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.owner-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 700;
    color: var(--dark-color);
    white-space: nowrap;
}

.owner-text h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.owner-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    padding: 1.5rem;
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.owner-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

.restaurant-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.restaurant-image:hover {
    transform: scale(1.02);
}

.main-restaurant-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 600;
    color: var(--dark-color);
}

.about-text {
    padding: 2rem 0;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.restaurant-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.highlight-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.highlight-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.highlight-item p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature p {
    color: #777;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 20px;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--dark-color);
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Cart Items */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #b71c1c;
}

.cart-qty {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-total {
    text-align: right;
    padding: 1rem;
    border-top: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.cart-total h3 {
    color: var(--dark-color);
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Checkout Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

/* Payment Options */
.payment-section {
    margin: 2rem 0;
}

.payment-section h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.payment-options {
    display: grid;
    gap: 1rem;
}

.payment-option {
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.payment-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.payment-info strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.payment-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Payment Details Modal */
.payment-details {
    text-align: center;
    padding: 2rem 1rem;
}

.payment-qr {
    max-width: 300px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.payment-qr img {
    width: 100%;
    border-radius: 10px;
}

.payment-upi {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.payment-upi h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.upi-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px dashed var(--primary-color);
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.phone-number {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
}

.payment-confirmation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
}

.confirm-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1.1rem;
}

.confirm-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message svg {
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-search {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .menu-search input {
        padding: 14px 45px 14px 18px;
        font-size: 0.95rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-footer {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .restaurant-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    /* About Section Responsive */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .restaurant-image {
        order: -1;
    }

    .restaurant-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .owner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .owner-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-story,
    .owner-section {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    /* About Section Mobile */
    .restaurant-stats {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .about-story,
    .owner-section {
        padding: 1.5rem;
    }

    .owner-quote {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
    }
}

/* UPI direct-pay panel */
.upi-pay-btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
}

.upi-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.upi-divider {
    position: relative;
    margin: 1.75rem 0 1.25rem;
    text-align: center;
}

.upi-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.upi-divider span {
    position: relative;
    background: #fff;
    padding: 0 0.9rem;
    color: #888;
    font-size: 0.85rem;
}

.upi-id {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem;
    margin: 0.75rem auto;
    max-width: 340px;
    background: var(--light-color);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    word-break: break-all;
}

.upi-id span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
}

.upi-ref {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.upi-amount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 0.75rem;
}

.cod-icon {
    font-size: 3.5rem;
    margin: 0.5rem 0;
}

/* ---- Single secure payment method ---- */

.pay-method {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
}

.pay-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pay-method-title {
    font-weight: 700;
    color: var(--dark-color);
}

.pay-secure-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pay-method-sub {
    color: #666;
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.pay-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.9rem 0 0.75rem;
}

.pay-brands span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #555;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.28rem 0.55rem;
}

.pay-powered {
    font-size: 0.82rem;
    color: #888;
}

/* ---- Payment modal summary ---- */

.pay-summary { text-align: left; }

.pay-ref {
    font-size: 0.85rem;
    color: #777;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.pay-lines {
    list-style: none;
    padding: 0.85rem 0;
    margin: 0;
}

.pay-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.pay-lines em { color: #999; font-style: normal; font-size: 0.85em; }

.pay-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-top: 2px solid var(--border-color);
}

.pay-total strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.pay-deliver {
    padding: 0.9rem;
    background: var(--light-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.pay-deliver span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.25rem;
}

.pay-deliver p { color: #555; margin: 0; }

.pay-reassure {
    margin-top: 1rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #666;
}

#confirmOrderBtn { min-width: 170px; }

/* The default .btn-secondary is white-on-transparent for the dark hero.
   Inside a light modal footer it needs real contrast. */
.modal-footer .btn-secondary {
    background: #fff;
    color: #555;
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.modal-footer .btn-secondary:hover {
    background: var(--light-color);
    color: var(--dark-color);
    border-color: #bbb;
    transform: none;
    box-shadow: none;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

/* The close "x" needs to be an obvious, comfortably tappable target */
.close-modal {
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

span.close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #888;
    transition: background 0.15s ease, color 0.15s ease;
}

span.close-modal:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

@media (max-width: 480px) {
    .modal-footer { flex-direction: column-reverse; }
    .modal-footer .btn { width: 100%; }
}

/* ============================================================
   Polish pass: focus states, motion, spacing, small-screen fit
   ============================================================ */

/* Keyboard users must always be able to see where they are */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.payment-option:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Respect people who get motion sick */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Buttons: consistent press feedback and a proper disabled state */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Menu cards lift a little, and images never jump the layout */
.menu-item {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    background: var(--light-color);
}

/* Modals: scrollable on short screens instead of clipping the buttons */
.modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-header,
.modal-footer { flex: 0 0 auto; }

/* Form fields: consistent sizing and 16px minimum so iOS doesn't zoom in */
.form-group input,
.form-group textarea,
.checkout-form input,
.checkout-form textarea {
    font-size: 16px;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Tap targets on phones */
@media (max-width: 640px) {
    .btn { min-height: 46px; }
    .filter-btn { min-height: 40px; }
    .section-title { font-size: 1.7rem; }
    .hero-title { font-size: 2rem; }
}

/* Footer nav spacing when the policy links wrap */
.footer .policy-footer-nav { margin-bottom: 1rem; }

.success-paid {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #2e7d32;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}
