/* ============================================
   Steel Magnolias Salon & Spa — Styles
   Palette: Forest Green + Off-White
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Poppins', sans-serif;
    color: #2c3e2d;
    background: #faf8f4;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Lora', serif; font-weight: 600; line-height: 1.25; color: #1a3a1f; }
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5a8a5c;
    margin-bottom: 10px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: #4a634c; max-width: 600px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-desc { margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-primary {
    background: #1a5c34;
    color: #fff;
    border-color: #1a5c34;
}
.btn-primary:hover { background: #144a28; border-color: #144a28; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,92,52,0.3); }
.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }
.btn-outline-green {
    background: transparent;
    color: #1a5c34;
    border-color: #1a5c34;
}
.btn-outline-green:hover { background: #1a5c34; color: #fff; transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: #1a5c34;
    border-color: #1a5c34;
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-ghost:hover { background: #1a5c34; color: #fff; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26,92,52,0.08);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(26,58,31,0.1); }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a3a1f;
}
.nav-logo-icon { color: #2d7a4a; }
.nav nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #3d5a3f;
    border-radius: 50px;
    transition: all 0.25s ease;
}
.nav nav a:hover { color: #1a5c34; background: rgba(26,92,52,0.06); }
.nav-cta {
    background: #1a5c34 !important;
    color: #fff !important;
    font-weight: 500 !important;
}
.nav-cta:hover { background: #144a28 !important; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: #1a3a1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,248,244,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(26,92,52,0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s ease;
        pointer-events: none;
    }
    .nav nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav nav a { width: 100%; text-align: center; padding: 12px 16px; }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.pexels.com/photos/5605024/pexels-photo-5605024.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center center / cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,40,20,0.82) 0%, rgba(26,62,35,0.75) 50%, rgba(40,80,48,0.70) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 120px 24px 80px;
    color: #fff;
}
.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
}
.hero-headline {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.15;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}
.hero-trust-item svg { opacity: 0.8; }
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}
.hero-scroll span {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    display: block;
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Services --- */
.services { padding: 100px 0; background: #faf8f4; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}
.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,58,31,0.06);
    transition: all 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,58,31,0.12); }
.service-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.service-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,31,0.3), transparent);
}
.service-card-body { padding: 28px; }
.service-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1a3a1f;
}
.service-card-body > p {
    font-size: 0.92rem;
    color: #4a634c;
    margin-bottom: 16px;
    line-height: 1.7;
}
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #3d5a3f;
}
.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #5a8a5c;
    border-radius: 50%;
    flex-shrink: 0;
}
.services-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 20px;
}
.services-cta p {
    font-size: 1.1rem;
    color: #2c3e2d;
    margin-bottom: 20px;
    font-weight: 500;
}
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .services { padding: 70px 0; }
}

/* --- About --- */
.about { padding: 100px 0; background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-images { position: relative; }
.about-img-main {
    border-radius: 24px;
    height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.about-img-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,31,0.15), transparent 50%);
}
.about-img-float {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    border: 6px solid #fff;
    box-shadow: 0 8px 32px rgba(26,58,31,0.15);
    overflow: hidden;
}
.about-img-float-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,92,52,0.2), transparent);
}
.about-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,92,52,0.9);
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.about-content .section-title { margin-bottom: 24px; }
.about-text {
    font-size: 0.98rem;
    color: #4a634c;
    margin-bottom: 16px;
    line-height: 1.8;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}
.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a5c34;
}
.about-feature h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a1f;
    margin-bottom: 4px;
}
.about-feature p {
    font-size: 0.88rem;
    color: #5a7a5c;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img-main { height: 380px; }
    .about-img-float { width: 150px; height: 150px; bottom: -20px; right: -10px; }
    .about { padding: 70px 0; }
}

/* --- Gallery --- */
.gallery { padding: 100px 0; background: #f5f2ec; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 20px;
}
.gallery-item {
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(5) { grid-row: span 2; }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,31,0.7) 0%, rgba(26,58,31,0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}
.gallery-item:hover .gallery-item-content { opacity: 1; transform: translateY(0); }
.gallery-item-content span {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-row: span 1; }
    .gallery-item-overlay { opacity: 1; }
    .gallery-item-content { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}

/* --- Testimonials --- */
.testimonials { padding: 100px 0; background: #fff; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.testimonial-card {
    background: #faf8f4;
    border-radius: 20px;
    padding: 36px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(26,92,52,0.06);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,58,31,0.08); }
.testimonial-quote {
    font-family: 'Lora', serif;
    font-size: 4rem;
    line-height: 1;
    color: #c8e6c9;
    position: absolute;
    top: 20px;
    left: 28px;
    font-weight: 700;
}
.testimonial-text {
    font-size: 0.95rem;
    color: #3d5a3f;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d7a4a, #5a8a5c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a3a1f;
}
.testimonial-location {
    font-size: 0.82rem;
    color: #7a9a7c;
}
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .testimonials { padding: 70px 0; }
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/7195796/pexels-photo-7195796.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=600') center center / cover no-repeat;
}
.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,40,20,0.9) 0%, rgba(26,62,35,0.85) 100%);
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    color: #fff;
}
.cta-eyebrow { color: rgba(255,255,255,0.7); }
.cta-title { color: #fff; margin-bottom: 20px; }
.cta-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 560px) {
    .cta { padding: 70px 0; }
}

/* --- Contact --- */
.contact { padding: 100px 0; background: #faf8f4; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a5c34;
}
.contact-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3a1f;
    margin-bottom: 4px;
}
.contact-item p {
    font-size: 0.9rem;
    color: #4a634c;
    line-height: 1.7;
}
.contact-item a {
    color: #1a5c34;
    font-weight: 500;
    transition: color 0.2s;
}
.contact-item a:hover { color: #2d7a4a; text-decoration: underline; }
.contact-hours-note { font-size: 0.82rem; color: #7a9a7c; }
.contact-map { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(26,58,31,0.08); }
.contact-form-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(26,58,31,0.06);
    border: 1px solid rgba(26,92,52,0.06);
}
.contact-form-wrap h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #1a3a1f;
}
.contact-form-sub {
    font-size: 0.9rem;
    color: #5a7a5c;
    margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e2d;
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4e4d6;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #2c3e2d;
    background: #faf8f4;
    transition: all 0.25s ease;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2d7a4a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45,122,74,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0b8a4; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success-icon { color: #2d7a4a; margin-bottom: 16px; }
.form-success h4 {
    font-size: 1.4rem;
    color: #1a3a1f;
    margin-bottom: 8px;
}
.form-success p {
    font-size: 0.92rem;
    color: #4a634c;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact { padding: 70px 0; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px; }
}

/* --- Footer --- */
.footer {
    background: #142e1a;
    color: rgba(255,255,255,0.75);
    padding: 72px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 14px;
}
.footer-logo-icon { color: #5a8a5c; }
.footer-tagline { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}
.footer-links a:hover { color: #8fc99a; }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; line-height: 1.6; }
.footer-contact a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact a:hover { color: #8fc99a; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom a:hover { color: #8fc99a; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
