/* ========================================
   OUR SKITTLE PLACE - OPTIMIZED CSS
   ======================================== */

/* CSS Custom Properties (Variables) */
:root {
    --primary-color: #e2ad87;
    --primary-hover: #c98352;
    --secondary-color: #333;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --text-white: #fff;
    --bg-white: #fff;
    --bg-light: #f8f8f8;
    --border-color: #e2ad87;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 40px;
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   HERO & PAGE HEADERS
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.5s forwards;
}

.page-header {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    margin-top: 80px;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MAIN CONTENT & SECTIONS
   ======================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    margin-bottom: 6rem;
}

.section h1 {
    font-size: 4rem;
    font-weight: 600;
    text-align: center;
    line-height: 4rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.section h1.about-heading {
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 0;
    padding-left: 0;
    padding-bottom: 1rem;
    position: relative;
    top: 0;
    left: 0;
    width: 50%;
    z-index: 10;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content-reverse {
    grid-template-columns: 1fr 1fr;
}

.about-content-fullwidth {
    grid-template-columns: 1fr;
}

.about-text-fullwidth {
    grid-column: 1 / -1;
    text-align: left;
    max-width: 100%;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text ul {
    padding-left: 20px;
}

.about-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address {
    text-align: center;
}

/* ========================================
   IMAGE GALLERY
   ======================================== */
.image-gallery-section {
    background-color: var(--primary-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 4rem;
    padding: 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    height: 300px;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-content {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.gallery-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
}

.gallery-cta:hover::before {
    left: 0;
}

.gallery-cta span {
    position: relative;
    z-index: 2;
}

.gallery-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   DIRECTORY SECTION
   ======================================== */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.directory-item {
    background: var(--bg-white);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.directory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.directory-item:hover::before {
    left: 100%;
}

.directory-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.directory-item h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.directory-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.directory-item .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Directory Page Specific */
.directory .main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.directory-image {
    position: relative;
    overflow: hidden;
}

.directory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory .header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

.directory .hero-portrait {
    grid-column: 1;
    grid-row: 1;
    height: 500px;
}

.directory .hero-landscape {
    grid-column: 2 / 4;
    grid-row: 1;
    height: 500px;
}

.directory .about {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.directory .about .content-header {
    grid-column: 1;
    grid-row: 1;
}

.directory .about .content-text {
    grid-column: 2 / 4;
    grid-row: 1;
}

.directory .about .content-header h1 {
    color: var(--primary-color);
}

.directory .misc {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

.directory .misc .image {
    grid-column: 1;
    grid-row: 1;
}

.directory .misc .openinghours {
    grid-column: 2;
    grid-row: 1;
    border-right: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.directory .misc .address {
    grid-column: 3;
    grid-row: 1;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience {
    color: var(--text-color);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.experience-content {
    max-width: var(--max-width);
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.experience h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.experience h2::after {
    background: linear-gradient(90deg, var(--accent-color), #f39c12);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
    max-width: var(--max-width);
}

.experience-image {
    position: relative;
    overflow: hidden;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-image-1 {
    grid-column: 1;
    grid-row: 1;
    height: 500px;
}

.experience-image-2 {
    grid-column: 2;
    grid-row: 1;
    height: 500px;
}

.experience-image-3 {
    grid-column: 1 / 3;
    grid-row: 2;
    height: 500px;
}

.experience-image-4 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    height: 1020px;
}

.experience p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* ========================================
   ENQUIRIES SECTION
   ======================================== */
.enquiries-section {
    background-color: var(--primary-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 4rem;
    padding: 0;
    color: var(--text-white);
}

.enquiries-section a {
    color: #c9783f;
    text-decoration: none;
    font-weight: 600;
}

.enquiries-section a:hover {
    color: var(--text-color);
}

.enquiries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 800px;
    height: 300px;
}

.enquiries2 {
    max-width: 800px;
    margin: 0 auto;
}

.enquiries .retail,
.enquiries .pr {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.enquiries .retail {
    grid-column: 1;
}

.enquiries .pr {
    grid-column: 2;
}

/* ========================================
   MAP CONTAINER
   ======================================== */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #111;
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 0;
    color: var(--text-white);
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #999;
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #eee;
}

.footer-section p,
.footer-section a {
    font-size: 1rem;
    color: #eee;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--text-white);
    background: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
    color: var(--text-white);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #34495e;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Typography */
    .page-header-content h1 {
        font-size: 2rem;
    }

    .section h1 {
        font-size: 3rem;
    }

    .section h1.about-heading {
        position: static;
        text-align: center;
        width: 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    /* About Content */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .about-content-reverse {
        grid-template-columns: 1fr;
    }

    .about-content:first-of-type {
        order: 1;
    }

    .about-content:first-of-type .about-text {
        order: 1;
    }

    .about-content:first-of-type .about-image {
        order: 2;
    }

    .about-content-reverse .about-text {
        order: 1;
    }

    .about-content-reverse .about-image {
        order: 2;
    }

    .about-content {
        display: flex;
        flex-direction: column;
    }

    .about-text {
        order: 1;
    }

    .address {
        order: 2;
    }

    /* Directory */
    .directory .header {
        height: 200px;
    }

    .directory .hero-portrait,
    .directory .hero-landscape {
        height: 200px;
    }

    .directory .about {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: center;
        margin-bottom: 4rem;
        padding-bottom: 4rem;
        border-bottom: 1px solid var(--border-color);
    }

    .directory .about .content-header {
        grid-column: 1;
        grid-row: 1;
    }

    .directory .about .content-text {
        grid-column: 1;
        grid-row: 2;
    }

    .directory .misc {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: center;
        margin-bottom: 4rem;
    }

    .directory .misc .image {
        grid-column: 1;
        grid-row: 1;
    }

    .directory .misc .openinghours {
        grid-column: 1;
        grid-row: 2;
        border-bottom: 1px solid var(--border-color);
        border-right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .directory .misc .address {
        grid-column: 1;
        grid-row: 3;
        text-align: center;
    }

    /* Gallery */
    .image-gallery-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 2rem;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        height: 400px;
    }

    .gallery-content {
        padding: 2rem 1rem;
    }

    /* Directory Grid */
    .directory-grid {
        grid-template-columns: 1fr;
    }

    /* Experience */
    .experience h2 {
        font-size: 2rem;
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .experience-image-4 {
        display: none;
    }

    .experience-image-3 {
        grid-column: 1 / 3;
    }

    /* Map */
    .map-container {
        height: 300px;
        margin: 1rem 0;
    }
}
