/* ============================================================
   HOME SERVICES PRO - Premium Design System
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #1a3a5c;
    --color-primary-light: #2a5a8c;
    --color-primary-dark: #0f2440;
    --color-accent: #c8a96e;
    --color-accent-light: #dbc28e;
    --color-accent-dark: #a88a4e;
    --color-success: #2d8a4e;
    --color-warning: #d4a017;
    --color-danger: #c0392b;
    --color-info: #2980b9;

    --color-bg: #faf9f7;
    --color-bg-alt: #f0eeeb;
    --color-bg-card: #ffffff;
    --color-bg-dark: #1a1a2e;
    --color-bg-darker: #111122;

    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999999;
    --color-text-white: #ffffff;
    --color-text-on-primary: #ffffff;

    --color-border: #e0ddd8;
    --color-border-light: #eeedea;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;

    --sidebar-width: 260px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
hr { border: none; border-top: 1px solid var(--color-border-light); margin: 1.5rem 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- Utility Classes --- */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
    border: 2px solid transparent; border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition);
    text-decoration: none; white-space: nowrap;
    background: var(--color-bg-alt); color: var(--color-text);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--color-text); }

.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); color: #fff; }

.btn-accent { background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary-dark); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none;
}
.logo-icon {
    font-size: 1.8rem; color: var(--color-accent);
    line-height: 1;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-primary-dark); letter-spacing: 0.02em; }
.logo-pro { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-accent); }

.nav-main { display: flex; gap: 0.25rem; }
.nav-main a {
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; color: var(--color-text);
    transition: all var(--transition);
}
.nav-main a:hover, .nav-main a.active { background: var(--color-bg-alt); color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
    flex-direction: column; gap: 5px;
}
.hamburger span { width: 24px; height: 2px; background: var(--color-text); transition: var(--transition); display: block; }

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-primary-light) 100%);
    color: #fff; padding: 5rem 0 3.5rem; overflow: hidden;
    min-height: 440px; display: flex; align-items: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200,169,110,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(15,36,64,0.3), transparent);
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 1;
    max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
}
.hero-badge {
    display: inline-flex; align-items: center;
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: 3.25rem; color: #fff;
    margin-bottom: 1rem; max-width: 720px;
    line-height: 1.15; letter-spacing: -0.01em;
}
.hero h1 em {
    font-style: italic; color: var(--color-accent-light);
}
.hero .accent-text { color: var(--color-accent-light); }
.hero-subtitle {
    font-size: 1.05rem; line-height: 1.6;
    opacity: 0.85; margin-bottom: 1.5rem;
    max-width: 540px; color: rgba(255,255,255,0.9);
}
.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-actions .btn-primary {
    background: var(--color-accent); border-color: var(--color-accent);
    color: var(--color-primary-dark); font-weight: 700;
}
.hero-actions .btn-primary:hover {
    background: var(--color-accent-light); border-color: var(--color-accent-light);
    color: var(--color-primary-dark);
}
.hero-trust {
    display: flex; gap: 2rem; flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-item {
    display: flex; flex-direction: column; gap: 0.15rem;
}
.trust-item strong {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 700;
    color: var(--color-accent-light);
    line-height: 1.2;
}
.trust-item span {
    font-size: 0.8rem; font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.02em;
}

/* Page Hero (smaller, for subpages) */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff; padding: 3.5rem 0; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; font-size: 2.5rem; }
.page-hero p { opacity: 0.85; font-size: 1.1rem; }
.page-hero-sm { padding: 2.5rem 0; }
.page-hero-sm h1 { font-size: 2rem; }

/* --- Sections --- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-light { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: #fff; }
.section-dark > .container > .section-header h2,
.section-dark > .container > .section-header p { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

.section-header {
    text-align: center; margin-bottom: 2rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--color-text-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-header .accent-line {
    width: 60px; height: 3px; background: var(--color-accent); margin: 1rem auto 0; border-radius: 2px;
}

/* --- Cards --- */
.card {
    background: var(--color-bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    overflow: hidden; transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--color-border-light);
}
.card-header h3 { font-size: 1.1rem; margin: 0; }
.card-body { padding: 1.5rem; }
.card-description { padding: 0 1.5rem 0.5rem; color: var(--color-text-light); font-size: 0.9rem; }

/* --- Service Cards --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: var(--color-bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: 1.5rem 1.25rem; transition: all var(--transition);
    text-align: center;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-icon {
    width: 52px; height: 52px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-alt); border-radius: var(--radius-lg);
    color: var(--color-primary);
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.service-card p { color: var(--color-text-light); font-size: 0.85rem; margin-bottom: 0.75rem; line-height: 1.5; }
.service-card .service-count { font-size: 0.8rem; color: var(--color-text-muted); }

/* --- Service Detail --- */
.service-detail { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
.service-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; border-bottom: 1px solid var(--color-border-light);
}
.service-list-item:last-child { border: none; }
.service-list-item .service-name { font-weight: 600; }
.service-list-item .service-desc { font-size: 0.85rem; color: var(--color-text-light); }
.service-list-item .service-price { font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.service-sidebar .card { margin-bottom: 1.5rem; }

/* --- Package Cards --- */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.package-card {
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    border: 2px solid var(--color-border-light);
    padding: 2rem 1.5rem; text-align: center;
    transition: all var(--transition); position: relative;
    color: var(--color-text);
}
.package-card h3 { color: var(--color-primary-dark); }
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.package-card.package-featured {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}
.package-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--color-accent); color: var(--color-primary-dark);
    padding: 0.25rem 1.25rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.package-header { margin-bottom: 1rem; }
.package-name { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; }
.package-price { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.25rem; }
.package-price .price-currency { font-size: 1.25rem; font-weight: 700; vertical-align: super; margin-right: 2px; }
.package-price .price-amount { font-size: 2rem; }
.package-price .price-period { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.package-price small { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.package-response { color: var(--color-text-light); font-size: 0.9rem; }
.package-credits { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.package-desc { color: var(--color-text-light); margin-bottom: 1.5rem; font-size: 0.9rem; }
.package-features { text-align: left; margin-bottom: 1.25rem; }
.package-features li {
    padding: 0.5rem 0; padding-left: 1.5rem; position: relative;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9rem; color: var(--color-text);
}
.package-features li::before { content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }

/* --- How it works --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { text-align: center; padding: 1rem; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
    margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-card p { color: var(--color-text-light); font-size: 0.85rem; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.testimonial-card {
    background: var(--color-bg-card); border-radius: var(--radius-md);
    padding: 1.5rem; border: 1px solid var(--color-border-light);
    position: relative;
}
.testimonial-card::before {
    content: '"'; font-family: var(--font-heading); font-size: 4rem;
    color: var(--color-accent); opacity: 0.3; position: absolute;
    top: 0.5rem; left: 1.5rem; line-height: 1;
}
.testimonial-text { font-style: italic; color: var(--color-text-light); margin-bottom: 0.75rem; padding-top: 1.25rem; font-size: 0.9rem; }
.testimonial-stars { color: var(--color-accent); margin-bottom: 0.5rem; letter-spacing: 2px; }
.testimonial-author { font-weight: 600; }
.testimonial-location { font-size: 0.85rem; color: var(--color-text-muted); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; color: var(--color-text-light); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value-card { padding: 1.25rem; border-radius: var(--radius-sm); background: var(--color-bg-alt); }
.value-card h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.value-card p { font-size: 0.85rem; color: var(--color-text-light); }
.about-sidebar .stat-item {
    text-align: center; padding: 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
}
.about-sidebar .stat-item:last-child { border: none; }
.about-sidebar .stat-number { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.about-sidebar .stat-text { font-size: 0.85rem; color: var(--color-text-light); }

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    text-align: center; padding: 4rem 0; color: var(--color-primary-dark);
}
.cta-section h2 { color: var(--color-primary-dark); margin-bottom: 0.75rem; }
.cta-section p { margin-bottom: 1.5rem; opacity: 0.85; }

/* --- Forms --- */
.form { max-width: 100%; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.85rem; font-weight: 600; color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%; padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff; color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }

/* Radio & Checkbox Custom */
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-option, .checkbox-option {
    position: relative;
}
.radio-option input, .checkbox-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label, .checkbox-option label {
    display: block; padding: 0.6rem 1.25rem;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.85rem; font-weight: 500;
    transition: all var(--transition);
}
.radio-option input:checked + label,
.checkbox-option input:checked + label {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* Contact form layout */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
.contact-sidebar .contact-item { margin-bottom: 1.5rem; }
.contact-sidebar .contact-item strong { display: block; margin-bottom: 0.25rem; }
.contact-sidebar .contact-item span,
.contact-sidebar .contact-item a { color: var(--color-text-light); font-size: 0.9rem; }

/* --- Tables --- */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: left; font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-light);
}
.table th {
    font-weight: 600; color: var(--color-text-light);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
    background: var(--color-bg-alt);
}
.table-hover tbody tr:hover { background: var(--color-bg-alt); }

/* --- Badges --- */
.badge {
    display: inline-block; padding: 0.2rem 0.75rem;
    font-size: 0.75rem; font-weight: 600; border-radius: 20px;
    text-transform: capitalize;
    background: var(--color-bg-alt); color: var(--color-text);
}
.badge-lg { padding: 0.35rem 1rem; font-size: 0.85rem; }
.badge-sm { padding: 0.15rem 0.5rem; font-size: 0.7rem; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-reviewed { background: #dbeafe; color: #1e40af; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-scheduled { background: #e0e7ff; color: #3730a3; }
.badge-in_progress { background: #fce7f3; color: #9d174d; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-overdue { background: #fee2e2; color: #991b1b; }
.badge-normal { background: var(--color-bg-alt); color: var(--color-text); }
.badge-urgent { background: #fef3c7; color: #92400e; }
.badge-emergency { background: #fee2e2; color: #991b1b; }

/* --- Flash Messages --- */
.flash-container { max-width: var(--max-width); margin: 0 auto; padding: 1rem 1.5rem 0; }
.flash {
    padding: 1rem 1.5rem; border-radius: var(--radius-sm);
    margin-bottom: 0.75rem; font-size: 0.9rem; font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
    animation: flashIn 0.3s ease;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.flash .flash-close {
    background: none; border: none; font-size: 1.25rem; cursor: pointer;
    color: inherit; opacity: 0.6; padding: 0 0.5rem;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-dark); color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.6); font-size: 0.9rem;
}
.footer-col a:hover { color: var(--color-accent-light); }
.footer-col .footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .logo-icon { color: var(--color-accent); font-size: 1.5rem; }
.footer-brand .logo-name { color: #fff; font-family: var(--font-heading); font-weight: 700; }

.footer-bottom {
    margin-top: 3rem; padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* --- Auth Pages --- */
.auth-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 2rem;
}
.auth-card {
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    padding: 3rem; width: 100%; max-width: 440px;
    box-shadow: var(--shadow-xl);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .logo { justify-content: center; margin-bottom: 1.5rem; }
.auth-header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--color-text-light); font-size: 0.9rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--color-text-light); }
.auth-footer a { display: block; margin-top: 0.5rem; }

/* --- Detail Pages (Shared) --- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.detail-row { display: flex; justify-content: space-between; align-items: start; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border-light); }
.detail-row:last-child { border: none; }
.detail-row-full { flex-direction: column; gap: 0.5rem; }
.detail-label { font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.price-lg { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -1.5rem; top: 3px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-border); border: 2px solid var(--color-bg-card);
}
.timeline-item.active .timeline-dot { background: var(--color-success); }
.timeline-item span { font-size: 0.9rem; font-weight: 500; }
.timeline-item small { display: block; font-size: 0.75rem; color: var(--color-text-muted); }

/* --- Quote Form Sections --- */
.quote-form-section {
    background: var(--color-bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light); padding: 2rem;
    margin-bottom: 1.5rem;
}
.quote-form-section h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.services-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem; }

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
}
.section-dark .section-label,
.page-hero .section-label { color: var(--color-accent-light); }

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    text-align: center; padding: 3rem 0; color: #fff;
}
.section-cta h2 { color: #fff; margin-bottom: 0.75rem; }
.section-cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--color-primary-dark); }

/* --- Service Card Link --- */
.service-card-link {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.85rem; font-weight: 600;
    color: var(--color-primary); transition: color var(--transition);
}
.service-card:hover .service-card-link { color: var(--color-accent); }

/* --- Steps (home page) --- */
.step { text-align: center; padding: 1rem; }
.step .step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
    margin: 0 auto 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--color-text-light); font-size: 0.9rem; }

/* --- Quote Form --- */
.form-section { margin-bottom: 2rem; }
.form-section h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.form-hint { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.category-selector { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.category-option { cursor: pointer; }
.category-option input { position: absolute; opacity: 0; pointer-events: none; }
.category-option-inner {
    display: block; padding: 0.85rem 1.5rem;
    border: 2px solid var(--color-border); border-radius: var(--radius-sm);
    transition: all var(--transition); text-align: center;
}
.category-option-inner strong { font-size: 0.9rem; }
.category-option input:checked + .category-option-inner {
    border-color: var(--cat-color, var(--color-primary));
    background: var(--cat-color, var(--color-primary));
    color: #fff;
}
.category-option:hover .category-option-inner {
    border-color: var(--color-primary-light);
}

.service-checklist { margin-bottom: 1.5rem; }
.service-checklist h4 { margin-bottom: 0.75rem; font-size: 1rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.5rem; }
.checkbox-card { cursor: pointer; }
.checkbox-card input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-card-inner {
    display: block; padding: 0.85rem 1.25rem;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.checkbox-card-inner strong { display: block; font-size: 0.9rem; }
.checkbox-card-inner small { color: var(--color-text-muted); font-size: 0.8rem; }
.checkbox-card input:checked + .checkbox-card-inner {
    border-color: var(--color-primary); background: rgba(26,58,92,0.05);
}

/* --- Vacation Package (standalone) --- */
.vacation-package {
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    padding: 3rem; border: 2px solid var(--color-accent);
    margin-top: 3rem; text-align: center;
}
.vacation-content h2 { margin-bottom: 0.75rem; }
.vacation-content p { color: var(--color-text-light); margin-bottom: 0.75rem; }
.vacation-price { font-size: 1.1rem; margin-bottom: 1.25rem; }
.vacation-price strong { color: var(--color-primary); font-size: 1.3rem; }

/* --- FAQ Section (packages page) --- */
.faq-section { margin-top: 4rem; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { margin-bottom: 0; }
.faq-item summary { font-size: 0.95rem; }
.faq-item p { padding: 0 1.5rem 1rem; color: var(--color-text-light); font-size: 0.9rem; }

/* --- Testimonials (home page extras) --- */
.testimonial-content { font-style: italic; color: var(--color-text-light); margin-bottom: 0.75rem; padding-top: 1.25rem; font-size: 0.9rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author small { color: var(--color-text-muted); font-size: 0.8rem; }

/* --- FAQ --- */
.faq-section details {
    background: var(--color-bg-card); border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 0.75rem;
}
.faq-section summary {
    padding: 1rem 1.5rem; cursor: pointer; font-weight: 600;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-section summary::after { content: '+'; font-size: 1.25rem; color: var(--color-accent); transition: var(--transition); }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details .faq-answer { padding: 0 1.5rem 1rem; color: var(--color-text-light); font-size: 0.9rem; }

/* --- Vacation Package --- */
.vacation-section { background: var(--color-bg-card); border-radius: var(--radius-lg); padding: 3rem; border: 2px solid var(--color-accent); text-align: center; }
.vacation-section h2 { margin-bottom: 0.75rem; }
.vacation-section .vacation-features { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.5rem 0; }
.vacation-section .vacation-features span { background: var(--color-bg-alt); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; }

/* --- Thank You / Status --- */
.status-page, .thank-you-page { max-width: 600px; margin: 3rem auto; padding: 0 1.5rem; }
.status-card, .thank-you-card {
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    padding: 3rem; text-align: center; border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
}
.success-icon { font-size: 3rem; margin-bottom: 1rem; }

/* --- 404 --- */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page h1 { font-size: 6rem; color: var(--color-accent); margin-bottom: 1rem; }
.error-page p { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 2rem; }

/* --- Empty States --- */
.empty-state, .empty-state-lg { text-align: center; padding: 2rem; color: var(--color-text-muted); }
.empty-state-lg { padding: 4rem 2rem; }
.empty-state-lg svg { margin-bottom: 1rem; color: var(--color-border); }
.empty-state-lg h3 { margin-bottom: 0.5rem; color: var(--color-text-light); }
.empty-state-lg p { margin-bottom: 1.5rem; }

/* --- Lists --- */
.list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}
.list-item:last-child { border: none; }
.list-item div { display: flex; flex-direction: column; gap: 0.15rem; }

/* --- Properties (Client) --- */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.property-card-sm { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border-light); }
.property-card-sm:last-child { border: none; }
.property-card-sm strong { display: block; }
.property-card-sm span { font-size: 0.85rem; color: var(--color-text-light); }
.property-address { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.property-specs { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.property-notes { font-size: 0.85rem; color: var(--color-text-light); font-style: italic; }

/* --- Profile (Client) --- */
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* --- Filters Bar --- */
.filters-bar { margin-bottom: 2rem; }
.filters-form {
    display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
}
.filters-form .form-control { max-width: 250px; padding: 0.5rem 0.75rem; font-size: 0.85rem; }

/* --- Messages --- */
.messages-container { display: flex; flex-direction: column; gap: 1rem; }
.message-card {
    background: var(--color-bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light); padding: 1.5rem;
    transition: var(--transition);
}
.message-card.unread { border-left: 4px solid var(--color-primary); background: #fafbff; }
.message-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.message-sender { display: flex; align-items: center; gap: 0.75rem; }
.message-sender strong { font-size: 1rem; }
.message-sender a { font-size: 0.85rem; color: var(--color-text-light); }
.message-date { font-size: 0.8rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 0.5rem; }
.message-subject { font-weight: 600; margin-bottom: 0.5rem; }
.message-body { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.6; }
.message-preview { color: var(--color-text-muted); font-size: 0.85rem; }
.message-actions { margin-top: 1rem; }

.messages-list { display: flex; flex-direction: column; }
.message-item { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border-light); }
.message-item:last-child { border: none; }
.message-item.unread .message-subject { font-weight: 700; }
.message-meta { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.15rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { order: -1; }
    .service-detail { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .category-nav-grid { grid-template-columns: repeat(4, 1fr); }
    .hero { min-height: 400px; padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.75rem; }
    .hero-trust { gap: 1.5rem; }
}

/* --- Low-resolution screens (≤860px wide, covers 800×600) --- */
@media (max-width: 860px) {
    :root { --header-height: 68px; }

    h1 { font-size: 2.15rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }

    .container { padding: 0 1rem; }

    /* Header compact */
    .logo-name { font-size: 1rem; }
    .logo-icon { font-size: 1.5rem; }
    .nav-main a { padding: 0.4rem 0.65rem; font-size: 0.82rem; }

    /* Hero tighter */
    .hero { padding: 3rem 0 2.5rem; min-height: auto; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-badge { font-size: 0.7rem; margin-bottom: 0.75rem; }
    .hero-trust { gap: 1rem; }
    .trust-item strong { font-size: 1.2rem; }
    .trust-item span { font-size: 0.72rem; }

    /* Sections less padding */
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 1.5rem; }
    .page-hero { padding: 2.5rem 0; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero-sm { padding: 2rem 0; }

    /* Category nav 4→3 cols */
    .category-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .category-nav-img { height: 60px; }
    .category-nav-info h3 { font-size: 0.7rem; }

    /* Services grid smaller min */
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    /* Steps grid */
    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .step-card p, .step p { font-size: 0.8rem; }

    /* Packages */
    .packages-grid { gap: 1rem; }
    .package-card { padding: 1.5rem 1rem; }
    .package-features li { font-size: 0.82rem; padding: 0.4rem 0; padding-left: 1.25rem; }

    /* Footer compact */
    .footer-grid { gap: 2rem; }
    .site-footer { padding: 3rem 0 0; }

    /* CTA */
    .cta-section { padding: 3rem 0; }
    .section-cta { padding: 2.5rem 0; }
    .section-cta p { font-size: 1rem; }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    /* Detail grid sidebar smaller */
    .service-detail-grid { grid-template-columns: 1fr 280px; gap: 2rem; }

    /* Contact grid */
    .contact-grid { gap: 2rem; }

    /* Quote form */
    .quote-form-section { padding: 1.5rem; }
    .services-checklist { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* --- Short screens (≤650px height, covers 800×600) --- */
@media (max-height: 650px) {
    :root { --header-height: 56px; }

    .hero { padding: 1.5rem 0 1.25rem; min-height: auto; }
    .hero h1 { font-size: 1.85rem; margin-bottom: 0.5rem; }
    .hero-badge { margin-bottom: 0.5rem; padding: 0.25rem 0.75rem; font-size: 0.68rem; }
    .hero-subtitle { font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.45; }
    .hero-actions { margin-bottom: 1rem; gap: 0.75rem; }
    .hero-actions .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
    .hero-trust { gap: 1rem; padding-top: 0.75rem; }
    .trust-item strong { font-size: 1rem; }
    .trust-item span { font-size: 0.68rem; }

    .section { padding: 1.75rem 0; }
    .section-header { margin-bottom: 1rem; }
    .page-hero { padding: 1.5rem 0; }
    .page-hero h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
    .page-hero p { font-size: 0.9rem; }
    .page-hero-sm { padding: 1.25rem 0; }

    .site-footer { padding: 2rem 0 0; }
    .footer-bottom { margin-top: 1.5rem; padding: 1rem; }

    .cta-section { padding: 2rem 0; }
    .section-cta { padding: 1.5rem 0; }
    .auth-card { padding: 2rem 1.5rem; }
    .auth-header { margin-bottom: 1.25rem; }

    /* Compact cards */
    .card-body { padding: 1rem; }
    .card-header { padding: 0.85rem 1rem; }
}

/* --- Combined: small resolution (≤860px wide AND ≤650px tall) --- */
@media (max-width: 860px) and (max-height: 650px) {
    .hero::after { height: 60px; }
    .hero-content { padding: 0 1rem; }
    .hero h1 { font-size: 1.75rem; line-height: 1.2; }
    .hero h1 br { display: none; }
    .hero-subtitle { max-width: 480px; }
    .hero-actions .btn-lg { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

    .steps-grid { gap: 0.75rem; }
    .step-number { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 0.5rem; }
    .step h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }

    .section-header h2 { font-size: 1.3rem; }
    .section-header p { font-size: 0.88rem; }

    .service-card { padding: 1rem 0.85rem; }
    .service-card-icon { width: 42px; height: 42px; margin-bottom: 0.65rem; }
    .service-card h3 { font-size: 0.95rem; }
    .service-card p { font-size: 0.8rem; margin-bottom: 0.5rem; }

    .testimonial-card { padding: 1rem; }
    .testimonial-text { font-size: 0.82rem; padding-top: 1rem; }

    .vacation-package, .vacation-section { padding: 1.5rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .container { padding: 0 1.25rem; }

    .nav-main { display: none; }
    .hamburger { display: flex; }
    .header-actions .btn { display: none; }

    /* Mobile nav */
    .nav-main.open {
        display: flex; flex-direction: column;
        position: absolute; top: var(--header-height); left: 0; right: 0;
        background: #fff; padding: 1rem; border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg); z-index: 999;
    }
    .nav-main.open a {
        padding: 0.75rem 1rem; border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    /* Hero tablet */
    .hero { padding: 4rem 0 3rem; min-height: auto; }
    .hero-content { padding: 0 1.25rem; }
    .hero h1 { font-size: 2.25rem; max-width: 100%; }
    .hero-subtitle { font-size: 1rem; max-width: 100%; }
    .hero-actions { margin-bottom: 2.5rem; }
    .hero-trust { gap: 1.5rem; padding-top: 1.5rem; }
    .trust-item strong { font-size: 1.25rem; }
    .trust-item span { font-size: 0.75rem; }

    /* Grids to single column */
    .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .package-card.package-featured { transform: none; }
    .package-card { padding: 1.5rem 1.25rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .properties-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }

    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 1.5rem; }
    .section-header p { font-size: 0.95rem; }
    .page-hero { padding: 2.5rem 0; }
    .page-hero h1 { font-size: 1.75rem; }

    /* Tables scroll */
    .table th, .table td { padding: 0.6rem 0.75rem; font-size: 0.8rem; }

    /* Cards */
    .card-body { padding: 1.25rem; }
    .card-header { padding: 1rem 1.25rem; }

    /* Footer mobile */
    .site-footer { padding: 3rem 0 0; }
    .footer-bottom { margin-top: 2rem; }

    /* CTA section */
    .cta-section { padding: 3rem 0; }
    .cta-section h2 { font-size: 1.5rem; }

    /* Vacation package */
    .vacation-package { padding: 2rem 1.25rem; }
    .vacation-section { padding: 2rem; }

    /* FAQ */
    .faq-section summary { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
    .faq-section details .faq-answer { padding: 0 1.25rem 0.85rem; }

    /* Quote form */
    .category-selector { flex-direction: column; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }

    /* Detail pages */
    .detail-row { flex-direction: column; gap: 0.25rem; }

    /* Messages */
    .message-header { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero-badge { font-size: 0.7rem; padding: 0.35rem 1rem; margin-bottom: 1.25rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
    .hero-actions { flex-direction: column; margin-bottom: 2rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 1rem; padding-top: 1.25rem; }
    .trust-item { flex-direction: row; align-items: center; gap: 0.75rem; }
    .trust-item strong { font-size: 1.1rem; min-width: 48px; text-align: center; }

    .auth-card { padding: 2rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .filters-form { flex-direction: column; }
    .filters-form .form-control { max-width: 100%; }

    .btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
    .section-header h2 { font-size: 1.35rem; }

    .package-price { font-size: 2rem; }
    .package-features li { font-size: 0.85rem; }

    .service-card { padding: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
}

/* ===== HOURLY RATE SYSTEM ===== */

/* --- Services Search Bar --- */
.services-search {
    position: relative;
    max-width: 520px;
    margin: 1.5rem auto 0;
}
.services-search input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition);
    outline: none;
}
.services-search input::placeholder {
    color: rgba(255,255,255,0.5);
}
.services-search input:focus {
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(200,169,110,0.15);
}
.services-search .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}
.search-clear {
    display: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.search-clear:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* --- Category Navigation Cards --- */
.category-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}
.category-nav-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.category-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--cat-color, var(--color-accent));
}
.category-nav-img {
    width: 100%;
    height: 72px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
}
.category-nav-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}
.category-nav-info {
    padding: 0.4rem 0.6rem 0.5rem;
    text-align: center;
}
.category-nav-info h3 {
    font-size: 0.72rem;
    margin: 0;
    line-height: 1.25;
    color: var(--color-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-nav-rate {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* --- Service Section (listing) --- */
.service-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px;
}
.service-section:last-child {
    margin-bottom: 0;
}
.service-section-header {
    padding: 1rem 1.25rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}
.service-section-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.service-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.service-section-thumb {
    width: 60px;
    height: 38px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.service-section-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}
.service-section-header p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

/* --- Service Item Row --- */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition);
}
.service-item:last-child {
    border-bottom: none;
}
.service-item:hover {
    background: var(--color-bg-alt);
}
.service-item-info {
    flex: 1;
    min-width: 0;
}
.service-item-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    margin-bottom: 0.1rem;
}
.service-item-info p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
}
.service-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.service-item-price {
    text-align: right;
}
.price-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    display: block;
}
.price-unit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.price-quote {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    font-style: italic;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 1rem;
}
.no-results a {
    color: var(--color-accent-dark);
    font-weight: 600;
}

/* --- Service Detail Grid --- */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}
.service-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sidebar-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: 1.5rem;
}
.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.sidebar-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}
.sidebar-card-dark {
    background: var(--color-bg-dark);
    border-color: transparent;
    color: #fff;
}
.sidebar-card-dark h4 {
    color: #fff;
}
.sidebar-card-dark p {
    color: rgba(255,255,255,0.7);
}
.check-list li {
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.back-link:hover {
    color: #fff;
}

/* Rate banner on service detail page */
.rate-banner {
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.rate-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.rate-info {
    display: flex;
    flex-direction: column;
}
.rate-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}
.rate-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.rate-value small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
}
.rate-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.rate-details strong {
    color: var(--primary);
}
.rate-surcharges {
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}
.rate-surcharges small {
    font-size: 0.8rem;
}

/* Rate badge on services listing */
.rate-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}
.rate-badge small {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Estimate card on quote form */
.estimate-card {
    background: linear-gradient(135deg, #1a3a5c08, #c8a96e08);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
}
.estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.estimate-row:last-of-type {
    border-bottom: none;
}
.estimate-total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--accent);
    border-bottom: none;
    font-size: 1.15rem;
}
.estimate-total strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
}
.estimate-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Labor rates reference table */
.rates-reference {
    margin-top: 2rem;
}
.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.rates-table th,
.rates-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.rates-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rates-table tr:hover td {
    background: var(--bg);
}
.rates-table .rate-cell {
    font-weight: 600;
    color: var(--primary);
}
.rates-table .min-cell {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Surcharge info box */
.surcharge-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.surcharge-info h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #856404;
}
.surcharge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.surcharge-item {
    text-align: center;
}
.surcharge-item strong {
    display: block;
    font-size: 1.1rem;
    color: #856404;
}
.surcharge-item small {
    color: #856404;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .rate-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .surcharge-grid {
        grid-template-columns: 1fr;
    }
    .rate-badge {
        flex-direction: row;
        gap: 0.5rem;
    }
    .category-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .category-nav-img {
        height: 56px;
    }
    .category-nav-info {
        padding: 0.35rem 0.5rem;
    }
    .category-nav-info h3 {
        font-size: 0.7rem;
    }
    .service-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .service-section-thumb {
        display: none;
    }
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .service-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-sidebar {
        order: -1;
    }
    .services-search {
        margin-top: 1rem;
    }
    .services-search input {
        font-size: 0.85rem;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
}
