/* ==========================================================================
   Janes Manes Custom Stylesheet
   Theme: White & Sage Green Inversion
   ========================================================================== */

:root {
    --bg-primary: #FFFFFF;
    --bg-card: #F4F6F3;
    --bg-card-hover: #EAEDE8;
    --text-primary: #5D6B57;
    --text-accent: #8A9A84;
    --border-color: #D8DFD5;
}

/* Base Resets & Globals */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    background-color: var(--bg-primary); color: var(--text-primary);
    font-family: 'Georgia', 'Times New Roman', serif; line-height: 1.6;
    overflow-x: hidden; transition: background-color 0.3s ease, color 0.3s ease;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--text-primary); text-decoration: none; transition: all 0.3s ease; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-primary); }

/* Header & Navigation */
.site-header { background-color: var(--bg-primary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; position: relative; height: 170px;
    @media (max-width: 768px) { flex-direction: column; gap: 15px; height: auto; padding: 20px; }
}
.logo { display: flex; align-items: center; img { height: 150px; width: auto; display: block; } @media (max-width: 768px) { position: static; } }

.main-nav {
    margin-left: auto; @media (max-width: 768px) { margin-left: 0; }
    ul { list-style: none; display: flex; align-items: center; gap: 30px; @media (max-width: 768px) { gap: 15px; flex-wrap: wrap; justify-content: center; } }
    a {
        font-size: 0.9rem; letter-spacing: 1.5px;
        &:hover, &.active { color: var(--text-accent); }
        &.nav-cta {
            background-color: var(--text-primary); color: var(--bg-primary); padding: 8px 16px; border-radius: 2px; font-weight: 700;
            &:hover { background-color: var(--text-accent); }
        }
    }
}

/* Buttons */
.btn {
    display: inline-block; padding: 12px 28px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; border-radius: 2px; cursor: pointer; text-align: center; border: 1px solid transparent; transition: all 0.3s ease;
}
.btn-primary, .modal-btn { background-color: var(--text-primary); color: var(--bg-primary); &:hover { background-color: var(--text-accent); } }
.btn-secondary { background-color: transparent; color: var(--text-primary); border-color: var(--text-primary); &:hover { background-color: var(--text-primary); color: var(--bg-primary); } }
.btn-large { padding: 16px 40px; font-size: 1rem; }

/* Hero Section */
.hero-section {
    width: 100%; 
    max-width: 1200px; /* Locks the entire hero box to 1200px wide */
    margin: 0 auto;    /* Centers it on widescreen monitors */
    background-color: var(--bg-primary); 
    min-height: 450px; 
    padding: 60px 0;   /* Allows the section to expand so buttons never get cut off */
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    
    /* Apply background directly to the centered section */
    background-image: url('Salon.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content { position: relative; z-index: 5; max-width: 800px; padding: 20px; text-align: center; }
.hero-content { position: relative; z-index: 3; max-width: 800px; padding: 0 20px; text-align: center; }
.hero-subtitle { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 15px; opacity: 0.8; }
.hero-title { font-size: 3rem; margin-bottom: 20px; letter-spacing: 6px; @media (max-width: 900px) { font-size: 2.8rem; } }
.hero-tagline { font-size: 1.15rem; margin-bottom: 40px; font-weight: 300; opacity: 0.9; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; @media (max-width: 768px) { flex-direction: column; align-items: center; .btn { width: 100%; max-width: 300px; } } }

/* Shared Sections & Text Opacity */
.section-header { text-align: center; margin-bottom: 60px; h2 { font-size: 2rem; margin-bottom: 15px; } }
.accent-line { width: 50px; height: 2px; background-color: var(--text-accent); margin: 0 auto 20px auto; }
.section-header p, .panel-intro, .service-content p, .gallery-item-info p, .lightbox-caption p, .modal-content p, .footer-brand p, .footer-info p { color: var(--text-primary); opacity: 0.8; }

/* Grids & Cards (Services & Gallery) */
.services-section { padding: 90px 0; }
.services-grid, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card, .gallery-item {
    background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease;
    &:hover { transform: translateY(-4px); border-color: var(--text-primary); }
}

/* Image Containers */
.service-img-container, .gallery-img-container {
    width: 100%; overflow: hidden; background-color: #E2E8DE;
    img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
}
.service-img-container { height: 450px; }
.gallery-img-container { height: 340px; @media (max-width: 768px) { height: 280px; } }
.service-card:hover .service-img-container img { transform: scale(1.05); }
.gallery-item:hover .gallery-img-container img { transform: scale(1.04); }

.service-content {
    padding: 30px 20px; text-align: center;
    .service-icon { font-size: 2rem; margin-bottom: 15px; }
    h3 { margin-bottom: 10px; font-size: 1.2rem; letter-spacing: 1px; }
    p { font-size: 0.95rem; line-height: 1.6; }
}

.cta-banner {
    padding: 80px 0; background-color: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: center;
    h2 { font-size: 2rem; margin-bottom: 15px; } p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.8; }
}

/* Sub-Pages Heros */
.page-title-section { padding: 80px 0 40px 0; text-align: center; h1 { font-size: 2.5rem; margin-bottom: 10px; } }
.page-hero { 
    height: 40vh; 
    background-image: url('Salon.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    position: relative; 
    margin-bottom: 60px; 
    &::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.75); z-index: 2; content: ""; }
    h1 { 
        position: relative; 
        z-index: 3; 
        font-size: 2.5rem; 
        letter-spacing: 3px; 
    } 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.85) 100%); 
    z-index: 2; /* Safely behind content */
}

/* Gallery Filters & Lightbox */
.gallery-section { padding: 60px 0 90px 0; }
.filter-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn {
    background-color: transparent; color: var(--text-primary); border: 1px solid var(--border-color); padding: 10px 24px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; border-radius: 2px; transition: all 0.3s ease;
    &:hover, &.active { background-color: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
}
.gallery-item-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; h3 { font-size: 1rem; letter-spacing: 1px; } }
.gallery-item-tag { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 2px; }

.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 2000; padding: 20px;
    &.active { opacity: 1; pointer-events: auto; }
    .lightbox-img { max-width: 90%; max-height: 70vh; border: 1px solid var(--border-color); object-fit: contain; }
    .lightbox-caption { margin-top: 25px; text-align: center; max-width: 600px; h3 { font-size: 1.25rem; margin-bottom: 8px; letter-spacing: 1.5px; } }
    .close-lightbox { position: absolute; top: 25px; right: 35px; font-size: 45px; cursor: pointer; line-height: 1; transition: opacity 0.2s ease; &:hover { opacity: 0.7; } @media (max-width: 768px) { top: 15px; right: 20px; font-size: 35px; } }
}

/* Contact & Forms */
.contact-section { padding: 60px 0 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; @media (max-width: 900px) { grid-template-columns: 1fr; gap: 40px; } }
.contact-info-panel h2, .contact-form-panel h2 { font-size: 1.5rem; margin-bottom: 25px; }
.panel-intro { margin-bottom: 30px; }
.info-item { display: flex; gap: 20px; margin-bottom: 25px; }
.info-icon { font-size: 1.5rem; }
.info-text { h3 { font-size: 1rem; margin-bottom: 5px; } p, a { opacity: 0.8; line-height: 1.5; } }
.text-link { text-decoration: underline; color: var(--text-primary) !important; }
.map-container { width: 100%; height: 250px; margin-top: 30px; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; iframe { width: 100%; height: 100%; display: block; } }

.styled-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; @media (max-width: 768px) { grid-template-columns: 1fr; } }
.form-group {
    display: flex; flex-direction: column; gap: 8px;
    label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
    input, select, textarea { background-color: var(--bg-card); border: 1px solid var(--border-color); padding: 14px; color: var(--text-primary); font-size: 0.95rem; border-radius: 2px; outline: none; transition: border-color 0.3s ease; &:focus { border-color: var(--text-primary); } }
    select { appearance: none; background: var(--bg-card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%235D6B57'><path d='M0 3l5 5 5-5z'/></svg>") no-repeat right 15px center; padding-right: 40px; }
}
.form-submit { align-self: flex-start; margin-top: 10px; @media (max-width: 768px) { width: 100%; max-width: 100%; } }

/* Meet the Stylist */
.meet-stylist { margin-top: 4rem; padding-top: 3rem; border-top: 2px solid var(--border-color); h2 { margin-bottom: 2rem; text-align: center; } }
.stylist-content { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.stylist-photo { flex: 1; min-width: 250px; max-width: 350px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.08); object-fit: cover; }
.stylist-text { flex: 2; min-width: 300px; h3 { font-size: 1.8rem; margin-bottom: 1rem; } }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(93, 107, 87, 0.4); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: var(--bg-primary); padding: 40px; border-radius: 8px; text-align: center; max-width: 400px; width: 90%; border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.1); position: relative; h2 { margin-bottom: 15px; font-size: 1.5rem; } p { font-size: 0.95rem; margin-bottom: 25px; } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; }
.modal-actions { display: flex; gap: 15px; justify-content: center; }
.modal-btn { padding: 10px 20px; border-radius: 4px; text-transform: uppercase; font-size: 0.85rem; font-weight: bold; }

/* Footer */
.site-footer { background-color: var(--bg-card); border-top: 1px solid var(--border-color); padding: 60px 0 20px 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; @media (max-width: 768px) { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand, .footer-info, .footer-links { h3, h4 { margin-bottom: 15px; font-size: 1rem; } }
.footer-links { ul { list-style: none; display: flex; flex-direction: column; gap: 10px; } a { opacity: 0.7; &:hover { opacity: 1; } } }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; p { opacity: 0.5; font-size: 0.8rem; } }