/*
 Theme Name: Cultural Heritage Gallery
 Theme URI: https://culturalheritage.local/gallery
 Description: Clean, gallery-white, modern child theme for the Cultural Heritage Art Gallery. Built on Hello Elementor for multisite installation.
 Author: Cultural Heritage Dev
 Author URI: https://culturalheritage.local
 Template: hello-elementor
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: ch-gallery
 Tags: gallery, art, woocommerce, elementor, modern
*/

/* ==========================================================================
   Self-Hosted Google Fonts — Playfair Display + Inter
   ========================================================================== */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Playfair Display Regular'),
         url('fonts/playfair-display-v37-latin-regular.woff2') format('woff2'),
         url('fonts/playfair-display-v37-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Playfair Display Bold'),
         url('fonts/playfair-display-v37-latin-700.woff2') format('woff2'),
         url('fonts/playfair-display-v37-latin-700.woff') format('woff');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: local('Playfair Display Italic'),
         url('fonts/playfair-display-v37-latin-italic.woff2') format('woff2'),
         url('fonts/playfair-display-v37-latin-italic.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'),
         url('fonts/inter-v18-latin-regular.woff2') format('woff2'),
         url('fonts/inter-v18-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Inter Medium'),
         url('fonts/inter-v18-latin-500.woff2') format('woff2'),
         url('fonts/inter-v18-latin-500.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter SemiBold'),
         url('fonts/inter-v18-latin-600.woff2') format('woff2'),
         url('fonts/inter-v18-latin-600.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'),
         url('fonts/inter-v18-latin-700.woff2') format('woff2'),
         url('fonts/inter-v18-latin-700.woff') format('woff');
}

/* ==========================================================================
   CSS Custom Properties — Gallery Brand
   ========================================================================== */

:root {
    /* Brand Colors */
    --ch-primary: #FFFFFF;
    --ch-accent: #333333;
    --ch-bg: #F5F5F5;
    --ch-text: #1C1C1C;
    --ch-secondary: #666666;

    /* Typography */
    --ch-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ch-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --ch-spacing-xs: 0.5rem;
    --ch-spacing-sm: 1rem;
    --ch-spacing-md: 2rem;
    --ch-spacing-lg: 4rem;
    --ch-spacing-xl: 6rem;

    /* Border Radius */
    --ch-radius: 0px;
    --ch-radius-lg: 0px;
}

/* ==========================================================================
   Base Styling — Clean Gallery White
   ========================================================================== */

body {
    font-family: var(--ch-font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--ch-text);
    background-color: var(--ch-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ch-font-heading);
    color: var(--ch-accent);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; font-weight: 400; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 600; font-family: var(--ch-font-body); }
h6 {
    font-size: 0.6875rem;
    font-family: var(--ch-font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--ch-secondary);
}

a {
    color: var(--ch-accent);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
    opacity: 0.7;
}

hr {
    border: none;
    border-top: 1px solid var(--ch-accent);
    opacity: 0.1;
    margin: var(--ch-spacing-lg) 0;
}

/* Buttons — Gallery Minimal */
.ch-btn,
button,
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button {
    font-family: var(--ch-font-body);
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.875rem 2.5rem;
    border: 1px solid var(--ch-accent);
    background: var(--ch-accent);
    color: var(--ch-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--ch-radius);
}

.ch-btn:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: transparent;
    color: var(--ch-accent);
}

.ch-btn--outline {
    background: transparent;
    color: var(--ch-accent);
}

.ch-btn--outline:hover {
    background: var(--ch-accent);
    color: var(--ch-primary);
}

/* Art Pieces / Product Cards */
.ch-art-card,
.ch-product-card,
.woocommerce ul.products li.product {
    background: var(--ch-primary);
    border: none;
    padding: var(--ch-spacing-md);
    text-align: left;
    transition: box-shadow 0.4s ease;
}

.ch-art-card:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.ch-art-card__image {
    background: var(--ch-bg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ch-spacing-sm);
}

.ch-art-card__artist {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ch-secondary);
    margin-bottom: var(--ch-spacing-xs);
}

.ch-art-card__title {
    font-family: var(--ch-font-heading);
    font-size: 1.25rem;
    color: var(--ch-accent);
    margin-bottom: var(--ch-spacing-xs);
}

.ch-art-card__details {
    font-size: 0.8125rem;
    color: var(--ch-secondary);
}

/* WooCommerce Price */
.woocommerce .price,
.woocommerce .amount {
    color: var(--ch-accent);
    font-weight: 500;
    font-family: var(--ch-font-body);
}

/* Exhibitions */
.ch-exhibition {
    background: var(--ch-primary);
    padding: var(--ch-spacing-lg);
    margin-bottom: var(--ch-spacing-md);
}

.ch-exhibition__dates {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ch-secondary);
}

.ch-exhibition__title {
    font-family: var(--ch-font-heading);
    font-size: 1.75rem;
    margin: var(--ch-spacing-sm) 0;
}

/* Grid Layout — Gallery Wall */
.ch-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--ch-spacing-md);
}

.ch-gallery-grid--masonry {
    columns: 3;
    column-gap: var(--ch-spacing-md);
}

.ch-gallery-grid--masonry .ch-art-card {
    break-inside: avoid;
    margin-bottom: var(--ch-spacing-md);
}

/* Navigation — Gallery Minimal */
.ch-nav a {
    font-family: var(--ch-font-body);
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ch-accent);
    padding: 0.5rem 1.25rem;
}

.ch-nav a:hover {
    opacity: 0.6;
}

/* Footer */
.ch-footer {
    background: var(--ch-accent);
    color: var(--ch-primary);
    padding: var(--ch-spacing-xl) 0;
}

.ch-footer a {
    color: var(--ch-primary);
    opacity: 0.8;
}

.ch-footer a:hover {
    opacity: 1;
}

/* Utility */
.ch-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--ch-spacing-md);
}

.ch-section {
    padding: var(--ch-spacing-xl) 0;
}

/* Elementor Overrides */
.elementor-page body,
body.elementor-page {
    background-color: var(--ch-bg);
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--ch-font-heading);
}

.elementor-widget-text-editor {
    font-family: var(--ch-font-body);
}
