/* ============================================================
   LES DARLOW FINE ART — Design System
   Mobile-First · Pastel Artistry Palette
   Inspired by the landscapes, skies and soul of Les's paintings
   ============================================================ */

/* --- Custom Properties — The Palette --- */
:root {
    /* Primary palette — extracted from Les's pastel landscapes */
    --sky-wash: #E8EDF5;
    --golden-light: #D4A854;
    --burnt-sienna: #A0522D;
    --lavender-cloud: #B8A9C9;
    --sage-green: #8CA878;
    --warm-cream: #FAF6F0;
    --deep-umber: #3D2B1F;
    --ocean-blue: #6B8FA3;
    --sunset-peach: #E8B898;
    --snow-white: #FEFEFE;

    /* Functional colours */
    --bg-primary: var(--warm-cream);
    --bg-secondary: var(--sky-wash);
    --bg-card: var(--snow-white);
    --text-primary: var(--deep-umber);
    --text-secondary: #6B5D52;
    --text-light: #9A8E84;
    --text-on-dark: var(--warm-cream);
    --accent: var(--golden-light);
    --accent-hover: #C49840;
    --link: var(--ocean-blue);
    --link-hover: #587A8C;
    --border: #E5DDD5;
    --border-light: #F0EBE5;
    --shadow-soft: 0 2px 20px rgba(61, 43, 31, 0.06);
    --shadow-card: 0 4px 30px rgba(61, 43, 31, 0.08);
    --shadow-elevated: 0 8px 40px rgba(61, 43, 31, 0.12);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 860px;
    --header-height: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);
}

/* --- Custom Scrollbars --- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 168, 84, 0.25) transparent;
}

*:hover {
    scrollbar-color: rgba(212, 168, 84, 0.4) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 84, 0.2);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 84, 0.45);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Dark-surface scrollbars (sidebar, footer) */
.site-sidebar::-webkit-scrollbar-thumb,
.site-footer::-webkit-scrollbar-thumb {
    background: rgba(250, 246, 240, 0.12);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.site-sidebar::-webkit-scrollbar-thumb:hover,
.site-footer::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 246, 240, 0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.site-sidebar,
.site-footer {
    scrollbar-color: rgba(250, 246, 240, 0.12) transparent;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--link-hover); }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: var(--space-md); }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(250, 246, 240, 0.98);
    box-shadow: var(--shadow-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    height: var(--header-height);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-logo span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-light);
    font-weight: 400;
    font-family: var(--font-body);
    text-transform: uppercase;
    margin-top: -2px;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--bg-primary);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    overflow-y: auto;
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(61, 43, 31, 0.1);
    z-index: 999;
}

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

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 43, 31, 0.3);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.nav-overlay.active { display: block; }

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav > ul > li {
    border-bottom: 1px solid var(--border-light);
}

.main-nav a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.main-nav a:hover {
    color: var(--golden-light);
    padding-left: var(--space-sm);
}

.main-nav .submenu {
    padding-left: var(--space-md);
}

.main-nav .submenu a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--deep-umber);
}

.hero__slides {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero__slide.active { opacity: 1; }

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(61, 43, 31, 0.1) 0%,
        rgba(61, 43, 31, 0.2) 50%,
        rgba(61, 43, 31, 0.6) 100%
    );
}

.hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    text-align: center;
    color: var(--snow-white);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--snow-white);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-sm);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(254, 254, 254, 0.85);
    font-weight: 300;
}

.hero__painting-title {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(254, 254, 254, 0.6);
    letter-spacing: 0.05em;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
}

.hero:hover .hero__arrow { opacity: 1; }

.hero__arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero__arrow svg {
    width: 22px;
    height: 22px;
}

.hero__arrow--prev { left: var(--space-lg); }
.hero__arrow--next { right: var(--space-lg); }

.hero__nav {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
}

.hero__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero__dot.active {
    background: var(--snow-white);
    border-color: var(--snow-white);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* --- Section Layouts --- */
.section {
    padding: var(--space-3xl) 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section__title {
    margin-bottom: var(--space-sm);
}

.section__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section__divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--golden-light), var(--sunset-peach));
    margin: var(--space-md) auto;
    border: none;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.gallery-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 43, 31, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__info {
    padding: var(--space-md);
}

.gallery-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.gallery-card__meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Workshop Cards --- */
.workshop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.workshop-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.workshop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.workshop-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.workshop-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-card__body {
    padding: var(--space-lg);
}

.workshop-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--golden-light);
    background: rgba(212, 168, 84, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.workshop-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.workshop-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.workshop-card__detail {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.workshop-card__detail svg {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.workshop-card__price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--golden-light);
    font-weight: 600;
}

.workshop-card__spots {
    font-size: 0.8rem;
    color: var(--sage-green);
    font-weight: 500;
}

.workshop-card__spots--low {
    color: var(--burnt-sienna);
}

.workshop-card__spots--none {
    color: var(--text-light);
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base);
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-card__image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__body {
    padding: var(--space-lg);
}

.product-card__title {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.product-card__price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--golden-light);
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--golden-light);
    color: var(--snow-white);
    border-color: var(--golden-light);
}

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

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

.btn--outline:hover {
    border-color: var(--golden-light);
    color: var(--golden-light);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: transparent;
    padding: 0.5rem 1rem;
}

.btn--ghost:hover {
    background: rgba(61, 43, 31, 0.04);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

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

/* --- Page Content --- */
.page-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    background: var(--bg-secondary);
}

.page-header__title {
    margin-bottom: var(--space-sm);
}

.page-header__breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
}

.page-header__breadcrumb a {
    color: var(--text-secondary);
}

.page-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.page-content .content-body {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.content-body h2 { margin: var(--space-2xl) 0 var(--space-md); }
.content-body h3 { margin: var(--space-xl) 0 var(--space-md); }
.content-body p { margin-bottom: var(--space-md); }
.content-body img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }
.content-body ul, .content-body ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.content-body li { margin-bottom: var(--space-sm); }
.content-body blockquote {
    border-left: 3px solid var(--golden-light);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 8, 6, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
}

.lightbox.open { display: flex; }

.lightbox__img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__caption {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: var(--space-md);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

/* --- Footer --- */
.site-footer {
    background: var(--deep-umber);
    color: var(--text-on-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-col__title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--golden-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(250, 246, 240, 0.7);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--golden-light);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 246, 240, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(250, 246, 240, 0.5);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250, 246, 240, 0.08);
    color: rgba(250, 246, 240, 0.7);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
    background: var(--golden-light);
    color: var(--snow-white);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Forms --- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--snow-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--golden-light);
    box-shadow: 0 0 0 3px rgba(212, 168, 84, 0.15);
}

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

/* --- Alert / Flash --- */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.alert--success {
    background: rgba(140, 168, 120, 0.15);
    color: #4A6B3A;
    border: 1px solid rgba(140, 168, 120, 0.3);
}

.alert--error {
    background: rgba(160, 82, 45, 0.1);
    color: var(--burnt-sienna);
    border: 1px solid rgba(160, 82, 45, 0.2);
}

.alert--info {
    background: rgba(107, 143, 163, 0.1);
    color: var(--ocean-blue);
    border: 1px solid rgba(107, 143, 163, 0.2);
}

/* --- Loading / Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Site Menu Mode Toggle Switch --- */
.site-mode-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(61, 43, 31, 0.04);
    border-radius: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
    margin-left: auto;
    flex-shrink: 0;
}

.site-mode-switch__icon {
    color: var(--text-light);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.site-mode-switch__icon:first-child {
    color: var(--golden-light);
}

.site-mode-switch__track {
    position: relative;
    width: 30px;
    height: 16px;
    background: var(--golden-light);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.site-mode-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.site-mode-side .site-mode-switch__thumb {
    transform: translateX(14px);
}

.site-mode-side .site-mode-switch__track {
    background: var(--ocean-blue);
}

.site-mode-side .site-mode-switch__icon:first-child {
    color: var(--text-light);
}

.site-mode-side .site-mode-switch__icon:last-child {
    color: var(--ocean-blue);
}

/* --- Site Sidebar --- */
.site-sidebar {
    --sidebar-width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--deep-umber);
    display: none;
    flex-direction: column;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-sidebar__brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(250, 246, 240, 0.06);
    flex-shrink: 0;
}

.site-sidebar__logo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FAF6F0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

.site-sidebar__logo:hover {
    color: var(--golden-light);
}

.site-sidebar__tagline {
    display: block;
    font-size: 0.6rem;
    color: rgba(250, 246, 240, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
}

.site-sidebar__brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.site-sidebar-mode-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(250, 246, 240, 0.06);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.site-sidebar-mode-switch svg {
    color: rgba(250, 246, 240, 0.35);
    flex-shrink: 0;
}

.site-sidebar-mode-switch svg:first-child {
    color: var(--golden-light);
}

.site-sidebar-mode-switch__track {
    position: relative;
    width: 28px;
    height: 14px;
    background: var(--golden-light);
    border-radius: 7px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.site-sidebar-mode-switch__thumb {
    position: absolute;
    top: 2px;
    left: 14px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.site-sidebar__nav {
    flex: 1;
    padding: 0.75rem 0;
}

.site-sidebar__section {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(250, 246, 240, 0.25);
    margin-top: 0.25rem;
}

.site-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 1.5rem;
    color: rgba(250, 246, 240, 0.7);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.site-sidebar__link:hover {
    color: #FAF6F0;
    background: rgba(250, 246, 240, 0.04);
}

.site-sidebar__link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.6;
}

.site-sidebar__link:hover svg {
    opacity: 0.9;
}

.site-sidebar__link--sub {
    padding-left: 3rem;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(250, 246, 240, 0.5);
}

.site-sidebar__link--sub:hover {
    color: rgba(250, 246, 240, 0.85);
}

.site-sidebar__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(250, 246, 240, 0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-sidebar__footer span {
    font-size: 0.6rem;
    color: rgba(250, 246, 240, 0.3);
    letter-spacing: 0.05em;
}

.site-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 43, 31, 0.35);
    z-index: 1099;
    backdrop-filter: blur(4px);
}

/* --- Side Menu Mode Overrides --- */
.site-mode-side .site-sidebar {
    display: flex;
}

.site-mode-side .main-nav {
    display: none !important;
}

.site-mode-side .nav-toggle {
    display: none !important;
}

.site-mode-side .nav-overlay {
    display: none !important;
}

.site-mode-side .site-header {
    display: none;
}

.site-mode-side main,
.site-mode-side .site-footer {
    margin-left: 260px;
}

.site-mode-side .hero {
    width: 100%;
}

.site-mode-side .page-header {
    padding-top: var(--space-3xl);
}

/* Highlight current page in sidebar */
.site-sidebar__link[href]:not(.site-sidebar__link--sub) {
    position: relative;
}

/* --- Responsive Breakpoints --- */

/* Tablet: 640px+ */
@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .workshop-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 var(--space-lg); }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    :root {
        --header-height: 72px;
    }

    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .workshop-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }

    .nav-toggle { display: none; }

    .main-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        padding: 0;
        overflow: visible;
        box-shadow: none;
        flex: 1;
    }

    .main-nav ul {
        display: flex;
        align-items: center;
        gap: 0;
        flex-wrap: wrap;
    }

    .main-nav > ul > li {
        border-bottom: none;
        position: relative;
    }

    .main-nav > ul > li > a {
        position: relative;
    }

    .main-nav > ul > li > a::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--golden-light);
        transition: width var(--transition-fast), left var(--transition-fast);
    }

    .main-nav > ul > li > a:hover::after,
    .main-nav > ul > li > a.active::after {
        width: 60%;
        left: 20%;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .main-nav a:hover {
        padding-left: 10px;
        color: var(--golden-light);
    }

    .main-nav .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: var(--bg-card);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-elevated);
        padding: var(--space-sm) 0;
        display: none;
        flex-direction: column;
        z-index: 100;
    }

    .main-nav > ul > li:hover > .submenu {
        display: flex;
    }

    .main-nav .submenu a {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.82rem;
        text-transform: none;
        letter-spacing: 0;
    }

    .nav-overlay:not(.site-mode-side .nav-overlay) { display: none !important; }

    .container { padding: 0 var(--space-xl); }

    .hero__content {
        padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
    }
}

/* Large desktop: 1280px+ */
@media (min-width: 1280px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .workshop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Side menu mode only on desktop */
@media (max-width: 1023px) {
    .site-mode-switch {
        display: none;
    }

    .site-mode-side .site-sidebar {
        display: none;
    }

    .site-mode-side .main-nav {
        display: block !important;
    }

    .site-mode-side .nav-toggle {
        display: flex !important;
    }

    .site-mode-side .site-header {
        left: 0;
    }

    .site-mode-side main,
    .site-mode-side .site-footer,
    .site-mode-side .hero {
        margin-left: 0;
        width: 100%;
    }
}

/* --- Print Styles --- */
@media print {
    .site-header, .site-footer, .nav-toggle, .lightbox, .site-sidebar, .site-mode-switch { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
