/* Globals & Variables */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600&family=Karla:wght@300;400;500;600&family=Caveat:wght@400;600&display=swap');

:root {
  --primary: #7A6A5B;
  --primary-dark: #5A4D40;
  --secondary: #B87333;
  --secondary-hover: #9A5F28;
  --accent: #E8E0D4;
  --bg: #FDFBF8;
  --bg-alt: #F4F0EA;
  --text-primary: #2B2320;
  --text-secondary: #7D7068;
  --white: #FFFFFF;
  --black: #1A1614;

  --font-heading: 'Cormorant', serif;
  --font-body: 'Karla', sans-serif;
  --font-accent: 'Caveat', cursive;

  --nav-height: 70px;
}

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
    font-weight: 600;
}
.skip-to-content:focus {
    top: 0;
}
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 { font-size: 52px; font-weight: 600; }
h2 { font-size: 36px; font-weight: 500; }
h3 { font-size: 22px; font-weight: 500; }
p { font-size: 16px; margin-bottom: 24px; color: var(--text-secondary); }
p.small { font-size: 14px; font-weight: 300; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

.handwritten {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 24px;
    color: var(--secondary);
    display: block;
    margin-bottom: 10px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-linen { color: var(--accent); }

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}
section { padding: 90px 0; }
.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--primary-dark); }
.bg-warm { background-color: var(--bg); }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 28px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--secondary-hover); }

.btn-secondary {
    background-color: var(--text-primary);
    color: var(--white);
}
.btn-secondary:hover { background-color: var(--primary-dark); }

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

.btn-ghost {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-ghost:hover { background-color: var(--accent); color: var(--text-primary); }

.add-to-cart, .book-spot { position: relative; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: none;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}
.logo-sub {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 4px;
}
.logo-line {
    width: 100%;
    height: 1px;
    background-color: var(--primary);
    margin-top: 5px;
    opacity: 0.5;
}

.nav-links {
    display: flex;
    gap: 35px;
}
.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--accent);
    padding: 70px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 25px;
}
.footer p, .footer a { color: var(--accent); opacity: 0.85; margin-bottom: 15px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 12px; }
.footer a:hover { color: var(--secondary); opacity: 1; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(232,224,212,0.1);
    padding-top: 25px;
}
.footer-bottom p { margin-bottom: 0; font-size: 13px; opacity: 0.6; }

.social-icons-wrap { display: flex; gap: 15px; margin-top: 25px; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(232,224,212,0.2);
    color: var(--accent);
    transition: 0.3s;
}
.social-icon:hover { border-color: var(--secondary); color: var(--secondary); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    font-family: var(--font-body);
    color: var(--text-primary);
    border-radius: 2px 0 0 2px;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    transition: 0.3s;
}
.newsletter-form button:hover { background-color: var(--secondary-hover); }

/* Hero Sections */
main { padding-top: var(--nav-height); }
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-top: calc(var(--nav-height) * -1);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(43,35,32,0.3);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
    margin-top: var(--nav-height);
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { color: var(--accent); font-size: 18px; font-weight: 300; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Page Specific Heros */
.hero-home { height: 85vh; background-image: url('https://images.unsplash.com/photo-1458945037814-389ec6994cbd?w=1600&h=900&fit=crop'); }
.hero-shop { height: 40vh; background-image: url('https://images.unsplash.com/photo-1662717400948-990d71f9e3a8?w=1600&h=600&fit=crop'); }
.hero-workshops { height: 45vh; background-image: url('https://images.unsplash.com/photo-1607019327082-6c7899d8a66d?w=1600&h=600&fit=crop'); }
.hero-about { height: 50vh; background-image: url('https://images.unsplash.com/photo-1601135183537-10c09f98902a?w=1600&h=600&fit=crop'); }
.hero-contact { height: 45vh; background-image: url('https://images.unsplash.com/photo-1662717400948-990d71f9e3a8?w=1600&h=600&fit=crop'); }

/* Home: Artist Statement */
.artist-statement {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Product Cards */
.product-card {
    text-align: center;
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}
.product-card.fade-out { opacity: 0; transform: translateY(10px); }
.product-card.fade-in { opacity: 1; transform: translateY(0); }
.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--bg);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-hover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(43,35,32,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-hover-overlay { opacity: 1; }
.product-info { padding: 25px 20px; }
.product-tag { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.product-title { font-family: var(--font-heading); font-size: 20px; font-weight: 500; margin-bottom: 5px; color: var(--text-primary); }
.product-price { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--text-primary); }

/* Home: Workshop Preview */
.workshop-preview { align-items: center; }
.workshop-preview img { border-radius: 2px; object-fit: cover; aspect-ratio: 4/3; }

/* Home: Instagram Grid */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.ig-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(20%); transition: filter 0.3s; }
.ig-grid img:hover { filter: grayscale(0%); }

/* Shop: Filters */
.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}
.filter-btn:hover { background: var(--bg-alt); }
.filter-btn.active { background: var(--secondary); border-color: var(--secondary); color: var(--white); }

/* Workshops */
.workshop-card {
    display: flex;
    background: var(--white);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--bg-alt);
}
.workshop-img { width: 40%; aspect-ratio: 4/3; object-fit: cover; }
.workshop-details { width: 60%; padding: 40px; }
.badge { display: inline-block; padding: 4px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; border-radius: 2px; margin-bottom: 15px; }
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-blue { background: #E3F2FD; color: #1565C0; }
.badge-gray { background: var(--bg-alt); color: var(--text-secondary); }
.workshop-meta { font-family: var(--font-body); font-weight: 600; color: var(--secondary); margin-bottom: 15px; font-size: 15px; }
.workshop-desc { margin-bottom: 20px; }
.workshop-includes { font-size: 14px; font-style: italic; background: var(--bg); padding: 15px; border-left: 3px solid var(--primary); margin-bottom: 25px; }

/* About */
.about-split { align-items: center; }
.about-split img { border-radius: 2px; object-fit: cover; aspect-ratio: 3/4; }
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.process-step .step-num { width: 40px; height: 40px; background: var(--secondary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; margin: 0 auto 20px; }
.process-step img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; margin-bottom: 20px; }
.press-quotes { max-width: 800px; margin: 0 auto; }
.quote-block { text-align: center; margin-bottom: 60px; }
.quote-block blockquote { font-family: var(--font-heading); font-size: 24px; font-style: italic; color: var(--text-primary); margin-bottom: 15px; }
.quote-block cite { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; font-style: normal; }

/* Contact */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-list { list-style: none; margin-bottom: 30px; }
.contact-info-list li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.contact-info-list strong { min-width: 100px; display: inline-block; font-weight: 600; }
.map-embed { width: 100%; height: 400px; border: 0; border-radius: 2px; background: #eee; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text-primary); }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #D5CFC9; border-radius: 2px; font-family: var(--font-body); font-size: 15px; background: var(--white); color: var(--text-primary); transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(184,115,51,0.1); }
.form-control.invalid { border-color: #D32F2F !important; background-color: #FFEBEE !important; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full { grid-column: 1 / -1; }

.contact-form-wrap { max-width: 600px; margin: 0 auto; background: var(--white); padding: 50px; border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }

/* Custom Order form */
.custom-order { max-width: 800px; margin: 0 auto; }

/* Action Tooltip */
.action-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-primary);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}
.action-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}
.action-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    :root { --nav-height: 70px; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-home { height: 70vh; }
    .ig-grid { grid-template-columns: repeat(3, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1 { font-size: 42px; }
    h2 { font-size: 28px; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .workshop-card { flex-direction: column; }
    .workshop-img { width: 100%; aspect-ratio: 16/9; }
    .workshop-details { width: 100%; padding: 30px; }
    .contact-split { grid-template-columns: 1fr; }
    .about-split img { aspect-ratio: 16/9; margin-bottom: 30px; }
}

@media (max-width: 480px) {
    :root { --nav-height: 55px; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 18px; margin-bottom: 20px; }
    .hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .social-icons-wrap { justify-content: center; }
    .ig-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: 1fr; }
    .product-hover-overlay { opacity: 1; background: transparent; align-items: flex-end; padding-bottom: 10px; } /* Always show button on mobile */
    .hero-home { height: 70vh; }
    .form-grid { grid-template-columns: 1fr; }
}
