/* === Variables === */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-hover: #d63851;
    --gold: #c9a84c;
    --gold-light: #e0c068;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #0f0f1a;
    --border: #e0e0e0;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* === Navbar === */
.navbar { background: var(--primary); padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-icon { font-size: 28px; color: var(--gold); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; line-height: 1.1; }
.logo-sub { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #ccc; font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Buttons === */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all var(--transition); text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,69,96,0.3); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--primary); }
.btn-gold:hover { background: var(--gold-light); }

/* === Hero === */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0a3d62 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%); }
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 52px; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 18px; color: #b0b0c0; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: #999; }
.section-label { text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }

/* === Service Cards === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: all var(--transition); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.service-card .card-icon { width: 48px; height: 48px; background: var(--bg-alt); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.service-card .price { font-size: 16px; font-weight: 700; color: var(--accent); }
.service-card .duration { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* === Features === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px; }
.feature { text-align: center; padding: 24px; }
.feature .icon { font-size: 36px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-light); font-size: 14px; }

/* === CTA Banner === */
.cta-banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 64px 0; text-align: center; color: #fff; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 12px; }
.cta-banner p { color: #b0b0c0; margin-bottom: 24px; font-size: 16px; }

/* === Forms === */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; transition: border-color var(--transition); background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.form-card h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 8px; }
.form-card .form-subtitle { color: var(--text-light); margin-bottom: 32px; font-size: 15px; }
.form-section-title { font-size: 16px; font-weight: 600; color: var(--primary); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-alt); }
.form-section-title:first-of-type { margin-top: 0; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; cursor: pointer; padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; transition: all var(--transition); }
.checkbox-group label:hover { border-color: var(--gold); }
.checkbox-group input:checked + span { color: var(--gold); font-weight: 500; }
.checkbox-group label:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.checkbox-group input { accent-color: var(--gold); }

/* === Success Page === */
.success-page { text-align: center; padding: 80px 0; }
.success-icon { font-size: 64px; margin-bottom: 24px; }
.success-page h1 { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 12px; }
.success-page p { color: var(--text-light); font-size: 16px; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.success-details { background: var(--bg-alt); border-radius: var(--radius); padding: 24px 32px; display: inline-block; text-align: left; margin-bottom: 32px; }
.success-details p { margin-bottom: 8px; font-size: 14px; color: var(--text); }
.success-details strong { color: var(--primary); }

/* === About === */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }
.about-image { background: linear-gradient(135deg, var(--primary), #0a3d62); border-radius: var(--radius); height: 400px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 72px; }
.values-list { margin-top: 24px; }
.values-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.values-list .check { color: var(--gold); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.values-list strong { display: block; margin-bottom: 2px; }
.values-list span { color: var(--text-light); font-size: 14px; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; margin-bottom: 16px; }
.contact-info-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-light); font-size: 15px; }
.contact-info-card .icon { font-size: 28px; margin-bottom: 12px; }

/* === Footer === */
.footer { background: var(--bg-dark); color: #999; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer h3, .footer h4 { color: #fff; margin-bottom: 16px; }
.footer h3 { font-family: 'Playfair Display', serif; font-size: 20px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #999; font-size: 14px; transition: color var(--transition); }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; text-align: center; font-size: 13px; }

/* === Admin === */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--primary); color: #fff; padding: 24px 0; flex-shrink: 0; position: fixed; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-sidebar .logo h2 { font-family: 'Playfair Display', serif; font-size: 18px; }
.admin-sidebar .logo span { font-size: 12px; color: var(--gold); }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #999; font-size: 14px; transition: all var(--transition); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,0.05); border-left: 3px solid var(--gold); }
.admin-sidebar nav a .icon { font-size: 18px; }
.admin-main { flex: 1; margin-left: 260px; padding: 32px; background: var(--bg-alt); min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-header h1 { font-size: 24px; font-weight: 700; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--primary); margin: 4px 0; }
.stat-card .stat-change { font-size: 13px; color: #27ae60; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h2 { font-size: 18px; font-weight: 600; }
.admin-card-body { padding: 24px; }

/* === Tables === */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 2px solid var(--border); background: var(--bg-alt); }
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.data-table tr:hover { background: rgba(201,168,76,0.03); }

/* === Badges === */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-reviewed { background: #d1ecf1; color: #0c5460; }
.badge-quoted { background: #e2d5f1; color: #5a2d82; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-declined { background: #f8d7da; color: #721c24; }
.badge-scheduled { background: #d1ecf1; color: #0c5460; }
.badge-in_progress { background: #fff3cd; color: #856404; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* === Login === */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-alt); }
.login-card { background: #fff; padding: 48px 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; }
.login-card h1 { font-family: 'Playfair Display', serif; font-size: 28px; text-align: center; margin-bottom: 8px; }
.login-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }
.login-card .error-msg { background: #f8d7da; color: #721c24; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }

/* === Calendar === */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.calendar-header { background: var(--primary); color: #fff; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; }
.calendar-day { background: #fff; padding: 8px; min-height: 80px; font-size: 13px; }
.calendar-day.today { background: rgba(201,168,76,0.08); }
.calendar-day .day-num { font-weight: 600; margin-bottom: 4px; }
.calendar-day .event { font-size: 11px; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-day .event.completed { background: #27ae60; }
.calendar-day.other-month { color: #ccc; }

/* === Modal === */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 32px; max-width: 560px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal h2 { font-size: 20px; margin-bottom: 20px; }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 16px 24px; gap: 8px; }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 8px 0; }
    .hero h1 { font-size: 36px; }
    .hero { padding: 60px 0 50px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .section { padding: 48px 0; }
    .form-card { padding: 24px; }
}
