/* -----------------------------------
   GLOBAL COLORS
----------------------------------- */
:root {
    --primary: #000000;
    --secondary: #C6A667;
    --background: #F5F5F5;
    --text: #1A1A1A;
    --highlight: #C6A667;
}

/* -----------------------------------
   GLOBAL BASE STYLES
----------------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* -----------------------------------
   HERO IMAGE
----------------------------------- */

.hero-image {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 300px;
    max-height: 520px;

    background-image: url("images/jlsalon.jpeg");
    background-size: cover;
    padding: 75px; 
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
    border-bottom: 4px solid var(--secondary);
}

/* Rainbow shimmer overlay */

.hero-image::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient (
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.25)
        );
        z-index:1;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        rgba(255,0,0,0.06),
        rgba(255,165,0,0.06),
        rgba(255,255,0,0.06),
        rgba(0,128,0,0.06),
        rgba(0,0,255,0.06),
        rgba(75,0,130,0.06),
        rgba(148,0,211,0.06)
    );

    background-size: 400% 400%;
    animation: shimmerMove 18s ease-in-out infinite;

    pointer-events: none;
}

@keyframes shimmerMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero text */
.hero-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    color: white;
    font-family: "Cinzel", serif;
    font-size: 2.6rem;
    font-weight: 600;

    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);

    animation: fadeIn 2s ease forwards;
}

/* -----------------------------------
   NAVIGATION
----------------------------------- */

.hero-nav {
    background: var(--primary);

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;

    padding: 12px 0;

    border-bottom: 3px solid var(--secondary);
}

.hero-nav a {
    color: white;
    text-decoration: none;

    padding: 12px 22px;

    font-size: 1.05rem;
    font-weight: 600;

    letter-spacing: 0.6px;

    transition: 0.3s ease;
}

.hero-nav a:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Book button */

.nav-book {
    background: var(--highlight);
    color: var(--primary);

    border-radius: 4px;

    font-weight: bold;

    border: 2px solid var(--secondary);
}

.nav-book:hover {
    background: #b8974f;
}

/* -----------------------------------
   CONTENT SECTIONS
----------------------------------- */

main article,
main section {

    padding: 40px 30px;

    max-width: 900px;

    margin: 40px auto;

    text-align: center;

    border: 1px solid var(--secondary);

    border-radius: 8px;

    animation: fadeIn 1.2s ease forwards;
}

/* Divider */

.divider {
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 20px auto 30px auto;
}

/* -----------------------------------
   HEADINGS
----------------------------------- */

h1, h2, h3, h4 {
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 0;
}

h2 {
    font-size: 1.9rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
    padding-bottom: 6px;
}

/* -----------------------------------
   LOCATION BUTTONS
----------------------------------- */

.location-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 15px;
}

.location-buttons a {
    background: var(--highlight);
    color: var(--primary);

    padding: 14px 28px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 600;

    letter-spacing: 0.6px;

    transition: 0.3s ease;

    border: 2px solid var(--secondary);
}

.location-buttons a:hover {
    background: #b8974f;
}

/* -----------------------------------
   FOOTER
----------------------------------- */

footer {
    background: var(--primary);
    color: white;

    padding: 20px;

    text-align: center;

    border-top: 3px solid var(--secondary);
}

/* -----------------------------------
   PORTFOLIO GRID
----------------------------------- */

.portfolio-grid {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 20px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;
}

.portfolio-item {
    border: 2px solid var(--secondary);

    border-radius: 8px;

    overflow: hidden;

    background: #fff;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* -----------------------------------
   SERVICES MENU
----------------------------------- */

.service-category {
    max-width: 900px;
    margin: 0 auto 40px;

    background-color: #fff;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.08);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-category h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #b97a57;
    padding-bottom: 8px;
}

/* Services list */

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category li {

    display: grid;

    grid-template-columns: 1fr auto;

    grid-template-areas:
        "name price"
        "desc desc";

    row-gap: 6px;

    padding: 15px 0;

    border-bottom: 1px solid #eee;
}

.service-category li:last-child {
    border-bottom: none;
}

.service-name {
    grid-area: name;
    font-weight: 600;
}

.service-price {
    grid-area: price;
    font-weight: bold;
    color: #b97a57;
}

.service-description {
    grid-area: desc;
    font-size: 0.95rem;
    color: #666;
}

/* -----------------------------------
   ANIMATIONS
----------------------------------- */

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------
   MOBILE RESPONSIVE
----------------------------------- */

@media (max-width: 1024px) {

    .hero-image {
        height: 45vh;
    }

}

@media (max-width: 768px) {

    .hero-image {
        height: 35vh;
        min-height: 220px;
        background-position: center top;
    }

    .hero-text {
        font-size: 1.9rem;
    }

    main article,
    main section {
        padding: 28px 20px;
        margin: 25px auto;
    }

    .hero-nav a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .location-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

}

@media (max-width: 480px) {

    .hero-image {
        height: 30vh;
        min-height: 200px;
    }

    .hero-text {
        font-size: 1.6rem;
    }

}