:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #4a5568; /* Steel Gray */
 --primary-dark: #0a3c6a;
 --text-dark: #1a1a1a;
 --text-light: #4a5568;
 --text-white: #ffffff;
 --bg-light: #f5f7fa;
 --bg-white: #ffffff;
 --border-color: #e2e8f0;
 --font-main: 'Roboto', sans-serif;
 --font-display: 'Playfair Display', serif;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
 --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease-in-out;
}

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

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

body {
 font-family: var(--font-main);
 line-height: 1.6;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

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

a:hover {
 color: var(--primary-dark);
}

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

.btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: var(--radius-md);
 font-weight: 500;
 text-align: center;
 transition: var(--transition);
 cursor: pointer;
 border: 1px solid transparent;
}

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

.btn-primary:hover {
 background-color: var(--primary-dark);
 border-color: var(--primary-dark);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border: 1px solid var(--primary-color);
}

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

.btn-text {
 font-weight: 500;
 color: var(--primary-color);
 position: relative;
}

.btn-text::after {
 content: '→';
 margin-left: 8px;
 transition: margin-left 0.3s ease;
}

.btn-text:hover::after {
 margin-left: 12px;
}

.btn-sm {
 padding: 8px 16px;
 font-size: 0.9rem;
}

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid transparent;
 transition: var(--transition);
}

.header.scrolled {
 border-bottom-color: var(--border-color);
 background-color: rgba(255, 255, 255, 0.98);
 box-shadow: var(--shadow-sm);
}

.nav {
 height: 80px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.nav-logo {
 font-family: var(--font-display);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
}

.nav-menu {
 display: flex;
}

.nav-list {
 display: flex;
 list-style: none;
 gap: 40px;
 align-items: center;
}

.nav-link {
 font-size: 1rem;
 font-weight: 500;
 color: var(--text-light);
 padding: 5px 0;
 position: relative;
}

.nav-link::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
 width: 100%;
}

.nav-link.active {
 color: var(--text-dark);
}

.nav-toggle {
 display: none;
 cursor: pointer;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 margin: 5px;
 background-color: var(--text-dark);
 transition: var(--transition);
}

/* Sections */
.section {
 padding: 100px 0;
}
.bg-light {
 background-color: var(--bg-light);
}

.section-header {
 text-align: center;
 max-width: 750px;
 margin: 0 auto 60px;
}

.section-label {
 display: inline-block;
 font-family: var(--font-main);
 font-size: 0.9rem;
 font-weight: 500;
 color: var(--primary-color);
 margin-bottom: 16px;
 text-transform: uppercase;
 letter-spacing: 1.5px;
}

.section-title {
 margin-bottom: 24px;
}

.section-subtitle {
 font-size: 1.1rem;
 max-width: 600px;
 margin: 0 auto;
}

.page-hero-small {
 padding: 120px 0 80px;
 background-size: cover;
 background-position: center;
 color: var(--text-white);
 text-align: center;
}

.page-title {
 color: var(--text-white);
}

.page-subtitle {
 color: var(--text-white);
 opacity: 0.8;
 max-width: 500px;
 margin: 16px auto 0;
}

/* Art Gallery Layout */
.hero-gallery {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 90vh;
 padding: 120px 24px 60px;
 flex-wrap: wrap;
 gap: 40px;
}
.hero-image-container {
 position: relative;
 max-width: 600px;
 flex-shrink: 0;
}
.hero-artwork {
 width: 100%;
 height: auto;
 display: block;
 border-radius: var(--radius-sm);
}
.hero-frame {
 position: absolute;
 top: -20px;
 left: -20px;
 right: -20px;
 bottom: -20px;
 border: 1px solid var(--border-color);
 z-index: -1;
 border-radius: var(--radius-sm);
}
.hero-placard {
 max-width: 450px;
}
.placard-subtitle {
 display: block;
 font-size: 1rem;
 font-weight: 500;
 color: var(--primary-color);
 margin-bottom: 1rem;
}
.placard-title { margin-bottom: 1.5rem; }
.placard-text { margin-bottom: 2rem; font-size: 1.1rem; }

.exhibition-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
 gap: 40px;
}
.exhibit-item {
 text-align: center;
}
.exhibit-image-wrapper {
 background-color: var(--bg-light);
 padding: 24px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 margin-bottom: 24px;
 transition: var(--transition);
}
.exhibit-item:hover .exhibit-image-wrapper {
 transform: scale(1.02);
 box-shadow: var(--shadow-md);
}
.exhibit-image-wrapper img {
 width: 100%;
 height: 300px;
 object-fit: cover;
 border-radius: var(--radius-sm);
}
.exhibit-info h3 { margin-bottom: 12px; font-size: 1.4rem; }
.exhibit-info p { margin-bottom: 16px; }

.collection-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.collection-card {
 background: var(--bg-white);
 border: 1px solid var(--border-color);
 padding: 1rem;
 border-radius: var(--radius-md);
 transition: var(--transition);
}
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.collection-card-img {
 width: 100%;
 height: 180px;
 object-fit: cover;
 border-radius: var(--radius-sm);
 margin-bottom: 1rem;
}
.collection-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.collection-card p { font-size: 0.9rem; }
.collection-card .btn-sm { margin-top: 1rem; }

.section-footer-action {
 text-align: center;
 margin-top: 60px;
}

.artist-statement-section .text-center-max { max-width: 800px; margin: 0 auto; text-align: center; }
.statement-text {
 font-family: var(--font-display);
 font-size: 1.25rem;
 line-height: 1.7;
 margin: 30px 0 50px;
 color: var(--text-dark);
}

.values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 text-align: left;
 margin-top: 50px;
}
.values-grid h4 { margin-bottom: 10px; color: var(--primary-color);}

.press-section .reviews-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 40px;
}
.review-card {
 background-color: var(--bg-white);
 padding: 30px;
 border-radius: var(--radius-lg);
 border: 1px solid var(--border-color);
 text-align: center;
}
.review-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 border: 3px solid var(--bg-white);
 box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.review-card blockquote {
 font-family: var(--font-display);
 font-size: 1.2rem;
 line-height: 1.6;
 margin-bottom: 20px;
 font-style: italic;
 color: var(--text-dark);
}
.review-card cite {
 font-style: normal;
 font-weight: 500;
 color: var(--accent-color);
}

.cta-section-gallery {
 background-color: var(--primary-color);
 color: var(--text-white);
 padding: 80px 0;
}
.cta-section-gallery .section-title, .cta-section-gallery p { color: var(--text-white); }
.cta-section-gallery .btn-primary { background-color: var(--bg-white); color: var(--primary-color); margin-top: 30px;}
.cta-section-gallery .btn-primary:hover { background-color: var(--bg-light); }

/* About Page */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 60px;
 align-items: center;
}
.media-object .media-visual { order: 1; }
.media-object .media-copy { order: 2; }
.media-object ul { list-style: none; margin-top: 20px; }
.media-object li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.media-object li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--secondary-color);
 font-weight: bold;
}

.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.team-card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 padding: 30px;
 text-align: center;
 border: 1px solid var(--border-color);
 transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
}
.team-title { color: var(--primary-color); font-size: 0.9rem; margin: 5px 0 10px; }
.team-bio { font-size: 0.9rem; }

.partner-logos {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 50px;
 flex-wrap: wrap;
 filter: grayscale(100%);
 opacity: 0.7;
}
.partner-logos p {
 font-size: 1.5rem;
 font-weight: bold;
 font-family: var(--font-display);
}

/* Resources Page */
.resources-grid { display: grid; gap: 30px; }
.resource-card {
 background-color: var(--bg-white);
 padding: 30px;
 border-radius: var(--radius-md);
 border-left: 4px solid var(--primary-color);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.resource-card h3 { margin-bottom: 15px; }
.resource-meta {
 font-size: 0.85rem;
 color: var(--accent-color);
 margin: 20px 0;
}
.faq-container { max-width: 800px; margin: 0 auto;}
.faq-item {
 border-bottom: 1px solid var(--border-color);
 padding: 20px 0;
}
.faq-item summary {
 font-weight: 500;
 font-size: 1.1rem;
 cursor: pointer;
 list-style: none;
 position: relative;
 padding-right: 30px;
 color: var(--text-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
 content: '+';
 position: absolute;
 right: 5px;
 font-size: 1.5rem;
 transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
 padding-top: 15px;
 font-size: 1rem;
}

/* Contact Page */
.contact-page-layout {
 display: grid;
 grid-template-columns: 1.2fr 1fr;
 gap: 60px;
}
.contact-form-wrapper p { margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }
.form-group input, .form-group textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: inherit;
 font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.1);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; }

.contact-info-wrapper { padding-top: 1.5rem; }
.contact-info-item { margin-bottom: 30px; }
.contact-info-item h4 { margin-bottom: 10px; }
.contact-info-item p { margin: 0; line-height: 1.5; font-size: 1rem; }
.contact-info-item a { color: var(--text-light); }
.contact-info-item a:hover { color: var(--primary-color); }

.map-container {
 height: 250px;
 margin-top: 40px;
 border-radius: var(--radius-md);
 overflow: hidden;
 border: 1px solid var(--border-color);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Form Validation */
.input-error { border-color: #dc2626 !important; }
.field-error { color: #dc2626; font-size: 0.875rem; margin-top: 5px; }

/* Legal Pages */
.legal-page { padding: 120px 0 60px; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page p em { color: var(--accent-color); display: block; margin-bottom: 3rem; }
.legal-page section { margin-bottom: 2.5rem; }
.legal-page section h2 { margin-bottom: 1rem; }
.legal-page section p, .legal-page section li { margin-bottom: 0.5rem; }
.legal-page ul { padding-left: 20px; }
.legal-page table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 1.5rem;
}
.legal-page th, .legal-page td {
 padding: 12px;
 border: 1px solid var(--border-color);
 text-align: left;
}
.legal-page th { background-color: var(--bg-light); }

/* Footer */
.footer {
 background-color: var(--bg-light);
 color: var(--accent-color);
 padding: 60px 0 30px;
 margin-top: 80px;
 text-align: center;
}
.footer-logo { font-size: 1.8rem; }
.footer-tagline { margin: 10px 0 40px; }
.footer-info-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 padding-top: 40px;
 border-top: 1px solid var(--border-color);
 text-align: left;
}
.footer-info-grid h4 {
 font-family: var(--font-main);
 text-transform: uppercase;
 font-size: 1rem;
 letter-spacing: 1px;
 color: var(--text-dark);
}
.footer-info-grid p, .footer-info-grid li { margin-bottom: 5px; font-size: 0.95rem; }
.footer-info-grid a { color: var(--accent-color); }
.footer-info-grid a:hover { color: var(--primary-color); }
.footer-links ul { list-style: none; }
.footer-bottom {
 margin-top: 50px;
 padding-top: 20px;
 border-top: 1px solid var(--border-color);
}
.footer-copyright { font-size: 0.9rem; }

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--text-dark);
 color: var(--text-white);
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* Responsive Styles */
@media (max-width: 992px) {
 .hero-gallery { flex-direction: column; text-align: center; }
 .hero-placard { max-width: 600px; }
 .press-section .reviews-grid { grid-template-columns: 1fr; }
 .media-object { grid-template-columns: 1fr; }
 .media-object .media-visual { order: 2; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-menu {
 position: fixed;
 top: 0;
 right: -100%;
 width: 100%;
 height: 100vh;
 background-color: var(--bg-white);
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 transition: right 0.4s ease-in-out;
 z-index: 1000;
 }
 .nav-menu.active { right: 0; }
 .nav-list { flex-direction: column; gap: 30px; }
 .nav-link { font-size: 1.5rem; }
 .contact-page-layout { grid-template-columns: 1fr; }
 .footer-info-grid { text-align: center; }
 .footer-info-grid h4 { margin-top: 20px; }

 .cookie-banner { flex-direction: column; text-align: center; }
}

.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin {
 to { transform: rotate(360deg); }
}
button[disabled] { cursor: not-allowed; opacity: 0.7; }