/* ============================================
   The Source Restaurant & Grill — Stylesheet
   Teal + Slate Grey | Corporate / Confident
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal-700);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-900);
}

.logo svg {
    flex-shrink: 0;
}

.logo-light {
    color: white;
}

.logo-light span {
    color: white;
}

/* ---------- Navigation ---------- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--teal-600);
}

.btn-nav {
    background: var(--teal-600);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-nav:hover {
    background: var(--teal-700);
    color: white !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--slate-700);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.pexels.com/photos/7140410/pexels-photo-7140410.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 46, 0.88) 0%,
        rgba(15, 118, 110, 0.80) 50%,
        rgba(30, 41, 59, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--teal-200);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.15;
    max-width: 700px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--slate-300);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal-600);
    color: white;
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--teal-700);
    border-color: white;
}

.btn-white:hover {
    background: var(--slate-100);
    border-color: var(--slate-100);
    color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
    color: var(--slate-900);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.menu-card {
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.menu-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--slate-200);
}

.menu-card-body {
    padding: 28px;
}

.menu-card-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.menu-card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--slate-900);
}

.menu-card-desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ---------- About Section ---------- */
.about-section {
    background: var(--slate-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.about-feature-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* ---------- Gallery Section ---------- */
.gallery-section {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--slate-200);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--slate-800) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: white;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ---------- Contact Section ---------- */
.contact-section {
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: 12px;
}

.contact-info .section-title {
    margin-bottom: 12px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--slate-900);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--teal-600);
}

.contact-item a:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.contact-form-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.contact-form-desc {
    font-size: 0.9rem;
    color: var(--slate-500);
    margin-bottom: 28px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--slate-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    color: var(--teal-800);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    color: var(--slate-400);
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-200);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--slate-400);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-note {
    font-size: 0.8rem !important;
    color: var(--slate-500) !important;
    font-style: italic;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--slate-500);
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-secondary {
        right: 16px;
        bottom: -24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        gap: 20px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-img-secondary {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 16px;
    }

    .about-images {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .about-img-main,
    .about-img-secondary {
        border-radius: var(--radius-md);
    }

    .about-img-secondary {
        border-width: 3px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

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

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .gallery-item img {
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}
