/*
 Theme Name: Cultural Heritage Main Hub
 Theme URI: https://culturalheritage.local
 Description: Premium, classic, museum-esque child theme for the main Cultural Heritage Centre. 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-main-hub
 Tags: museum, heritage, classic, elementor
*/

/* ==========================================================================
   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 — Main Hub Brand
   ========================================================================== */

:root {
    /* Brand Colors */
    --ch-primary: #1a1a1a;
    --ch-accent: #c4a35a;
    --ch-bg: #f5f0e8;
    --ch-text: #2c2c2c;
    --ch-secondary: #3d2b1f;

    /* 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: 4px;
    --ch-radius-lg: 8px;
}

/* ==========================================================================
   Base Styling — Museum-esque Premium
   ========================================================================== */

body {
    font-family: var(--ch-font-body);
    font-size: 16px;
    line-height: 1.7;
    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-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

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

a:hover,
a:focus {
    color: var(--ch-secondary);
}

/* Premium Divider */
hr {
    border: none;
    border-top: 1px solid var(--ch-accent);
    opacity: 0.4;
    margin: var(--ch-spacing-md) 0;
}

/* Buttons */
.ch-btn,
button,
input[type="submit"] {
    font-family: var(--ch-font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.875rem 2rem;
    border: 2px 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 {
    background: transparent;
    color: var(--ch-accent);
}

/* Navigation */
.ch-nav a {
    font-family: var(--ch-font-body);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ch-primary);
    padding: 0.5rem 1rem;
}

.ch-nav a:hover {
    color: var(--ch-accent);
}

/* Cards */
.ch-card {
    background: #ffffff;
    border: 1px solid rgba(196, 163, 90, 0.15);
    border-radius: var(--ch-radius-lg);
    padding: var(--ch-spacing-md);
    transition: box-shadow 0.3s ease;
}

.ch-card:hover {
    box-shadow: 0 8px 30px rgba(26, 26, 26, 0.08);
}

/* Heritage Letter Widget Area */
.widget-area-heritage-letter {
    background: var(--ch-primary);
    color: var(--ch-bg);
    padding: var(--ch-spacing-lg) var(--ch-spacing-md);
    text-align: center;
}

.widget-area-heritage-letter h2,
.widget-area-heritage-letter h3 {
    color: var(--ch-accent);
    font-family: var(--ch-font-heading);
}

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

.ch-footer a {
    color: var(--ch-accent);
}

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

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

.ch-text-accent {
    color: var(--ch-accent);
}

.ch-bg-primary {
    background-color: var(--ch-primary);
    color: var(--ch-bg);
}

.ch-gold-border {
    border: 2px solid var(--ch-accent);
}

/* 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);
}
