/* ============================================
   BIG-O THE BARBER — DESOTO, TX
   Bold Editorial | Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #781F2E;
    --burgundy-dark: #5A1520;
    --burgundy-deep: #3D0E17;
    --blush: #F5E6E0;
    --blush-light: #FBF4F1;
    --blush-mid: #F0D5CC;
    --cream: #FFF9F7;
    --charcoal: #1A1A1A;
    --dark: #2C2C2C;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --white: #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

ul {
    list-style: none;
}

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

/* --- SKIP LINK --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 4px;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 16px;
}

/* --- TYPOGRAPHY --- */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}
.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(120, 31, 46, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--burgundy);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 0.8rem;
}
.btn-nav:hover {
    background: var(--burgundy-dark);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.9rem;
}

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

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 31, 46, 0.08);
    transition: all 0.4s var(--ease-smooth);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
    border-radius: 4px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s var(--ease-out);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s var(--ease-out);
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.03em;
    transition: color 0.3s;
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width 0.3s var(--ease-out);
}
.nav-list a:hover {
    color: var(--burgundy);
}
.nav-list a:hover::after {
    width: 100%;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--burgundy-deep);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 14, 23, 0.92) 0%,
        rgba(120, 31, 46, 0.85) 50%,
        rgba(90, 21, 32, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 0 100px;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 28px;
}

.hero-title .accent {
    color: var(--blush);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-indicator svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

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

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

.intro-text {
    padding-top: 20px;
}

.intro-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray);
    margin-top: 24px;
}

.intro-pillars {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pillar {
    padding-left: 32px;
    border-left: 2px solid var(--blush-mid);
    transition: border-color 0.3s;
}
.pillar:hover {
    border-left-color: var(--burgundy);
}

.pillar-number {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.pillar h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.pillar p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
}

/* --- SERVICES --- */
.services {
    padding: 120px 0;
    background: var(--blush-light);
}

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

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

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 32px;
    transition: all 0.4s var(--ease-out);
    border: 1px solid rgba(120, 31, 46, 0.06);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(120, 31, 46, 0.1);
    border-color: rgba(120, 31, 46, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 24px;
    transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: var(--burgundy);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--gray);
}

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

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

.about-image {
    position: relative;
}

.image-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--burgundy);
    padding: 20px 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.accent-line {
    width: 40px;
    height: 3px;
    background: var(--blush);
    border-radius: 2px;
}

.accent-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    font-style: italic;
}

.about-content {
    padding: 20px 0;
}

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

.about-signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--blush-mid);
    display: flex;
    align-items: center;
    gap: 24px;
}

.signature {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--burgundy);
}

.signature-title {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-light);
}

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

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

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 500px;
}
.gallery-item {
    min-height: 240px;
}

/* --- CTA BANNER --- */
.cta-banner {
    position: relative;
    padding: 100px 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(
        to right,
        rgba(61, 14, 23, 0.94) 0%,
        rgba(120, 31, 46, 0.88) 60%,
        rgba(90, 21, 32, 0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.cta-quote {
    max-width: 700px;
}

.cta-quote svg {
    color: var(--blush);
    opacity: 0.5;
    margin-bottom: 24px;
}

.cta-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
}

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

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

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

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

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

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

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    padding-top: 4px;
}

.contact-link {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
    transition: color 0.3s;
}
.contact-link:hover {
    color: var(--burgundy);
}

/* Contact form */
.contact-form-wrap {
    background: var(--white);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(120, 31, 46, 0.06);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--blush-light);
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s;
    outline: none;
}
.form-input::placeholder {
    color: var(--gray-light);
}
.form-input:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(120, 31, 46, 0.08);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-success {
    margin-top: 24px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #166534;
    font-size: 0.95rem;
}
.form-success svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .logo-mark {
    border-color: var(--blush);
    color: var(--blush);
}
.footer-logo .logo-text {
    color: var(--white);
}

.footer-tagline {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 28px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL REVEAL — progressive enhancement
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .intro-grid,
    .about-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 249, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid rgba(120, 31, 46, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.4s var(--ease-out);
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    .nav-list a {
        font-size: 1.1rem;
    }
    .btn-nav {
        display: inline-flex;
        margin-top: 8px;
    }
    
    .hero-content {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }
    
    .intro-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .intro-text {
        order: 2;
    }
    .intro-pillars {
        order: 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-accent {
        right: 0;
        bottom: -16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item.large {
        grid-column: span 2;
        min-height: 300px;
    }
    .gallery-item {
        min-height: 180px;
    }
    
    .cta-banner {
        padding: 80px 0;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 1;
    }
    
    .contact-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-actions .btn {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.large {
        grid-column: span 1;
    }
}
