/* Base Styles */
:root {
    --primary: #0a192f;
    --accent: #64ffda;
    --text-light: #ccd6f6;
    --text-dark: #8892b0;
    --bg-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* ########################################
#                 Generic  
#########################################*/
body {
    background-color: var(--bg-light);
    color: var(--primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.btn {
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

section {
    padding: 40px 10%;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
}

h4 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    color: var(--primary);
}

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

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Justification for partner descriptions */
.justify-text {
    text-align: justify;
    text-justify: inter-word;
    /* Ensures clean spacing between words */
}

/* ########################################
#                 Footer  
#########################################*/

/* --- Professional Footer Refactor --- */
.site-footer {
    background: #060e1b;
    /* Deep corporate blue */
    color: var(--text-light);
    padding: 4rem 10% 2rem 10%;
    border-top: 2px solid var(--accent);
    margin-top: auto;
}

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

.footer-title {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-align: left;
    /* Overriding global H4/H5 centers if necessary */
}

/* Contact and Hours Styling */
.contact-details p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.contact-details strong {
    color: var(--accent);
}

/* Partner Chips Styling */
.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partner-tags span {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Status Indicator */
.auth-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.brand-info {
    text-align: justify;
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--text-light);
}
.brand-info strong{
    color: var(--text-light);
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.tagline {
    opacity: 0.6;
    font-style: italic;
}

/* Partner 2-Column Layout */
.partner-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Creates the two columns */
    gap: 10px;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.partner-item img {
    width: 40px;
    height: 40px;
    /* Makes placeholders blend with dark theme */
    border-radius: 2px;
}

/* Ensure Column 1 titles align left */
.footer-col .footer-title {
    text-align: left;
}


/* ########################################
#               Navigation Bar  
#########################################*/
nav {
    background: var(--primary);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    /* The 1.5rem side padding creates the 'highlight' width */
    display: block;
    /* Forces the <a> to fill the space of the <li> */
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #112240;
    color: #64ffda;
}

/* ########################################
#             Dropdown Nav 
#########################################*/
.dropdown {
    position: relative;
    display: inline-block;
}

/* Hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: #0a192f;
    padding: 0;
    /* Ensure no gaps at the top of the dropdown */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style the dropdown items */
.dropdown-content li a {
    color: white;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* ########################################
#               Home page
#########################################*/
#home {
    height: 80vh;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)),
        url('https://kazauk.co.uk/itoff.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

#home h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#home p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}



/* ########################################
#             Contact Us Page
#########################################*/
#contact {
    background: #e2e8f0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
}

.text-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-text h3 {
    margin-bottom: 0.5rem;
}

.map-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Centers the container on the page */

    /* Flexbox for centering the iframe inside the container */
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 10px; */
}

/* Ensure the iframe itself is block-level to avoid extra spacing */
.map-container iframe {
    display: block;
}

/* Adjust the 80px to match the actual height of your nav bar */
.service-section h2 {
    scroll-margin-top: 100px;
}

/* Call to Action Section Styles */
#cta {
    background-color: #f1f5f9;
    /* Light slate background to separate from white sections */
    text-align: center;
    padding: 100px 10%;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

#cta h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

#cta p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

/* Enhancing the existing .btn class for the CTA */
#cta .btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
    /* Soft accent glow */
}

#cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
    background-color: #52e0c0;
    /* Slightly darker shade of accent on hover */
}

.services-container {
    max-width: 800px;
    /* Limits line length for better readability */
    margin: 0 auto;
    padding: 60px 20px;
}

.service-section {
    margin-bottom: 80px;
    /* Generous breathing room between topics */
}

.service-section h2 {
    text-align: left;
    /* Aligns with text for a more academic, professional feel */
    margin-bottom: 20px;
    font-size: 2rem;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    padding: 15px 20px;
    margin-bottom: 12px;
    /* Increased opacity from 0.03 to 0.08 for a slightly darker shade */
    background-color: rgba(100, 255, 218, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ########################################
#                 Mobile
#########################################*/
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Footer becomes one long vertical list */
        text-align: center;
    }

    .partner-item {
        justify-content: center;
    }

    /* Adjusting the logo size for very small screens */
    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .product-item img {
        margin: 0 auto;
    }

    .map-container {
        height: 200px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Simplified for demo - usually a hamburger menu */
    #home h1 {
        font-size: 2.5rem;
    }

    .auth-badge {
        justify-content: center;
    }

    /* Stack Navigation */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        /* Force consistent height */
        background-color: var(--primary);
        display: flex;
        justify-content: space-between;
        /* Logo left, Burger right */
        align-items: center;
        position: relative;
        padding: 0 5%;
        z-index: 9999;
    }

    nav ul {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Section Scaling */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Product Grid Scaling */
    .services-grid,
    .partner-grid-list {
        grid-template-columns: 1fr;
        /* Force single column */
    }

    /* Contact Form Width */
    .contact-container {
        padding: 20px;
    }

    .menu-toggle {
        margin-left: auto;
        flex-direction: column;
        display: flex !important;
        /* Forces the burger to show */
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: var(--accent);
        display: block;
        transition: all 0.3s ease-in-out;
    }

    .nav-list {
        display: none;
        /* Hide links by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
        position: absolute;
        top: 70px;
        /* Adjust based on your nav height */
        left: 0;
        text-align: center;
        padding: 20px 0;
        z-index: 1000;
    }

    /* This class will be added by JavaScript */
    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        text-align: left;
    }

    .nav-list li a {
        display: block;
        padding: 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-content {
        position: static;
        /* Removes absolute floating */
        display: none;
        /* Toggle this via JS */
        background-color: rgba(0, 0, 0, 0.2);
        width: 100%;
        padding-left: 20px;
        /* Offsets sub-items to the right of parent text */
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block !important;
        position: static;
        /* Stack it vertically in the menu */
        width: 100%;
        background-color: rgba(255, 255, 255, 0.05);
        padding-left: 20px;
        /* Right-offset indentation */
    }

    /* ANIMATION LOGIC */

    /* Move the top bar down and rotate 45deg */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
    }

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

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }
}

/* Hide burger on Desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .nav-list {
        display: flex !important;
        /* Always show horizontal on desktop */
    }
}

@media (max-width: 900px) {
    .product-grid {
        /* Drops to 1 column for smaller tablets and mobile */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 4 columns becomes 2 */
        gap: 30px;
    }

    nav ul {
        gap: 15px;
    }
}