/* ============================================
   MOBILE-FIRST DESIGN - Restaurant Landing Page
   Punta Cana Restaurant
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #00796B;
    --primary-dark: #004D40;
    --primary-light: #48A999;
    --secondary-color: #FF8F00;
    --accent-color: #FFD54F;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --sand: #F5E6CA;
    --ocean: #0077B6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 143, 0, 0.4);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

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

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-list {
    display: none;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1551632436-cbf8dd35adfa?w=3840&h=1080&fit=crop') center/cover no-repeat fixed;
    margin-top: 60px;
    left: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 77, 64, 0.7),
        rgba(0, 119, 182, 0.5)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
    padding: 80px 0;
    background: var(--off-white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.menu-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.menu-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.menu-content {
    padding: 20px;
}

.menu-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.menu-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.menu-price {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ============================================
   TESTIMONIALS SECTION - CARD STRUCTURE
   Mobile: Vertical Column
   Desktop: Grid
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--sand) 0%, var(--off-white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Card Structure: Name, Stars, Short Comment */
.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.testimonial-comment {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
}

/* ============================================
   OPTIONS SECTION
   ============================================ */
.options-section {
    padding: 80px 0;
    background: var(--white);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.option-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--off-white);
    border-radius: 16px;
    transition: var(--transition);
}

.option-card:hover {
    background: var(--primary-light);
    color: var(--white);
}

.option-card:hover h3,
.option-card:hover p {
    color: var(--white);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.option-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.option-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    padding: 80px 0;
    background: var(--ocean);
}

.form-section .section-title,
.form-section .section-subtitle {
    color: var(--white);
}

.form-section .section-subtitle {
    opacity: 0.9;
}

.reservation-form {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.reservation-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   DESKTOP STYLES (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    /* Header */
    .menu-toggle {
        display: none;
    }
    
    .nav-list {
        display: flex;
    }
    
    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    /* Menu Grid */
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* TESTIMONIALS - GRID ON DESKTOP */
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Options Grid */
    .options-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Form */
    .reservation-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 50px;
    }
    
    .reservation-form .btn {
        grid-column: 1 / -1;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-section {
        flex: 0 1 250px;
        min-width: 200px;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .social-links {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   RESPONSIVE GRIDS (override fixed columns)
   ============================================ */
@media (min-width: 1024px) {
    .menu-grid,
    .testimonials-grid,
    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .footer-content {
        gap: 60px;
    }
    
    .footer-section {
        flex: 1;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}
