/* ============================================
   Gerry Bryan's Custom Dressmaking & Alterations
   Burgundy + Blush · Warm & Friendly
   ============================================ */

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

:root {
    --burgundy: #8B2332;
    --burgundy-dark: #6D1A27;
    --burgundy-light: #A83245;
    --blush: #F5E6E0;
    --blush-light: #FBF4F1;
    --blush-dark: #E8D0C8;
    --cream: #FDF8F6;
    --warm-white: #FFF9F7;
    --text-dark: #2D1F1F;
    --text-body: #4A3535;
    --text-muted: #7A5F5F;
    --text-light: #9A7F7F;
    --shadow-sm: 0 2px 8px rgba(139, 35, 50, 0.06);
    --shadow-md: 0 4px 20px rgba(139, 35, 50, 0.08);
    --shadow-lg: 0 8px 40px rgba(139, 35, 50, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--burgundy-light); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.3; }

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }

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

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

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

.btn-full { width: 100%; }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---------- SECTION HEADERS ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    background: var(--blush);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .section-desc { margin: 0 auto; }

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 35, 50, 0.08);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--burgundy);
}
.logo:hover { color: var(--burgundy-dark); }

.logo-icon { color: var(--burgundy); }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-body);
    transition: all var(--transition);
}
.main-nav a:hover {
    color: var(--burgundy);
    background: var(--blush);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--blush); }

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: all var(--transition);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.hamburger { top: 50%; margin-top: -2px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; bottom: -7px; }

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/7285973/pexels-photo-7285973.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(109, 26, 39, 0.92) 0%,
        rgba(139, 35, 50, 0.85) 50%,
        rgba(168, 50, 69, 0.80) 100%
    );
}

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

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    opacity: 0.85;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

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

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all var(--transition);
    border: 1px solid rgba(139, 35, 50, 0.06);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--blush-light);
}

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

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 24px; }
.about-body {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--blush-dark);
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.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::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(109, 26, 39, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item:nth-child(1) img { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) img { aspect-ratio: 1; }
.gallery-item:nth-child(3) img { aspect-ratio: 4/5; }
.gallery-item:nth-child(4) img { aspect-ratio: 1; }
.gallery-item:nth-child(5) img { aspect-ratio: 4/5; }
.gallery-item:nth-child(6) img { aspect-ratio: 1; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 100px 0;
    background: var(--burgundy);
}
.testimonials .section-tag { background: rgba(255,255,255,0.15); color: var(--blush); }
.testimonials .section-title { color: white; }
.testimonials .section-desc { color: rgba(255,255,255,0.7); }

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

.testimonial-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.testimonial-quote {
    color: var(--blush);
    opacity: 0.4;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--blush);
    font-weight: 600;
}

/* ---------- CTA ---------- */
.cta {
    padding: 100px 0;
    background: var(--blush-light);
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-inner .section-tag { margin-bottom: 20px; }
.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 20px;
}
.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

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

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details { list-style: none; margin-bottom: 32px; }
.contact-item { margin-bottom: 24px; }
.contact-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.contact-label svg { color: var(--burgundy); flex-shrink: 0; }
.contact-item dd {
    padding-left: 28px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}
.contact-item dd a { color: var(--burgundy); font-weight: 600; }
.contact-item dd a:hover { color: var(--burgundy-dark); }

.map-wrap { border-radius: var(--radius-md); overflow: hidden; }
.map-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.map-link img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-link:hover img { transform: scale(1.03); }
.map-link:hover .map-overlay { opacity: 1; }

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(109, 26, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-md);
}
.map-overlay span {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: var(--radius-full);
}

/* Contact Form */
.contact-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139, 35, 50, 0.06);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.form-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--blush-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--warm-white);
    transition: all var(--transition);
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 35, 50, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success h4 {
    font-size: 1.4rem;
    color: var(--burgundy);
    margin: 16px 0 8px;
}
.form-success p { color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

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

.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand .logo-icon { color: white; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; max-width: 300px; }

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.footer-contact a { color: var(--blush); }
.footer-contact a:hover { color: white; }

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

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid rgba(139, 35, 50, 0.08);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    .main-nav a {
        display: block;
        padding: 14px 20px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }
    .main-nav .btn { margin-top: 12px; text-align: center; }
}

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

    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }

    .about-image-wrap { max-height: 400px; }
    .about-image-wrap img { object-fit: cover; }

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

@media (max-width: 600px) {
    .services-grid,
    .testimonials-grid,
    .gallery-grid { grid-template-columns: 1fr; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; }

    .contact-form-wrap { padding: 32px 24px; }

    .about-stats { gap: 24px; flex-wrap: wrap; }

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

    .section-header { margin-bottom: 40px; }
    .services, .about, .gallery, .testimonials, .cta, .contact { padding: 72px 0; }
}
