/* ============================================
   Joses Tailor Shop — Styles
   Palette: Terracotta + Sand + Neutral
   ============================================ */

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

:root {
    --terracotta: #B85446;
    --terracotta-dark: #9A4337;
    --terracotta-light: #D4756A;
    --sand: #F5F0EB;
    --sand-dark: #E8E0D5;
    --sand-light: #FAF7F3;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --neutral: #6B6B6B;
    --neutral-light: #9A9A9A;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(44, 44, 44, .08);
    --shadow-md: 0 4px 16px rgba(44, 44, 44, .1);
    --shadow-lg: 0 8px 32px rgba(44, 44, 44, .12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--sand-light);
    line-height: 1.6;
    font-size: 16px;
    -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 1.5rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .9375rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

.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: var(--shadow-md);
}

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

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

.btn-sm {
    padding: .5rem 1rem;
    font-size: .875rem;
}

.btn-full {
    width: 100%;
    padding: .875rem 1.5rem;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 243, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 84, 70, .1);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(250, 247, 243, .97);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--charcoal);
}

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

.logo-text {
    letter-spacing: -.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    gap: 1.75rem;
}

.main-nav a {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--charcoal-light);
    position: relative;
    transition: color var(--transition);
}

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

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

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

.main-nav .btn-primary {
    padding: .625rem 1.25rem;
}

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 44, 44, .72) 0%,
        rgba(44, 44, 44, .55) 50%,
        rgba(184, 84, 70, .35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 1.5rem 4rem;
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 1rem;
    padding: .375rem .875rem;
    background: rgba(184, 84, 70, .2);
    border: 1px solid rgba(184, 84, 70, .3);
    border-radius: 50px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

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

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, .6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

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

.section-eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--neutral);
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 6rem 0;
    background: var(--white);
}

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

.service-card {
    padding: 2rem;
    background: var(--sand-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--sand-dark);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 84, 70, .1);
    border-radius: var(--radius-sm);
    color: var(--terracotta);
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

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

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: .625rem;
    letter-spacing: -.01em;
}

.service-card p {
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--neutral);
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 6rem 0;
    background: var(--sand);
}

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

.about-image-wrap {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 60%;
    height: 40%;
    background: var(--terracotta);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: .15;
}

.about-content .section-eyebrow {
    margin-bottom: .75rem;
}

.about-content .section-title {
    margin-bottom: 1.25rem;
}

.about-content > p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--neutral);
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--sand-dark);
    border-bottom: 1px solid var(--sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--terracotta);
}

.stat-label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--neutral);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.about-content .btn {
    margin-top: .5rem;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    padding: 6rem 0;
    background: var(--white);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 5 / 4;
}

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

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

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

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

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 6rem 0;
    background: var(--sand);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-info .section-desc {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.contact-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--terracotta);
}

.contact-label svg {
    flex-shrink: 0;
}

.contact-item dd {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--charcoal-light);
    padding-left: 1.75rem;
}

.contact-item dd a {
    color: var(--charcoal-light);
    transition: color var(--transition);
}

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

/* Form */
.contact-form-wrap {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-dark);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: .5rem;
}

.form-desc {
    font-size: .9375rem;
    color: var(--neutral);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: .9375rem;
    padding: .75rem 1rem;
    border: 1.5px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    background: var(--sand-light);
    color: var(--charcoal);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(184, 84, 70, .1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-light);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: rgba(76, 175, 80, .08);
    border: 1px solid rgba(76, 175, 80, .2);
    border-radius: var(--radius-sm);
    color: #2e7d32;
    font-size: .9375rem;
    font-weight: 500;
    margin-top: 1rem;
}

.form-success svg {
    flex-shrink: 0;
    color: #4caf50;
}

/* ============================================
   Map CTA
   ============================================ */
.map-cta {
    padding: 5rem 0;
    background: var(--charcoal);
}

.map-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-cta-text .section-title {
    color: var(--white);
}

.map-cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, .7);
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

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

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.footer-links a {
    font-size: .9375rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: .9375rem;
    line-height: 1.65;
    margin-bottom: .375rem;
}

.footer-contact a {
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.5rem 0;
}

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

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--sand-light);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 1.25rem;
    }

    .main-nav a {
        font-size: 1.125rem;
    }

    .hero-content {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img {
        height: 360px;
    }

    .about-image-accent {
        display: none;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-cta-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-cta-image {
        order: -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}

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

.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }
.fade-up:nth-child(6) { transition-delay: .5s; }
