/* ========================================
   Fidel's Whitehouse Hair Studio
   Fresh & Airy Design System
   ======================================== */

/* CSS Custom Properties */
:root {
    --terracotta: #c47a5a;
    --terracotta-dark: #a86245;
    --terracotta-light: #e8a88a;
    --sand: #f5ebe0;
    --sand-light: #faf6f1;
    --sand-dark: #e8d5c4;
    --cream: #fdfcfa;
    --charcoal: #2c2c2c;
    --warm-gray: #6b6560;
    --light-gray: #a89f9a;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(196, 122, 90, 0.08);
    --shadow-md: 0 8px 30px rgba(196, 122, 90, 0.12);
    --shadow-lg: 0 20px 60px rgba(196, 122, 90, 0.15);
    --shadow-float: 0 25px 80px rgba(196, 122, 90, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 122, 90, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

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

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

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

.nav-links a:hover {
    color: var(--terracotta);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--terracotta);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

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

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--cream) 50%, var(--sand) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--terracotta-light), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--sand-dark), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 122, 90, 0.3), transparent 70%);
    top: 50%;
    left: 40%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 122, 90, 0.1);
    border: 1px solid rgba(196, 122, 90, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--terracotta);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--charcoal);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.accent-text {
    color: var(--terracotta);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
    color: var(--white);
    box-shadow: 0 8px 30px rgba(196, 122, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(196, 122, 90, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid var(--sand-dark);
}

.btn-secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Floating Stat Cards */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-float);
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1s; }
.card-3 { animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sand), var(--sand-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    flex-shrink: 0;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1.2;
}

.card-label {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--light-gray);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--terracotta), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--warm-gray);
}

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

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

.service-card {
    background: var(--cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(196, 122, 90, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay svg {
    color: var(--white);
    transform: scale(0.5);
    transition: var(--transition);
}

.service-card:hover .service-overlay svg {
    transform: scale(1);
}

.service-content {
    padding: 32px;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--terracotta);
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: var(--transition);
}

.service-link:hover::after {
    width: 100%;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--cream) 100%);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    max-width: 480px;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.about-content .btn {
    margin-top: 8px;
}

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 44, 44, 0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%);
}

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

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-gray);
}

.contact-text span,
.contact-text a {
    font-size: 1rem;
    color: var(--charcoal);
}

.contact-text a:hover {
    color: var(--terracotta);
}

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

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--sand-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(196, 122, 90, 0.1);
}

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

.form-note {
    text-align: center;
    margin-top: 16px;
}

.form-note p {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Success Message */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--warm-gray);
    margin-bottom: 24px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal);
    color: var(--sand);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.8;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--light-gray);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-cards {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 18px 22px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-number {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(6) {
        order: -1;
    }
}

/* ========================================
   Utility & Animation Classes
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
