:root {
    --hero-bg: #1A2535; /* Deep midnight blue */
    --main-bg: #E8ECEF; /* Soft gray with blue undertones */
    --card-bg: #F5F7FA; /* Pale blue-white */
    --body-text: #2C3E50; /* Dark slate blue */
    --hero-text: #f2efff; /* Soft lavender */
    --link-highlight: #8E44AD; /* Vibrant plum purple */
    --joanne-bg: linear-gradient(to right, #f3f6fa, #E8ECEF); /* Blue-to-lavender gradient */
    --card-boxShadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly darker shadow for contrast */
    --font-heading: 'Playfair Display', serif; /* For h1, h2 */
    --font-body: 'Inter', sans-serif; /* For body, subheadings, nav */
}



body {
    background-color: var(--main-bg);
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--body-text);
}

.bxShad {
    box-shadow: var(--card-boxShadow);
}

main {
    color: var(--body-text);
}

.joanneBg {
    background: var(--joanne-bg);
}

.flex {
    display: flex;
}

.jcen {
    justify-content: center;
}

.aitems {
    align-items: center;
}

.sbet {
    justify-content: space-between;
}

.fcol {
    flex-direction: column;
}

.w-100 {
    width: 100%;
}

.w-1300 {
    width: 1300px;
}

.barber-poleSvg {
    width: 45px;
    height: auto;
}

.phoneSVG {
    width: 21px;
    height: 21px;
    margin-top: 0.125rem;
    margin-right: 0.3rem;
}

/* Typography */
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--hero-text);
    margin-bottom: 1.25rem;
}

.headings {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--body-text);
    margin-bottom: 1rem;
}

.headings::after {
    content: '';
    display: block;
    width: 65px;
    height: 4px;
    background: repeating-linear-gradient(
        45deg,
        var(--link-highlight), /* Vibrant plum purple #8E44AD */
        var(--link-highlight) 4px,
        var(--card-bg), /* Pale blue-white #F5F7FA */
        var(--card-bg) 8px
    );
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 2px;
    animation: barber-pole 8s linear infinite;
}

@keyframes barber-pole {
    0% { background-position-x: 0; }
    100% { background-position-x: 8px; }
}

h3, h4 {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--body-text);
}

.aboutGrid h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 0.5rem;
}

p, .aboutP, .timeText, .dayText, footer p {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--body-text);
}

.navItems {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--hero-text);
    margin-left: 1.35rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navItems a {
    color: var(--hero-text);
    text-decoration: none;
    transition: color 0.1s ease-in-out;
}

.navItems a:hover {
    color: var(--link-highlight);
}

.navItemsSm {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: white;
    margin-left: 0.35rem;
    padding: 0.75rem;
}

.navItemsSm a {
    color: white;
    text-decoration: none;
}

.navItemsSm a:hover {
    color: var(--link-highlight);
}

.telNum {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--hero-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.telNum a {
    color: var(--hero-text);
    text-decoration: none;
}

.telNum a:hover {
    color: var(--link-highlight);
}

.hero-content button {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Larger for desktop */
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: white;
    background-color: var(--link-highlight);
    padding: 0.675rem 1.75rem 0.8rem 1.75rem; /* Larger padding */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.22s ease-in-out;
    margin-top: 0.5rem; /* Breathing room */
}

.current-day {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--link-highlight);
}

.directionsLink {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--link-highlight);
    text-decoration: underline;
}

.logoHeadText {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: white;
}

footer a {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--link-highlight);
    text-decoration: none;
}

.scroll-top-btn {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: #fff;
}

/* Navigation */
.nav-container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    z-index: 1000;
}

nav {
    transition: background-color 0.3s ease;
}

.mbLastNavItemSm {
    margin-bottom: 1rem;
}

.mtNavItemSm {
    margin-top: 0.75rem;
}

#mobileNavMenu {
    border-bottom-left-radius: 0.6rem;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80vw;
    max-width: 350px;
    background-color: #1d1d1d;
    padding: 0.75rem;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
}

#burgerMenu {
    cursor: pointer;
}

#burgerMenu svg {
    width: 34px;
    height: 34px;
}

#mobileNavMenu svg {
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    width: 100vw;
    height: 0;
    padding-bottom: 75%;
    max-height: 75vh;
    background-image: url('../assets/barberchair.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--hero-bg);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 475px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--hero-text);
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
}

.hero-content button:hover {
    opacity: 0.8;
}

/* Hours Section */
.hours-display {
    display: flex;
    margin-top: 1rem;
}

.hourDayWraper {
    display: flex;
    min-width: 325px;
    justify-content: space-between;
}

.dayText {
    text-align: right;
}

/* General Styles */
.secMarg {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.secMargTop {
    margin-top: 6rem;
}

.aboutMT {
    margin-top: 1rem;
}

.gallery-img:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}

.picturesArea {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 1rem;
}

.aboutGrid {
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: 900px;
    margin: 0 1rem;
    background-color: var(--main-bg);
}

.aboutGrid .cardBg {
    padding: 1rem 1rem 2rem 1rem;
    max-width: 800px;
    border-radius: 8px;
}

.aboutGrid h2 {
    margin-bottom: 0.5rem;
}

.map_size {
    width: 600px;
    height: 400px;
}

.cardBg {
    background-color: var(--card-bg);
}

.meetJoTextWidth {
    width: 90%;
}

.aboutJMargin {
    margin-top: 5rem;
}

/* Footer */
footer {
    background-color: var(--card-bg);
 
    text-align: center;
}

footer p {
    margin: 0.15rem 0;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal */
.gallery-img {
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    width: 75vw;
    height: 75vh;
    object-fit: contain;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-close:hover {
    color: #e2b852;
}

.joannePic {
    border-radius: 8px; 
}

/* Responsive Typography */
@media screen and (max-width: 400px) {
    .picturesArea {
        grid-template-columns: 1fr;
        grid-gap: 2rem;
    }
}

@media (min-width: 401px) and (max-width: 795px) {
    .picturesArea {
        grid-template-columns: 1fr 1fr;
        grid-gap: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .telNum {
        font-size: clamp(0.875rem, 2vw, 1rem);
    }

    .logoHeadText {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }

    .nav-container {
        padding: 0.35rem 0.6rem;
    }

    .hero-section {
        padding-bottom: 79%;
    }

    .hero-content {
        padding: 0.75rem 0.3rem;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 4vw, 2rem);
        margin-bottom: 0.65rem;
    }

  
    .hero-content button {
        font-size: clamp(0.875rem, 2vw, 1rem); /* Slightly larger for mobile */
        padding: 0.45rem 1.15rem 0.525rem 1.15rem; /* Adjusted for touch target */
        margin-top: 0.10rem;
    }
    

    .phoneSVG {
        width: 18px;
        height: 18px;
        margin-top: 0.175rem;
    }

    .map_size {
        max-width: 325px;
        height: 350px;
    }

    .joannePic {
        max-width: 225px;
    }

    .navItemsSm {
        font-size: clamp(1.5rem, 2.5vw, 1.25rem);
        padding: 0.5rem;
    }

    #burgerMenu svg {
        width: 32px;
        height: 32px;
    }

    .hourDayWraper {
        min-width: 300px;
    }

    .meetJoTextWidth {
        width: 100%;
    }

    .modal-close {
        top: -30px;
        right: 0;
        font-size: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 795px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .phoneSVG {
        width: 21px;
        height: 21px;
        margin-top: 0.175rem;
    }

    .map_size {
        max-width: 525px;
        height: 400px;
    }

    #burgerMenu svg {
        width: 36px;
        height: 36px;
    }
}

@media screen and (min-width: 576px) {
    #mobileNavMenu {
        width: 50vw;
        max-width: 400px;
    }
}

@media screen and (max-width: 795px) {
    .navItemsLg_main, .telNum {
        display: none;
    }

    .aboutGrid {
        grid-template-columns: 1fr;
    }

    .joannePic {
        margin-bottom: 1rem;
        margin-top: 1rem;
        max-width: 200px;
    }

    .secMarg {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .aboutJMargin {
        margin-top: 4rem;
    }
}

@media screen and (min-width: 796px) {
    #burgerMenu, #mobileNavMenu {
        display: none;
    }

    nav {
        position: sticky;
        top: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .joanneBg {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .aboutJMargin {
        margin-top: 6rem;
    }
}

@media screen and (min-width: 1024px) {
    .hero-section {
        padding-bottom: 60%;
        background-position: center 28%;
    }

    .hero-content {
        top: 41%;
        transform: translate(-50%, -50%);
        max-width: 550px;
    }

    .hero-content h1 {
        font-size: clamp(2.75rem, 5vw, 3rem);
    }

    .logoHeadText {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .navItems {
        font-size: clamp(1.125rem, 2vw, 1.25rem);
    }

    .telNum {
        font-size: clamp(1.125rem, 2vw, 1.25rem);
    }

    .phoneSVG {
        width: 24px;
        height: 24px;
    }

    .joannePic {
        padding-left: 0.75rem; 
        padding-right: 0.75rem; 
    }
}

@media screen and (min-width: 1000px) {
    .modal-content img {
        width: 55vw;
        height: 55vh;
    }
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 0.65rem 0.95rem 0.85rem 0.95rem;
    background-color: var(--link-highlight);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-top-btn:hover {
    opacity: 1;
}

.scroll-top-btn.show {
    display: block;
}

/* Ensure button only appears on screens < 795px */
@media (min-width: 795px) {
    .scroll-top-btn {
        display: none !important;
    }
}