/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}
a { color: #1B4965; text-decoration: none; }
a:hover { color: #5FA55A; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: #1B4965; }

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; letter-spacing: -0.5px; }
.nav-logo span { color: #1B4965; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #475569; font-weight: 500; transition: color 0.2s; font-size: 0.95rem; }
.nav-links a:hover { color: #1B4965; }
.nav-phone {
    background: #1B4965; color: #fff !important; padding: 8px 16px; border-radius: 6px;
    font-weight: 600; font-size: 0.9rem;
}
.nav-phone:hover { background: #164055; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #1a1a2e; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.99); flex-direction: column;
        padding: 20px; gap: 16px; border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-phone { text-align: center; }
}

/* === Hero === */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 80px 20px;
    background: linear-gradient(135deg, #1B4965 0%, #164055 40%, #0f2d3d 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -20%; width: 60%; height: 160%;
    background: radial-gradient(ellipse, rgba(95, 165, 90, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -10%; left: -10%; width: 50%; height: 80%;
    background: radial-gradient(ellipse, rgba(27, 73, 101, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 750px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #fff; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-phone { margin-top: 8px; }
.hero-phone a {
    font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin-bottom: 4px;
    transition: color 0.2s;
}
.hero-phone a:hover { color: #5FA55A; }
.hero-phone span { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* === Buttons === */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 600;
    font-size: 1rem; border: none; cursor: pointer; transition: all 0.2s; text-align: center;
}
.btn-primary { background: #5FA55A; color: #fff; }
.btn-primary:hover { background: #4e8f4a; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(95,165,90,0.3); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { border-color: #fff; color: #fff; transform: translateY(-1px); }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-title {
    font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 16px; color: #1a1a2e;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px; background: #5FA55A;
    margin: 12px auto 0;
}
.section-subtitle {
    text-align: center; color: #64748b; max-width: 600px; margin: 0 auto 40px;
    font-size: 1.05rem;
}

/* === About === */
.about-text { max-width: 750px; margin: 0 auto 40px; text-align: center; line-height: 1.8; font-size: 1.05rem; }
.about-text p { margin-bottom: 1rem; color: #475569; }
.trust-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.trust-badge {
    text-align: center; padding: 24px 16px; border-radius: 12px;
    background: #fff; border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s;
}
.trust-badge:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.trust-icon { font-size: 2rem; margin-bottom: 8px; }
.trust-badge strong { display: block; color: #1a1a2e; margin-bottom: 2px; }
.trust-badge span { color: #64748b; font-size: 0.9rem; }

/* === Services === */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.service-card {
    background: #f5f7fa; border-radius: 12px; padding: 32px; text-align: center;
    border: 1px solid #e2e8f0; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: #1B4965; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.2rem; color: #1a1a2e; margin-bottom: 8px; }
.service-card p { color: #64748b; font-size: 0.95rem; }

/* === Calculator === */
.calculator-wrap {
    max-width: 600px; margin: 0 auto;
    background: #fff; border-radius: 16px; padding: 32px;
    border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.calc-result { margin-top: 24px; text-align: center; }
.calc-range { background: #f0fdf4; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.calc-label { display: block; color: #64748b; font-size: 0.9rem; margin-bottom: 8px; }
.calc-price { font-size: 2rem; font-weight: 800; color: #1B4965; }
.calc-disclaimer { font-size: 0.85rem; color: #64748b; margin-bottom: 16px; line-height: 1.6; }

/* === Gallery === */
.gallery-filters { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.gallery-filter-btn {
    padding: 6px 16px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff;
    color: #64748b; cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active { background: #1B4965; color: #fff; border-color: #1B4965; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.gallery-item {
    border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
    background: #e2e8f0; position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
    display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 12px 10px; font-size: 0.85rem; color: #fff;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-empty { text-align: center; color: #94a3b8; grid-column: 1 / -1; padding: 40px; }

/* === Lightbox === */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92); z-index: 200; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 16px; right: 24px; background: none; border: none;
    color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 201;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%); background: none;
    border: none; color: #fff; font-size: 2rem; cursor: pointer; padding: 20px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-caption {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #ccc; font-size: 0.95rem; text-align: center; max-width: 80%;
}

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item[open] { border-color: #1B4965; }
.faq-question {
    padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem;
    color: #1a1a2e; list-style: none; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+'; font-size: 1.4rem; color: #1B4965; flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 24px 20px; color: #475569; line-height: 1.7; }
.faq-answer p { margin: 0; }
.faq-answer a { color: #1B4965; text-decoration: underline; }

/* === Booking Form === */
.booking-form {
    max-width: 700px; margin: 0 auto; background: #f5f7fa; border-radius: 16px;
    padding: 32px; border: 1px solid #e2e8f0; position: relative;
}

/* === Contact === */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}
.contact-info h3 { color: #1a1a2e; margin-bottom: 24px; font-size: 1.3rem; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: start; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; color: #1a1a2e; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: #475569; }

.contact-form {
    background: #fff; border-radius: 12px; padding: 32px;
    border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #334155; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px; background: #fff; border: 1px solid #d1d5db;
    border-radius: 8px; color: #1a1a2e; font-size: 1rem; font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: #1B4965; box-shadow: 0 0 0 3px rgba(27,73,101,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}
.form-status { margin-top: 12px; font-size: 0.9rem; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

/* === Footer === */
.footer { padding: 24px 0; border-top: 1px solid #e2e8f0; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #1a1a2e; }
.footer-logo span { color: #1B4965; }
.footer span:last-child { color: #94a3b8; font-size: 0.85rem; }

/* ==============================
   ADMIN STYLES
   ============================== */
.admin-body { background: #f5f7fa; }
.admin-wrap { max-width: 960px; margin: 40px auto; padding: 0 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.admin-header h1 { color: #1a1a2e; font-size: 1.5rem; }
.admin-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-nav a { color: #64748b; font-weight: 500; font-size: 0.9rem; padding: 4px 8px; border-radius: 4px; }
.admin-nav a:hover { color: #1B4965; background: #eff6ff; }
.admin-nav a.active { color: #1B4965; background: #eff6ff; font-weight: 600; }

.admin-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-card h2 { color: #1a1a2e; font-size: 1.2rem; margin-bottom: 16px; }

.admin-stat { display: flex; gap: 32px; flex-wrap: wrap; }
.admin-stat-item { text-align: center; }
.admin-stat-item .num { font-size: 2rem; font-weight: 800; color: #1B4965; display: block; }
.admin-stat-item .label { color: #64748b; font-size: 0.85rem; }

.admin-login-box {
    max-width: 400px; margin: 120px auto; padding: 40px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.admin-login-box h1 { color: #1a1a2e; margin-bottom: 24px; }
.admin-login-box .error { color: #dc2626; margin-bottom: 16px; font-size: 0.9rem; background: #fef2f2; padding: 8px 12px; border-radius: 6px; }
.admin-login-box input {
    width: 100%; padding: 12px; background: #fff; border: 1px solid #d1d5db;
    border-radius: 8px; color: #1a1a2e; font-size: 1rem; margin-bottom: 16px;
}
.admin-login-box input:focus { outline: none; border-color: #1B4965; }

/* Upload area */
.upload-area {
    border: 2px dashed #d1d5db; border-radius: 12px; padding: 40px; text-align: center;
    cursor: pointer; transition: border-color 0.2s; margin-bottom: 12px;
}
.upload-area:hover, .upload-area.dragover { border-color: #1B4965; background: #f0f7ff; }
.upload-area p { color: #64748b; }
.upload-status-text { color: #64748b; font-size: 0.9rem; }

/* Photo grid admin */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo-card { position: relative; background: #f5f7fa; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-card-actions {
    padding: 8px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.photo-card-actions input {
    background: #fff; border: 1px solid #d1d5db; color: #1a1a2e;
    padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; flex: 1; min-width: 60px;
}
.photo-card-actions button {
    background: #dc2626; color: #fff; border: none; padding: 4px 10px;
    border-radius: 4px; cursor: pointer; font-size: 0.8rem; white-space: nowrap;
}
.photo-card-actions button:hover { background: #b91c1c; }

/* List items (messages, recent activity) */
.list-item {
    padding: 16px 0; border-bottom: 1px solid #f1f5f9;
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
}
.list-item:last-child { border-bottom: none; }
.list-item.highlight { border-left: 3px solid #1B4965; padding-left: 12px; background: #f0f7ff; border-radius: 4px; padding: 12px; }
.item-meta { font-size: 0.85rem; color: #64748b; margin-bottom: 4px; }
.item-meta strong { color: #1a1a2e; }
.item-detail { color: #475569; font-size: 0.95rem; line-height: 1.5; }
.item-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.item-actions button {
    background: #fff; border: 1px solid #d1d5db; color: #64748b; padding: 4px 10px;
    border-radius: 4px; cursor: pointer; font-size: 0.8rem;
}
.item-actions button:hover { border-color: #1B4965; color: #1B4965; }
.item-actions button.del:hover { border-color: #dc2626; color: #dc2626; }

.view-all { display: block; text-align: center; margin-top: 16px; color: #1B4965; font-weight: 500; font-size: 0.9rem; }
.empty-text { color: #94a3b8; text-align: center; padding: 20px; }
.help-text { color: #64748b; font-size: 0.9rem; margin-bottom: 16px; }

/* Status badges */
.status-badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-confirmed { background: #fef3c7; color: #b45309; }
.status-completed { background: #dcfce7; color: #16a34a; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

/* Appointments admin */
.appt-card {
    border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin-bottom: 12px;
    background: #fafbfc;
}
.appt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.appt-detail { color: #475569; font-size: 0.9rem; margin-bottom: 4px; }
.appt-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.appt-actions select {
    padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.85rem;
    background: #fff; color: #1a1a2e;
}
.notes-input {
    flex: 1; min-width: 150px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 0.85rem; color: #1a1a2e;
}
.appt-actions button.del {
    background: #dc2626; color: #fff; border: none; padding: 4px 12px;
    border-radius: 4px; cursor: pointer; font-size: 0.85rem;
}

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 6px 16px; border-radius: 6px; border: 1px solid #d1d5db;
    color: #64748b; font-size: 0.85rem; text-decoration: none; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: #1B4965; color: #fff; border-color: #1B4965; }

/* Job type cards */
.jt-list { display: flex; flex-direction: column; gap: 12px; }
.jt-card {
    border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; background: #fafbfc;
}
.jt-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.jt-price { color: #1B4965; font-weight: 600; font-size: 0.9rem; }
.jt-desc { color: #64748b; font-size: 0.9rem; margin: 8px 0; }
.jt-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.jt-actions input {
    padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.85rem;
    background: #fff;
}
.jt-actions button {
    padding: 4px 12px; border: 1px solid #d1d5db; border-radius: 4px; cursor: pointer;
    font-size: 0.85rem; background: #fff; color: #64748b;
}
.jt-actions button:hover { border-color: #1B4965; color: #1B4965; }
.jt-actions button.del { background: #dc2626; color: #fff; border-color: #dc2626; }
.jt-actions button.del:hover { background: #b91c1c; }

/* Content editor */
.content-section-title { color: #1B4965; font-size: 1rem; margin: 24px 0 12px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.content-section-title:first-of-type { border-top: none; padding-top: 0; }

/* Print-friendly */
@media print {
    .nav, .lightbox { display: none; }
    .hero { min-height: auto; padding: 40px 20px; }
    .section { padding: 40px 0; }
}
