/* ========================================
   Well Groomed Barber Shop — Stylesheet
   Palette: Terracotta + Sand
   ======================================== */

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

:root {
    --terracotta: #C27C57;
    --terracotta-dark: #A8623F;
    --terracotta-light: #D4976F;
    --sand: #F5E6D3;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5C0;
    --cream: #FDF8F3;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --warm-gray: #8A7B72;
    --warm-gray-light: #B5A89F;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 36, 32, 0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 124, 87, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ---------- Section Headers ---------- */
.section-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
}

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

.section-desc {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 520px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(194, 124, 87, 0.1);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--charcoal);
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-light);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 22px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 124, 87, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(44, 36, 32, 0.3) 0%,
        rgba(44, 36, 32, 0.5) 50%,
        rgba(44, 36, 32, 0.85) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(194, 124, 87, 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-headline .accent {
    color: var(--terracotta-light);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 230, 211, 0.8);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-info {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(245, 230, 211, 0.7);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(245, 230, 211, 0.5);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid rgba(194, 124, 87, 0.08);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(194, 124, 87, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--terracotta);
    transition: all var(--transition);
}

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

.service-name {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--sand-light);
}

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

.about-image {
    position: relative;
}

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

.about-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--terracotta);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

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

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

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

.about-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 40px 0;
    padding: 28px 0;
    border-top: 1px solid var(--sand-dark);
    border-bottom: 1px solid var(--sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-dark);
}

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

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: auto;
}

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

.gallery-item:nth-child(1) img { height: 375px; }
.gallery-item:nth-child(2) img { height: 300px; }
.gallery-item:nth-child(3) img { height: 300px; }
.gallery-item:nth-child(4) img { height: 375px; }
.gallery-item:nth-child(5) img { height: 375px; }
.gallery-item:nth-child(6) img { height: 300px; }

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

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 36, 32, 0.88) 0%, rgba(168, 98, 63, 0.82) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--sand-dark);
}

.cta-title {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(245, 230, 211, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: var(--sand-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

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

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

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-gray);
}

.contact-value {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-link {
    font-size: 1rem;
    color: var(--terracotta);
    font-weight: 500;
}

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

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(194, 124, 87, 0.08);
}

.form-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
}

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

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--sand-light);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(194, 124, 87, 0.1);
}

.form-input::placeholder {
    color: var(--warm-gray-light);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal);
    color: rgba(245, 230, 211, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

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

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sand-dark);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 230, 211, 0.6);
}

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

.footer-links p {
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 230, 211, 0.4);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Mobile Menu ---------- */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-cta {
        font-size: 1rem;
        padding: 14px 28px;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(44, 36, 32, 0.5);
        z-index: 999;
    }

    .mobile-overlay.show {
        display: block;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-img-wrapper img {
        height: 350px;
    }

    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }

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

    .about-content .btn {
        display: inline-flex;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img,
    .gallery-item:nth-child(5) img {
        height: 250px;
    }

    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(6) img {
        height: 200px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-info {
        flex-direction: column;
        gap: 12px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px !important;
    }
}
