/* ============================================
   Sharon's Christmas Barber Shop - Styles
   ============================================ */

:root {
    --color-terracotta: #C4623A;
    --color-terracotta-dark: #A84E2C;
    --color-terracotta-light: #D4846A;
    --color-sand: #E8D5C4;
    --color-sand-light: #F5EDE4;
    --color-sand-dark: #C4A882;
    --color-cream: #FBF8F5;
    --color-charcoal: #2A2522;
    --color-dark: #1A1614;
    --color-text: #3D3530;
    --color-text-light: #6B5E56;
    --color-white: #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 8px rgba(42, 37, 34, 0.08);
    --shadow-md: 0 4px 20px rgba(42, 37, 34, 0.12);
    --shadow-lg: 0 8px 40px rgba(42, 37, 34, 0.16);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(251, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-sand);
    transition: box-shadow 0.3s ease;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.logo span {
    color: var(--color-terracotta);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-text);
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.btn-nav {
    padding: 0.625rem 1.25rem;
    background-color: var(--color-terracotta);
    color: var(--color-white) !important;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--color-terracotta-dark);
    transform: translateY(-1px);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all 0.3s ease;
}

.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);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    padding-top: calc(80px + var(--space-2xl));
    padding-bottom: var(--space-3xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, var(--color-sand) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

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

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--color-terracotta);
    color: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hero-badge span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.hero-badge strong {
    font-family: var(--font-serif);
    font-size: 1.125rem;
}

/* ============================================
   About
   ============================================ */

.about {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-features {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--color-charcoal);
}

.about-features svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* ============================================
   Services
   ============================================ */

.services {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-top: var(--space-xs);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-sand);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-terracotta-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-sand-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--color-terracotta);
    transition: all 0.3s ease;
}

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

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   Gallery
   ============================================ */

.gallery {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ============================================
   Contact
   ============================================ */

.contact {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-cream) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-item svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: var(--color-charcoal);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

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

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-sand);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background-color: var(--color-cream);
    transition: all 0.3s ease;
    outline: none;
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    text-align: center;
    color: var(--color-terracotta);
}

.form-success svg {
    color: var(--color-terracotta);
}

.form-success p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-sand);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(232, 213, 196, 0.15);
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-brand span {
    color: var(--color-terracotta-light);
}

.footer-brand p {
    color: var(--color-sand-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-sand);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-contact a {
    color: var(--color-sand);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-sand-dark);
    font-size: 0.8125rem;
}

/* ============================================
   Animations (Progressive Enhancement)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        gap: var(--space-2xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.125rem;
    }
    
    .hero {
        padding-top: calc(80px + var(--space-xl));
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-sub {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 350px;
    }
    
    .hero-badge {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image img {
        height: 350px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 22, 20, 0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
