/* ===== CSS Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--text-color); background: var(--bg-color); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== CSS Variables ===== */
:root {
    --primary-color: #c9a227;
    --primary-dark: #a8871f;
    --secondary-color: #1a1a2e;
    --accent-color: #e8c547;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #16213e;
    --text-color: #2d2d2d;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --nav-height: 80px;
}
.dark-mode { --bg-color: #1a1a2e; --bg-secondary: #16213e; --text-color: #ffffff; --text-light: #a0a0a0; --border-color: #333; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; margin-bottom: var(--space-sm); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: var(--space-sm); }

/* ===== Layout ===== */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-title { margin-bottom: 10px; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; font-size: 1rem; font-weight: 500; border-radius: 50px; transition: var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--primary-color); color: var(--secondary-color); border-color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: var(--secondary-color); }
.btn-dark { background: var(--secondary-color); color: var(--text-white); border-color: var(--secondary-color); }
.btn-dark:hover { background: var(--bg-dark); border-color: var(--bg-dark); }
.btn svg { width: 18px; height: 18px; }

/* ===== Cards ===== */
.card { background: var(--bg-color); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ===== Loader ===== */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner { width: 50px; height: 50px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Navigation ===== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; box-shadow: var(--shadow-sm); }
.navbar-container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-text { font-size: 1rem; font-weight: 600; letter-spacing: 2px; color: var(--secondary-color); }
.nav-menu { display: flex; gap: 10px; }
.nav-link { padding: 10px 20px; font-weight: 500; color: var(--text-color); border-radius: 25px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--primary-color); color: var(--secondary-color); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 10px; }
.nav-toggle span { width: 25px; height: 3px; background: var(--secondary-color); border-radius: 2px; transition: var(--transition); }

/* ===== Page Header ===== */
.page-header { padding: 140px 0 60px; background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%); color: var(--text-white); text-align: center; }
.page-title { margin-bottom: 20px; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; font-size: 0.95rem; opacity: 0.9; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.7; }

/* ===== Footer ===== */
.footer { background: var(--secondary-color); color: var(--text-white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--primary-color); text-decoration: underline; }
.copyright { font-size: 0.9rem; opacity: 0.8; }

/* ===== Scroll to Top ===== */
.scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary-color); color: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); cursor: pointer; box-shadow: var(--shadow-md); z-index: 999; }
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.scroll-to-top svg { width: 24px; height: 24px; }

/* ===== Animations ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: absolute; top: var(--nav-height); left: 0; width: 100%; background: var(--bg-color); flex-direction: column; padding: 20px; gap: 5px; box-shadow: var(--shadow-md); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: var(--transition); }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { display: block; padding: 15px 20px; }
    .section { padding: 60px 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .card { padding: 20px; }
}