/* LDNY Cleaning - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus styles */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

/* Value card styling */
.value-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-2px);
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

/* CTA banner gradient (subtle) */
.cta-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Image placeholder styling */
.img-placeholder {
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 0.875rem;
    overflow: hidden;
}

.img-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Form input styling */
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Select styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Checkbox styling */
.form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: #2563eb;
}

/* Label styling */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

/* Button base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
}

.btn-outline:hover {
    background-color: #eff6ff;
}

/* Hero section */
.hero-section {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

/* Section spacing */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* Checkmark list */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkmark-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: #334155;
}

.checkmark-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-list li::after {
    content: '✓';
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 700;
}

/* Pricing card */
.pricing-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 4rem);
}

.admin-app {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26rem),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: #0f172a;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 40;
}

.admin-sidebar-shell {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(20rem, 88vw);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0) 8rem),
        #0f172a;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.admin-sidebar-shell.is-open {
    transform: translateX(0);
}

.admin-sidebar-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-sidebar-close {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.5);
}

.admin-sidebar-nav {
    padding: 1rem;
    display: grid;
    gap: 0.4rem;
}

.admin-nav-link,
.admin-logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover,
.admin-logout-button:hover {
    background: rgba(51, 65, 85, 0.7);
    color: #fff;
    transform: translateX(2px);
}

.admin-nav-link.is-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(96, 165, 250, 0.16));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-logout-button {
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.admin-main {
    width: 100%;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: rgba(248, 251, 255, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-topbar-inner {
    max-width: 96rem;
    margin: 0 auto;
    padding: 1rem 1rem 1.15rem;
}

.admin-menu-button {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.55);
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-page-title {
    margin-top: 0.9rem;
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.admin-page-description {
    margin-top: 0.55rem;
    max-width: 44rem;
    color: #64748b;
    font-size: 0.96rem;
}

.admin-content {
    max-width: 96rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-metric-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(191, 219, 254, 0.7);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: 0 18px 48px -30px rgba(15, 23, 42, 0.3);
    padding: 1.25rem;
}

.admin-metric-card::after {
    content: '';
    position: absolute;
    inset: auto -1.5rem -2rem auto;
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.28), transparent 70%);
}

.admin-metric-label {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.admin-metric-value {
    margin-top: 0.45rem;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.admin-metric-footnote {
    margin-top: 0.85rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.admin-panel {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px -40px rgba(15, 23, 42, 0.4);
    overflow: hidden;
}

.admin-panel + .admin-panel {
    margin-top: 1.5rem;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-panel-description {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.88rem;
}

.admin-panel-body {
    padding: 1.25rem;
}

.admin-table-wrap {
    padding: 0.5rem 0.75rem 0.9rem;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-new {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-contacted {
    background-color: #fef3c7;
    color: #92400e;
}

.status-quoted {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-booked {
    background-color: #d1fae5;
    color: #065f46;
}

.status-closed {
    background-color: #f3f4f6;
    color: #374151;
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.2s ease;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.admin-table th {
    text-align: left;
    padding: 0 1rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background-color: transparent;
    border-bottom: 0;
}

.admin-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.admin-table tbody tr td:first-child {
    border-left: 1px solid #eef2f7;
    border-radius: 1rem 0 0 1rem;
}

.admin-table tbody tr td:last-child {
    border-right: 1px solid #eef2f7;
    border-radius: 0 1rem 1rem 0;
}

.admin-table tbody tr:hover td {
    background-color: #f8fbff;
    border-color: #dbeafe;
}

.admin-table-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.admin-table-primary {
    font-weight: 700;
    color: #0f172a;
}

.admin-table-secondary {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.8rem;
}

.admin-table-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.35rem 0.7rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-inline-select {
    min-width: 8.5rem;
    border-radius: 0.75rem;
    border: 1px solid #dbe4f0;
    background-color: #fff;
    padding: 0.55rem 2.1rem 0.55rem 0.8rem;
    font-size: 0.84rem;
    color: #334155;
}

.admin-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #fff;
    padding: 0.58rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    border: 0;
    box-shadow: 0 10px 20px -14px rgba(37, 99, 235, 0.8);
}

.admin-table-input {
    min-width: 0;
    padding: 0.65rem 0.8rem;
    font-size: 0.84rem;
    border-radius: 0.85rem;
    border-color: #dbe4f0;
    background: #f8fbff;
}

.admin-table-textarea {
    min-height: 7rem;
    resize: vertical;
    padding: 0.7rem 0.8rem;
    font-size: 0.84rem;
    border-radius: 0.95rem;
    border-color: #dbe4f0;
    background: #f8fbff;
}

.admin-empty-state {
    padding: 2.5rem 1.25rem 3rem;
    text-align: center;
    color: #64748b;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.admin-form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-form-section-note {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.88rem;
}

.admin-alert {
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.admin-alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.admin-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-muted-box {
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.95rem 1rem;
    color: #64748b;
    font-size: 0.88rem;
}

@media (min-width: 768px) {
    .admin-content,
    .admin-topbar-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .admin-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .admin-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-sidebar-overlay,
    .admin-sidebar-close,
    .admin-menu-button {
        display: none;
    }

    .admin-sidebar-shell {
        position: sticky;
        top: 0;
        transform: none;
        width: 18rem;
        min-width: 18rem;
        height: 100vh;
    }

    .admin-main {
        min-width: 0;
    }

    .admin-content {
        padding-top: 1.75rem;
    }
}

@media (max-width: 767px) {
    .admin-page-header {
        align-items: center;
    }

    .admin-page-title {
        font-size: 1.45rem;
    }

    .admin-panel-header {
        padding: 1rem 1rem 0.85rem;
    }

    .admin-panel-body {
        padding: 1rem;
    }

    .admin-table-wrap {
        padding: 0.6rem 0.6rem 0.9rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table {
        border-spacing: 0;
    }

    .admin-table tbody tr {
        margin-bottom: 0.9rem;
        border: 1px solid #e2e8f0;
        border-radius: 1.1rem;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 16px 36px -34px rgba(15, 23, 42, 0.5);
    }

    .admin-table td {
        border: 0;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0 !important;
        padding: 0.9rem 1rem;
        background: transparent;
    }

    .admin-table td:last-child {
        border-bottom: 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #94a3b8;
    }
}

/* Responsive iframe for map */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 0.75rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
