/* base resets and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif, tahoma;
    line-height: 1.6;
    background-color: #0d1117; /* High-end dark background */
    color: #e6edf3;          /* Bright off-white body text for maximum readability */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
}

/* 1. Left Section */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #43c1f3;
}

/* 2. Center Section */
.header-title {
    text-align: center;
    white-space: nowrap;
}

.header-title h1 {
    margin: 0;
    color: #43c1f3;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(67, 193, 243, 0.2);
}

/* 3. Right Section */
.logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.logo img {
    mix-blend-mode: screen; /* Drops pure black out of the image */
    max-height: 80px;        /* Adjust height to fit your navbar */
    width: auto;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    margin-left: 20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #161b22;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    border: 1px solid #30363d;
    list-style: none;
    padding: 10px 0;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    color: #e6edf3;
    padding: 10px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #43c1f3;
    color: #0d1117;
    font-weight: bold;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dark gradient overlay so white text always pops */
    background-image: linear-gradient(
        rgba(13, 17, 23, 0.8), 
        rgba(13, 17, 23, 0.8)
    ), 
    url('https://scontent.fmel12-1.fna.fbcdn.net/v/t39.30808-6/481144864_1190992663025868_3282427799046506003_n.jpg?stp=dst-jpg_tt6&cstp=mx1440x816&ctp=s960x960&_nc_cat=107&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=-5YFjgpnDw4Q7kNvwGUSHoD&_nc_oc=AdrxzEu7fXVNNt8jkKhJMkfHpAKELJIFMdUTn4X_FUsskPPTAsU0OBAi1YAqqammx6g&_nc_zt=23&_nc_ht=scontent.fmel12-1.fna&_nc_gid=7TMRu9rfRrblAX0BJxO3pg&_nc_ss=7b289&oh=00_AQBT_0XpeP0c6CDw90y88vQt9PfTvdzyvvOKi4eXyGWpWQ&oe=6A6B8C70');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.25rem;
    color: #c9d1d9;
    margin-bottom: 2rem;
}

/* Scroll Below text styling */
.hero-content p.scroll-text, 
.scroll-text {
    margin-top: 35px;
    font-size: 0.95rem;
    color: #43c1f3;
    letter-spacing: 0.5px;
}

/* Call to Action Button */
.btn {
    display: inline-block;
    background-color: #f0a500; /* Warm Barber Gold */
    color: #0d1117;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.3);
}

.btn:hover {
    background-color: #43c1f3;
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 193, 243, 0.4);
}

/* Sections & Grid Layout */
.features {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.2rem;
    color: #43c1f3;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Content Cards (Services & Team) */
.card {
    background-color: #0d1117;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border-top: 4px solid #43c1f3; /* Bright cyan top bar */
    transition: transform 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: #f0a500;
}

.card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

/* Overriding any old inline HTML black text styles */
.card p, 
.card p[style] {
    color: #c9d1d9 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Opening Hours Card */
.hours-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 28px;
    background-color: #161b22;
    border-radius: 12px;
    border: 1px solid #30363d;
    border-top: 4px solid #f0a500; /* Gold top bar */
}

.hours-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-card li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #21262d;
    color: #e6edf3;
    font-size: 1rem;
}

.hours-card li:last-child {
    border-bottom: none;
}

/* Footer Section */
footer {
    background-color: #161b22;
    color: #8b949e;
    text-align: center;
    padding: 2.5rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    border-top: 1px solid #30363d;
}

/* Mobile Phones & Small Screens (768px and below) */
@media (max-width: 768px) {

    /* 1. Navbar Adjustments */
    .navbar {
        flex-direction: column;
        padding: 12px 16px;
        gap: 0.75rem;
    }

    /* Force Title and Logo to stack neatly */
    .header-title h1 {
        font-size: 2rem; /* Reduced from 2.8rem so it doesn't break into awkward lines */
    }

    .logo {
        justify-content: center; /* Center logo on phone screens */
        width: 100%;
    }

    .logo img {
        max-height: 60px; /* Keeps logo from overwhelming mobile header */
    }

    /* 2. Navigation Links & Touch Targets */
    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 0.5rem;
        padding: 10px 0 0 0;
        border-top: 1px solid #30363d;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 8px 0;
        font-size: 1.05rem;
    }

    /* Mobile Dropdown Fix */
    .dropdown {
        margin-left: 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static; /* Stack dropdown inline on mobile instead of floating */
        width: 100%;
        box-shadow: none;
        background-color: #21262d;
        border: none;
        border-radius: 8px;
        margin-top: 5px;
    }

    /* 3. Hero Section Padding & Text Sizing */
    .hero {
        min-height: 70vh;
        padding: 4rem 1.25rem;
    }

    .hero-content h1 {
        font-size: 2.1rem; /* Fits cleanly on smaller device widths */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    /* Full-width mobile button for easy thumb tapping */
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
        text-align: center;
    }

    /* 4. Features & Card Grid */
    .features {
        margin: 3rem auto;
        padding: 0 1.25rem;
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .grid {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .card {
        max-width: 100%; /* Spans full screen width on phones */
        width: 100%;
        padding: 1.5rem;
    }

    .hours-card {
        width: 100%;
        padding: 1.25rem;
    }

    .hours-card li {
        font-size: 0.95rem;
    }
}

/* Extra Small Devices (380px and below) */
@media (max-width: 380px) {
    .header-title h1 {
        font-size: 1.7rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}