/* ============================================
   JASBEL Artesanias Mexicanas — Styles
   Palette: Plum (#5B2C6F) + Amber (#D97706)
   ============================================ */

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

:root {
    --plum-50:  #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #5B2C6F;
    --plum-900: #3b0a4a;
    --plum-950: #1a0224;

    --amber-50:  #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59E0B;
    --amber-600: #D97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--stone-800);
    background: var(--stone-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--plum-800);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--stone-600);
    max-width: 520px;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 36px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--plum-800);
    color: #fff;
    border-color: var(--plum-800);
}

.btn--primary:hover {
    background: var(--plum-700);
    border-color: var(--plum-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--plum-800);
    border-color: var(--plum-800);
}

.btn--outline:hover {
    background: var(--plum-800);
    color: #fff;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--plum-800);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--plum-800);
    border-radius: 2px;
}

.nav-logo-text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone-700);
}

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

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-600);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-600);
    transition: width 0.4s var(--ease-out);
}

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

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

.nav-link--cta {
    color: var(--amber-600);
}

.nav-link--cta:hover {
    color: var(--amber-700);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone-700);
    padding: 8px;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--plum-800);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--amber-600);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    background: var(--plum-950);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--plum-400) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--amber-400) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--plum-600) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--amber-400);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.9;
    max-width: 560px;
    margin: 0 auto 48px;
    font-weight: 300;
}

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

.hero .btn--primary {
    background: var(--amber-600);
    border-color: var(--amber-600);
    color: var(--stone-900);
}

.hero .btn--primary:hover {
    background: var(--amber-500);
    border-color: var(--amber-500);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
}

.hero .btn--outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero .btn--outline:hover {
    background: #fff;
    color: var(--plum-950);
    border-color: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- Section Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: var(--stone-300);
}

/* ---------- Sections ---------- */
.section {
    padding: 120px 0;
}

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

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

/* ---------- Collection ---------- */
.collection {
    background: var(--stone-50);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.collection-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--stone-200);
    transition: all 0.5s var(--ease-out);
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.1);
    border-color: var(--plum-200);
}

.collection-card-img {
    overflow: hidden;
    aspect-ratio: 6/7;
}

.collection-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.collection-card:hover .collection-card-img img {
    transform: scale(1.05);
}

.collection-card-body {
    padding: 32px;
}

.collection-card-body h3 {
    font-size: 1.5rem;
    color: var(--plum-800);
    margin-bottom: 10px;
}

.collection-card-body p {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    background: var(--plum-800);
    color: #fff;
}

.about .section-eyebrow {
    color: var(--amber-400);
}

.about .section-title {
    color: #fff;
}

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

.about-image {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 7/9;
}

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

.about-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.value-item {}

.value-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--amber-400);
    line-height: 1;
    margin-bottom: 12px;
}

.value-item h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* ---------- Visit ---------- */
.visit {
    background: var(--stone-100);
}

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

.visit-info {}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 48px 0;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-detail svg {
    color: var(--amber-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 6px;
}

.visit-detail p,
.visit-detail a {
    font-size: 1rem;
    color: var(--plum-800);
    line-height: 1.7;
}

.visit-detail a:hover {
    color: var(--amber-600);
}

.visit-hours {
    padding-top: 32px;
    border-top: 1px solid var(--stone-300);
}

.visit-hours h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 12px;
}

.visit-hours p {
    font-size: 0.95rem;
    color: var(--stone-600);
    line-height: 1.8;
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--stone-200);
}

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

/* ---------- Contact ---------- */
.contact {
    background: var(--stone-50);
}

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

.contact-text {
    font-size: 1rem;
    color: var(--stone-500);
    line-height: 1.9;
    margin-bottom: 40px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--plum-800);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--amber-600);
}

.contact-link svg {
    color: var(--amber-600);
}

/* ---------- Form ---------- */
.contact-form-wrap {
    background: #fff;
    padding: 48px;
    border-radius: 4px;
    border: 1px solid var(--stone-200);
}

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

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-500);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--stone-800);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--stone-300);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-input::placeholder {
    color: var(--stone-400);
}

.form-input:focus {
    border-color: var(--plum-800);
}

.form-textarea {
    min-height: 120px;
    line-height: 1.7;
}

.form-success {
    display: none;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--plum-50);
    color: var(--plum-800);
    font-size: 0.9rem;
    border-radius: 2px;
    border-left: 3px solid var(--amber-600);
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--stone-900);
    color: rgba(255, 255, 255, 0.5);
    padding: 64px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

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

.footer-brand .nav-logo-mark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-name {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

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

.footer-copy {
    font-size: 0.8rem;
    line-height: 1.8;
}

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

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

/* Default state: visible (progressive enhancement) */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .collection-grid {
        gap: 24px;
    }
    
    .about-layout,
    .visit-layout,
    .contact-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-inner {
        height: 70px;
    }
    
    .hero {
        padding: 100px 24px 80px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout,
    .visit-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-values {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .hero-scroll {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .collection-card-body {
        padding: 24px;
    }
}
