/* ============================================
   Hammer & the Last — Shoe Repair Website
   Palette: Charcoal (#1a1a2e) + Coral (#e07a5f)
   Fonts: Playfair Display + Inter
============================================ */

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

:root {
    --charcoal: #1a1a2e;
    --charcoal-light: #2a2a3e;
    --charcoal-mid: #16162a;
    --coral: #e07a5f;
    --coral-dark: #c4624a;
    --coral-light: #f0a08a;
    --cream: #f5f0eb;
    --cream-dark: #ebe5dd;
    --white: #ffffff;
    --text-light: #e8e4df;
    --text-muted: #9a9590;
    --text-dark: #1a1a2e;
    --gray-100: #f7f7f8;
    --gray-200: #ececf0;
    --gray-300: #d1d1db;
    --gray-600: #5a5a72;
    --gray-800: #2a2a3e;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.08);
    --shadow-md: 0 4px 20px rgba(26,26,46,0.10);
    --shadow-lg: 0 12px 40px rgba(26,26,46,0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: 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(--coral);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.logo-icon {
    color: var(--coral);
    flex-shrink: 0;
}

.logo-accent {
    color: var(--coral);
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle-line {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--charcoal);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 8px 24px 16px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility 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: 12px 16px;
        font-size: 1rem;
    }
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--charcoal);
    overflow: hidden;
    padding: 120px 0 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--coral) 0%, var(--coral-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 122, 95, 0.12);
    border: 1px solid rgba(224, 122, 95, 0.3);
    color: var(--coral-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 40px;
}

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

/* STATS BAR */
.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 48px;
}

.stats-grid {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    padding: 20px 28px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-stats { padding-top: 32px; }
    .stats-grid { flex-direction: column; gap: 0; }
    .stat-divider { width: 100%; height: 1px; }
    .stat-item { padding: 14px 20px; }
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border: 2px solid var(--coral);
}
.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224,122,95,0.3);
}

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

.btn-accent {
    background: var(--coral);
    color: var(--white);
    border: 2px solid var(--coral);
}
.btn-accent:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224,122,95,0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--gray-300);
}
.btn-ghost:hover {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   SECTION COMMON
============================================ */
.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title .accent {
    color: var(--coral);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
}

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

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

.service-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224,122,95,0.1);
    border-radius: var(--radius-sm);
    color: var(--coral);
    margin-bottom: 20px;
    transition: background var(--transition);
}

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

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
}

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

@media (max-width: 560px) {
    .services { padding: 72px 0; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 28px 22px; }
}

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

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

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

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

.about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.2;
}

.about-content { max-width: 480px; }

.about-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin: 28px 0 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

.value-check {
    color: var(--coral);
    flex-shrink: 0;
}

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

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper img { height: 300px; }
    .about-content { max-width: 100%; }
}

@media (max-width: 480px) {
    .about { padding: 72px 0; }
    .about-values { grid-template-columns: 1fr; }
}

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

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

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

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

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gallery { padding: 72px 0; }
    .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
    .gallery-item { aspect-ratio: 16/9; }
}

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
    padding: 80px 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-text { flex: 1; min-width: 260px; }

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-actions .btn-ghost {
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}
.cta-actions .btn-ghost:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--charcoal);
}

@media (max-width: 600px) {
    .cta-banner { padding: 60px 0; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}

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

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

.contact-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--coral);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.contact-detail a:hover {
    color: var(--coral);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
    .contact { padding: 72px 0; }
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--charcoal);
    color: var(--text-muted);
    padding: 56px 0 0;
}

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

.footer-brand .logo { margin-bottom: 16px; }

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 280px;
}

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

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

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer-contact span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   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);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html { scroll-behavior: auto; }
}
