/*
  File: styles.css
  Author: [Your Name]
  Date: [Current Date]
  Description: Chapter 10 styles with CSS animations and JavaScript interactivity.
*/

/* --- GLOBAL STYLES & CSS RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f4f4;
    font-family: 'Roboto Slab', serif;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
header {
    text-align: center;
    padding: 1rem 2rem; /* Add padding for hamburger icon */
    background: linear-gradient(to right, #2a9d8f, #264653);
    position: relative; /* Needed for menu positioning */
}

header h1 {
    font-family: 'Francois One', sans-serif;
    font-size: 2rem;
    color: #fff;
    font-weight: 400;
}

/* Hamburger Icon (Mobile Only) */
.hamburger-icon {
    display: block; /* Show by default on mobile */
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

nav ul {
    list-style-type: none;
    text-align: center;
    display: none; /* Hide nav links by default on mobile */
}

nav li {
    display: block;
    padding: 0.5rem 0;
}

nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: 'Francois One', sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* --- MAIN CONTENT AREA --- */
main { padding: 1.5rem; background-color: #fff; }
h2 { font-family: 'Francois One', sans-serif; color: #2a9d8f; text-align: center; margin-bottom: 1.5rem; font-size: 2.2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
.intro { text-align: center; margin-bottom: 2rem; font-size: 1.1rem; }
.tel-num { color: #e76f51; font-weight: bold; text-decoration: none; }

/* --- HERO IMAGE --- */
#hero { margin: -1.5rem -1.5rem 1.5rem -1.5rem; }
#hero img { width: 100%; height: auto; display: block; }

/* --- HOME PAGE GRID & ANIMATION --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
figure { border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; }
figure img { width: 100%; display: block; }
figcaption {
    font-family: 'Francois One', sans-serif;
    font-size: 1.25rem;
    text-align: center;
    padding: 1rem;
    background-color: #f9f9f9;
    /* Chapter 10 Concept: Apply Animation */
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both; /* Keeps the final state of the animation */
}

/* --- ABOUT US PAGE: INTERACTIVE VIDEO --- */
#video-link {
    color: #2a9d8f;
    font-weight: bold;
    cursor: pointer;
}
#video-link:hover { text-decoration: underline; }
#video-container { display: none; margin-top: 1rem; } /* Hide video by default */
#video-container video { width: 100%; height: auto; border-radius: 8px; }

/* --- FOOTER --- */
footer { padding: 1.5rem; text-align: center; background-color: #252525; color: #ccc; font-size: 0.9rem; }
footer a { color: #fff; text-decoration: none; }

/* =================================================================== */
/* --- MEDIA QUERY FOR TABLET & DESKTOP (768px and up) --- */
/* =================================================================== */
@media (min-width: 768px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 2rem;
    }
    header h1 { font-size: 1.8rem; }
    
    .hamburger-icon { display: none; } /* Hide hamburger on desktop */
    
    nav ul {
        display: block !important; /* Show the nav list */
    }
    nav li {
        display: inline-block;
        padding: 0;
        margin-left: 1rem;
    }
    nav a { padding: 0.5rem 1rem; }
    
    /* Chapter 10 Concept: CSS Transform */
    nav a:hover {
        background-color: #fff;
        color: #252525;
        transform: scale(1.1);
    }
    
    .home-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Constrain main content width */
    main {
        max-width: 1200px;
        margin: 2rem auto;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* --- PRINT STYLES --- */
@media print {
    body { background-color: #fff; color: #000; }
    header, nav, footer, #hero { display: none; }
    main { box-shadow: none; margin: 0; padding: 0; }
}