:root {
 --primary-color: #374151; /* Charcoal */
 --secondary-color: #ca8a04; /* Gold */
 --accent-color: #fef3c7; /* Warm Beige */
 --primary-dark: #1f2937;
 --text-dark: #111827;
 --text-light: #4b5563;
 --text-on-dark: #f9fafb;
 --bg-light: #fef9e8;
 --bg-white: #ffffff;
 --border-color: #e5e7eb;
 
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;

 --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
 
 --font-main: 'Montserrat', sans-serif;
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.3;
 color: var(--text-dark);
 margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a {
 color: var(--secondary-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover { color: #a16207; }

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

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

.section {
 padding: 80px 0;
}
.bg-light { background-color: var(--bg-light); }

.section-header { margin-bottom: 50px; }
.section-header.centered { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-label {
 display: inline-block;
 color: var(--secondary-color);
 font-weight: 600;
 margin-bottom: 1rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.section-title { font-weight: 700; color: var(--text-dark); }
.section-subtitle { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn {
 display: inline-block;
 padding: 12px 30px;
 border-radius: var(--radius-md);
 font-weight: 600;
 font-size: 1rem;
 text-align: center;
 border: 2px solid transparent;
 transition: var(--transition);
 cursor: pointer;
}
.btn-primary {
 background-color: var(--secondary-color);
 color: var(--bg-white);
 box-shadow: var(--shadow-md);
}
.btn-primary:hover {
 background-color: #a16207;
 transform: translateY(-2px);
 box-shadow: var(--shadow-lg);
}
.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
}
.btn-lg { padding: 15px 40px; font-size: 1.1rem; }

/* Header */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.nav-links ul { list-style: none; display: flex; gap: 32px; }
.nav-links a { color: var(--text-dark); font-weight: 600; padding: 5px 0; position: relative; }
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -5px;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--secondary-color);
 transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; }

/* Animated Hero */
.animated-hero {
 position: relative;
 min-height: 85vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 100px 20px;
 color: var(--text-on-dark);
 overflow: hidden;
 background-color: var(--primary-color);
}
#particles-js {
 position: absolute;
 width: 100%;
 height: 100%;
 top: 0;
 left: 0;
 z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content h1 {
 font-size: clamp(2.8rem, 6vw, 4.5rem);
 color: var(--bg-white);
 text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
}
.hero-content p {
 font-size: 1.25rem;
 max-width: 650px;
 margin: 1.5rem auto 2.5rem;
 color: var(--accent-color);
}
.hero-actions { display: flex; justify-content: center; gap: 20px;}

/* Page Header */
.page-header-section {
 padding: 120px 0 60px;
 background-color: var(--primary-dark);
 color: var(--text-on-dark);
 text-align: center;
}
.page-header-section h1 { color: var(--bg-white); }
.page-header-section p { color: #d1d5db; max-width: 600px; margin: 1rem auto 0; font-size: 1.1rem;}

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

/* Cards */
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card-img {
 width: 100%;
 height: 220px;
 object-fit: cover;
}
.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { margin-bottom: 1rem; }
.card-text { margin-bottom: 1.5rem; flex-grow: 1; }
.card-link { font-weight: 600; align-self: flex-start; }

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.media-object.reversed .media-visual { grid-column: 2; grid-row: 1; }
.media-object.reversed .media-copy { grid-column: 1; grid-row: 1; }
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-copy ul { list-style: none; margin: 1.5rem 0; }
.media-copy li { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.media-copy li svg { width: 20px; height: 20px; color: var(--secondary-color); flex-shrink: 0; }

/* Testimonials */
.testimonial-card {
 background-color: var(--bg-light);
 border: 1px solid var(--accent-color);
 padding: 30px;
 border-radius: var(--radius-lg);
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}
.testimonial-card p {
 font-style: italic;
 margin-bottom: 1.5rem;
 flex-grow: 1;
 color: var(--text-dark);
}
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { color: var(--text-dark); }

/* CTA Section */
.cta-section {
 padding: 80px 0;
 text-align: center;
 background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
 color: var(--text-on-dark);
}
.cta-section .section-title { color: var(--bg-white); }
.cta-section p { max-width: 600px; margin: 1rem auto 2rem; }

/* Footer */
.footer {
 background-color: var(--primary-dark);
 color: #d1d5db;
 padding: 60px 0 30px;
 font-size: 0.95rem;
 margin-top: auto;
}
.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--bg-white); margin-bottom: 1rem; display: block; }
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: var(--bg-white);
 margin-bottom: 20px;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact-item a { color: #d1d5db; }
.footer-links a:hover, .footer-contact-item a:hover { color: var(--bg-white); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--secondary-color); margin-top: 4px; flex-shrink: 0; }
.footer-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 30px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copyright { font-size: 0.9rem; color: #9ca3af; }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: #9ca3af; font-size: 0.9rem; }
.footer-legal-links a:hover { color: white; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group label {
 display: block;
 font-weight: 600;
 margin-bottom: 8px;
 color: var(--text-dark);
}
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea {
 width: 100%;
 padding: 14px 18px;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
 background-color: var(--bg-white);
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--secondary-color);
 box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.2);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group label { margin-bottom: 0; font-weight: 400; font-size: 0.9rem; }
.checkbox-group input { width: auto; }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-wrapper h3 { font-size: 1.5rem; }
.contact-details { list-style: none; margin-top: 2rem; }
.contact-details li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }
.contact-details svg { width: 24px; height: 24px; color: var(--secondary-color); flex-shrink: 0; }
.map-section { padding-top: 0; }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
}

/* About Page */
.team-card {
 background-color: var(--bg-white);
 padding: 30px;
 text-align: center;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
}
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 4px solid var(--accent-color); }
.team-card h4 { font-size: 1.2rem; }
.team-card p { font-size: 0.95rem; color: var(--secondary-color); font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.value-item {
 padding: 30px;
 text-align: center;
 border: 2px solid var(--accent-color);
 border-radius: var(--radius-lg);
}

/* Services Page */
.pricing-card { text-align: center; }
.pricing-card.featured {
 border: 2px solid var(--secondary-color);
 transform: scale(1.05);
}
.service-items { gap: 20px; }
.service-item {
 background: var(--bg-white);
 padding: 20px;
 text-align: center;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-md);
 font-weight: 600;
}

/* Resources Page */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 margin-bottom: 1rem;
 overflow: hidden;
}
.accordion-header {
 width: 100%;
 background-color: var(--bg-white);
 border: none;
 padding: 20px;
 text-align: left;
 font-size: 1.1rem;
 font-weight: 600;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color 0.3s;
}
.accordion-header:hover { background-color: var(--bg-light); }
.accordion-header::after {
 content: '+';
 font-size: 1.5rem;
 font-weight: 300;
 transition: transform 0.3s;
}
.accordion-item.active .accordion-header::after { transform: rotate(45deg); }
.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p { padding: 0 20px 20px; margin: 0; }

/* Legal Page */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page section { margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.5rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.legal-page p, .legal-page li { line-height: 1.8; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-page th, .legal-page td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.legal-page th { background-color: var(--bg-light); }

/* Animation */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.fade-in { transform: none; }
.slide-up { transform: translateY(50px); }

/* Form validation styles */
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important; }
.field-error { color: #dc2626; font-size: 0.85rem; margin-top: 4px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.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], input[type="submit"][disabled] { opacity: 0.7; cursor: not-allowed; }

/* Cookie Banner */
#cookie-banner {
 display: none;
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--primary-dark);
 color: var(--text-on-dark);
 padding: 20px;
 z-index: 1001;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 20px;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; flex-grow: 1; }
#cookie-banner p a { color: var(--accent-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 992px) {
 .media-object { grid-template-columns: 1fr; }
 .media-object.reversed .media-visual, .media-object.reversed .media-copy { grid-column: 1; grid-row: auto;}
 .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 .nav-links {
 position: absolute;
 top: 80px;
 left: 0;
 width: 100%;
 background-color: var(--bg-white);
 flex-direction: column;
 padding: 20px;
 box-shadow: var(--shadow-md);
 transform: translateY(-120%);
 transition: transform 0.3s ease-in-out;
 }
 .nav-links.active { transform: translateY(0); }
 .nav-links ul { flex-direction: column; text-align: center; gap: 20px; }
 .nav-toggle { display: block; background: none; border: none; cursor: pointer; }
 .nav-toggle span { display: block; width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px 0; transition: var(--transition); }
 .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
 .footer-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
 .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}