/* 
   DermaBloom - Main Stylesheet
   Elegant modern design for a Beverly Hills aesthetician spa
*/

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary-color: #d4b098; /* Soft gold/rose gold */
    --secondary-color: #f8f5f2; /* Off-white */
    --accent-color: #6d9197; /* Soft teal */
    --dark-color: #2c3e50; /* Deep blue-gray */
    --light-color: #ffffff;
    --text-color: #333333;
    --light-text: #777777;
    --border-color: #e0e0e0;
    
    /* Typography */
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-spacing: 80px;
    --element-spacing: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.btn-text:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.btn-text:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--light-color);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-family: var(--heading-font);
    font-style: italic;
}

/* ===== Introduction Section ===== */
.intro {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Featured Treatments Section ===== */
.featured-treatments {
    padding: var(--section-spacing) 0;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.treatment-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.treatment-image {
    height: 200px;
    overflow: hidden;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-image img {
    transform: scale(1.1);
}

.treatment-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
}

.treatment-card p {
    padding: 0 20px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.treatment-card .btn-text {
    margin: 15px 20px 20px;
    display: inline-block;
}

/* ===== Testimonials Preview ===== */
.testimonials-preview {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 350px;
    text-align: left;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
}

.testimonial-card .quote:before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
}

.client-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-name {
    font-weight: 600;
    color: var(--dark-color);
}

.rating {
    color: var(--primary-color);
}

/* ===== Call-to-Action Section ===== */
.cta {
    padding: var(--section-spacing) 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-color);
    text-align: center;
}

.cta h2 {
    color: var(--light-color);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo a {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--light-color);
    font-weight: 600;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info p,
.business-hours p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .treatments-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .section-spacing {
        padding: 60px 0;
    }
}
