/* ========================================
   C Simpson Used Book Shop — Styles
   Plum + Amber | Clean Minimalist
   ======================================== */

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

:root {
    --plum-950: #1a0a1e;
    --plum-900: #2d1033;
    --plum-800: #4a1550;
    --plum-700: #6b1d6e;
    --plum-600: #8a2490;
    --plum-500: #a832b0;
    --plum-400: #c45fd0;
    --plum-300: #db8ee6;
    --plum-200: #edc3f5;
    --plum-100: #f7e4fa;
    --plum-50: #fdf3fe;
    
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --stone-25: #fcfcfb;
    
    --white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--stone-800);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--plum-800);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--plum-900);
    letter-spacing: -0.01em;
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--stone-600);
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--plum-600);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--plum-700);
}

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

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--plum-700) !important;
    border: 1px solid var(--plum-300);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: all var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--plum-50) !important;
    border-color: var(--plum-500) !important;
}

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 72px 0 0;
    background: var(--white);
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--stone-900);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

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

.hero-desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: 2.5rem;
    max-width: 440px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--plum-800);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--plum-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(106, 29, 110, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--stone-700);
    border: 1px solid var(--stone-300);
}

.btn-outline:hover {
    border-color: var(--plum-400);
    color: var(--plum-700);
    background: var(--plum-50);
}

.btn-full {
    width: 100%;
}

/* --- Hero Image --- */
.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 70vh;
    max-height: 820px;
    object-fit: cover;
    border-radius: 4px;
}

.hero-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--plum-200);
    border-radius: 4px;
    z-index: -1;
}

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

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--stone-500);
}

/* --- Collection --- */
.collection {
    padding: 7rem 0;
    background: var(--stone-25);
}

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

.collection-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--stone-200);
    transition: all var(--transition);
}

.collection-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--plum-200);
}

.card-image {
    overflow: hidden;
    height: 240px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-body {
    padding: 1.75rem;
}

.card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--plum-900);
    margin-bottom: 0.625rem;
}

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

/* --- About --- */
.about {
    padding: 7rem 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--amber-200);
    border-radius: 4px;
    z-index: -1;
}

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

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--stone-600);
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-200);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--plum-800);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--stone-200);
}

/* --- Visit --- */
.visit {
    padding: 7rem 0;
    background: var(--plum-950);
    color: var(--white);
}

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

.visit .section-title {
    color: var(--white);
}

.visit .section-subtitle {
    color: var(--plum-300);
}

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

.visit-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2rem;
    transition: all var(--transition);
}

.visit-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.visit-icon {
    color: var(--amber-400);
    margin-bottom: 1.25rem;
}

.visit-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.visit-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--plum-200);
}

.visit-card a {
    color: var(--amber-300);
    transition: color var(--transition);
}

.visit-card a:hover {
    color: var(--amber-400);
}

.map-container {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-placeholder iframe {
    width: 100%;
    filter: saturate(0.3) brightness(0.8) contrast(1.1);
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
    background: var(--white);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-text .section-eyebrow {
    text-align: left;
}

.contact-text .section-title {
    text-align: left;
}

.contact-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--stone-500);
    margin-top: 1.25rem;
}

.contact-form-wrapper {
    max-width: 480px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--stone-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--stone-900);
    background: var(--stone-25);
    border: 1px solid var(--stone-200);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum-400);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(168, 50, 176, 0.08);
}

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

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

.form-group 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 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2378716c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--plum-50);
    border: 1px solid var(--plum-200);
    border-radius: 4px;
    color: var(--plum-800);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

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

/* --- Footer --- */
.footer {
    background: var(--stone-950);
    color: var(--stone-400);
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone-500);
    margin-bottom: 1.25rem;
}

.footer-address {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--stone-500);
}

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

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

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.footer-contact a {
    font-size: 0.875rem;
    color: var(--stone-400);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--stone-600);
}

/* --- Scroll Reveal --- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 3rem;
    }
    
    .about-inner {
        gap: 3rem;
    }
    
    .contact-inner {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--stone-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding-top: 72px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-image img {
        height: 50vh;
        max-height: 480px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        text-align: center;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-content,
    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-text .section-eyebrow,
    .contact-text .section-title {
        text-align: center;
    }
    
    .contact-desc {
        text-align: center;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .nav-inner {
        padding: 0 1.25rem;
    }
    
    .hero-inner {
        padding: 2rem 1.25rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .collection,
    .about,
    .visit,
    .contact {
        padding: 4rem 0;
    }
}
