/* ===================================
   Dennis' Beauty Shoppe - Styles
   =================================== */

/* --- CSS Variables --- */
:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #3D3D3D;
    --coral: #F47B7B;
    --coral-light: #FF9E9E;
    --coral-pale: #FFF0F0;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #FDF8F8;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-400: #BBBBBB;
    --gray-600: #777777;
    --gray-800: #333333;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 20px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 44, 44, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--gray-600);
}

/* --- Tagline --- */
.tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--charcoal);
}

.logo .dot {
    color: var(--coral);
    font-size: 2rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--charcoal);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--coral);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--coral-pale) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 123, 123, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-content .tagline {
    margin-bottom: 16px;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 400;
}

.trust-indicators span:not(:last-child)::after {
    content: '•';
    color: var(--coral);
    margin-left: 12px;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/750;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.floating-card p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 600;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--coral-pale);
    background: var(--white);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--coral-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    transition: all var(--transition);
}

.service-card:hover .icon {
    background: var(--coral);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 500/600;
}

.about-content .tagline {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
}

.about-features {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 400;
}

.about-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 400/500;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .tagline {
    color: var(--coral-light);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(244, 123, 123, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-light);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.contact-item a {
    color: var(--white);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--coral-light);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--charcoal);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(244, 123, 123, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px;
    background: var(--coral-pale);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.form-success p {
    color: var(--charcoal);
    font-weight: 700;
}

/* --- Map Section --- */
.map-section {
    background: var(--gray-100);
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--coral-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* --- Scroll Reveal Animations --- */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.hidden,
    .reveal-left.hidden,
    .reveal-right.hidden {
        opacity: 0;
    }
    
    .reveal-up.hidden {
        transform: translateY(30px);
    }
    
    .reveal-left.hidden {
        transform: translateX(-30px);
    }
    
    .reveal-right.hidden {
        transform: translateX(30px);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .floating-card {
        left: 0;
        bottom: 20px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-contact {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
