/* ==========================================================================
   MAMAD'S KITCHEN - CORE STYLESHEET
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --color-bg: #ffffff;
    --color-bg-alt: #faf9f7;
    --color-text: #000000;
    --color-text-light: #555555;
    --color-border: #e0e0e0;
    --spacing-section: 6rem 5%;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    background-color: var(--color-bg-alt); /* Placeholder background */
}

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

/* --- Typography Classes --- */
.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: block;
}

.editorial-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-text-light);
}

/* --- Navigation --- */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: #888;
}

/* --- Footer --- */
footer {
    background-color: var(--color-bg-alt);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col a {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-light);
}
/* --- Simple Footer Styles --- */
.simple-footer {
    background-color: #111; /* Dark, off-black background */
    color: #fff; /* White text for contrast */
    padding: 40px 0 20px 0; /* Padding for top, bottom, and empty sides */
    font-family: Arial, sans-serif; /* Clean, modern font */
    text-align: center; /* Center all contents */
}

/* Container for all content */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Space between the rows */
}

/* Row 1: Social Links */
.social-links-row {
    display: flex;
    gap: 15px;
}

.social-links-row a {
    color: #fff; /* White icons */
    font-size: 24px; /* Icon size */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-links-row a:hover {
    opacity: 0.7; /* Subtle hover effect */
}

/* Row 2: Navigation Links */
.footer-nav-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.footer-nav-row li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-row li a:hover {
    color: #aaa; /* Subtle hover color change */
}

/* Row 3: Bottom (Copyright and Designed By) */
.footer-bottom-simple {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa; /* Slightly dimmer text for the copyright line */
}

/* Ensure FontAwesome icons work correctly */
.social-links-row i {
    width: auto;
    margin: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES
   ========================================================================== */

/* --- Home (index.html) --- */
.hero {
    text-align: center;
    padding: 4rem 5% 6rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--color-text-light);
}

.hero-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.featured-collections {
    padding: var(--spacing-section);
}

.featured-collections h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.collection-card {
    text-align: center;
}

.collection-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.collection-card h3 {
    font-size: 1.5rem;
}

.story-teaser {
    padding: var(--spacing-section);
    background-color: var(--color-bg-alt);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-teaser h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- About (about.html) --- */
.page-header {
    text-align: center;
    padding: 6rem 5% 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
}

.story-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}

.story-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.story-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    margin: 2rem 0;
}

.team-section {
    padding: var(--spacing-section);
    background-color: var(--color-bg-alt);
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.team-member img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* --- Menu (menu.html) --- */
.menu-section {
    padding: 2rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
    row-gap: 3rem;
}

/* Specific Menu Constraints Implementation */
.menu-item {
    display: flex;
    flex-direction: column;
}

.menu-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.menu-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text);
}

.menu-price {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
}

.menu-bottom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* Gap creates the space between the arrow and text */
}

.menu-arrow {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--color-text-light);
}

.menu-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Gallery (gallery.html) --- */
.gallery-section {
    padding: 0 5% 6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.cake-box {
    overflow: hidden;
}

.cake-box img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cake-box:hover img {
    transform: scale(1.03);
}

/* --- Contact (contact.html) --- */
.contact-section {
    padding: 0 5% 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.contact-form {
    background-color: var(--color-bg-alt);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-bottom-color: var(--color-text);
}

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

.form-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #888;
    margin-bottom: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .menu-grid, .contact-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        padding-top: 2rem;
    }
}
/* --- Menu (menu.html) - Editorial Zig-Zag Layout --- */
body.menu-page {
    background-color: #ffffff; /* Soft cream background to match the aesthetic */
}

.menu-page header {
    background-color: transparent;
}

.page-header {
    text-align: center;
    padding: 6rem 5% 2rem;
}

.menu-zigzag-section {
    padding: 2rem 5% 8rem;
}

.menu-zigzag {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
}

.menu-row.reverse {
    flex-direction: row-reverse;
}

.menu-img-wrap {
    flex: 1;
    max-width: 48%;
}

.menu-img-wrap img {
    width: 100%;
    border-radius: 16px; /* Soft rounded corners like the image */
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.menu-text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 48%;
}

.menu-text-wrap.left-align {
    align-items: flex-start;
    text-align: left;
}

.menu-text-wrap.right-align {
    align-items: flex-end;
    text-align: right;
}

.menu-meta {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #54695e; /* Muted greenish-grey matching the 'ONE:' in the image */
    margin-bottom: 1rem;
}

.menu-item-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    max-width: 450px;
}

.desc-flex {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    max-width: 420px;
}

.menu-text-wrap.right-align .desc-flex {
    justify-content: flex-end;
}

.menu-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    font-weight: 300;
}

.curve-arrow {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    margin-top: -8px; /* Pulls the arrow up slightly to connect title and text spaces */
    color: var(--color-text);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .menu-row, .menu-row.reverse {
        flex-direction: column;
        gap: 3rem;
    }
    .menu-img-wrap, .menu-text-wrap {
        max-width: 100%;
    }
    .menu-text-wrap.left-align, .menu-text-wrap.right-align {
        align-items: flex-start;
        text-align: left;
    }
    .menu-text-wrap.right-align .desc-flex {
        justify-content: flex-start;
        flex-direction: row-reverse; /* Reverses arrow position for mobile consistency */
    }
}
/* ==========================================================================
   GALLERY PAGE (gallery.html)
   ========================================================================== */

/* --- The Collage Grid --- */
.gallery-collage-section {
    padding: 2rem 1% 6rem; /* Very tight outer padding */
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 25vw; /* Dynamic square heights based on screen width */
    gap: 8px; /* Tight gaps like the screenshot */
    max-width: 1600px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .collage-grid {
        grid-auto-rows: 320px; /* Fixed height for large screens */
    }
}

.collage-item {
    overflow: hidden;
}

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

.collage-item:hover img {
    transform: scale(1.03);
}

/* Precise grid placements to match the masonry screenshot */
.item-tall { grid-column: span 1; grid-row: span 2; }
.item-wide { grid-column: span 2; grid-row: span 1; }
.item-sq   { grid-column: span 1; grid-row: span 1; }

/* Responsive adjustments for collage */
@media (max-width: 900px) {
    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 40vw;
    }
    .item-tall, .item-wide, .item-sq {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- The Slider Section --- */
.slider-section {
    background-color: #fcfbf9; /* Warm off-white background */
    padding: 8rem 5% 6rem;
    text-align: center;
}

.slider-section h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    align-items: center;
    gap: 4rem;
    text-align: left;
    padding: 0 5rem; /* Space for the absolute arrows */
    animation: fadeIn 0.6s ease-in-out;
}

.slide.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-image-wrap {
    flex: 1;
    max-width: 45%;
}

.slide-image-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    background-color: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.slide-text-wrap {
    flex: 1;
    max-width: 45%;
}

.slide-meta {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.slide-desc {
    font-family: var(--font-body);
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    color: var(--color-text);
}

.arrow-prev { left: 0; }
.arrow-next { right: 0; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 3rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--color-text);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--color-text);
}

@media (max-width: 900px) {
    .slide.active {
        flex-direction: column;
        padding: 0 2rem;
    }
    .slide-image-wrap, .slide-text-wrap {
        max-width: 100%;
    }
    .slider-arrow {
        display: none; /* Hide arrows on small mobile to favor swipe/dots */
    }
}
/* ==========================================================================
   FLOATING CONTACT BUTTONS (WhatsApp & Phone)
   ========================================================================== */

.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.fab-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Keep icon white on hover */
}

/* WhatsApp Styling */
.whatsapp-fab {
    background-color: #25D366; 
}

/* Phone Call Styling */
.phone-fab {
    background-color: var(--color-text); /* Matches your dark brand color */
}

/* SVG Icon sizing */
.fab-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .fab-btn {
        width: 50px;
        height: 50px;
    }
    .fab-btn svg {
        width: 24px;
        height: 24px;
    }
}