:root {
    --bg: #f4f1ea;
    --surface: #ffffff;
    --surface-alt: #f8fafb;
    --text: #20303a;
    --muted: #5d6a71;
    --primary: #0f6d73;
    --primary-dark: #0a4f54;
    --accent: #d79a30;
    --border: #d8e0e3;
    --success: #2f7d40;
    --error: #b13f3f;
    --shadow: 0 20px 45px rgba(15, 43, 56, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(215, 154, 48, 0.18), transparent 26%),
        linear-gradient(180deg, #fbf8f2 0%, #f1f5f7 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto;
}

.site-header,
.main-nav,
.panel,
.site-footer,
.info-card,
.service-card {
    background: var(--surface);
    border: 1px solid rgba(216, 224, 227, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.site-header {
    padding: 28px 32px;
}

.site-kicker {
    margin: 0 0 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.site-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-title {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
}

.site-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 640px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
    padding: 16px;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--muted);
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: #ffffff;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.button-secondary {
    background: var(--accent);
    color: #1f2529;
}

.button-secondary:hover {
    background: #bf8626;
}

.button-danger {
    background: var(--error);
}

.button-small {
    padding: 9px 14px;
    font-size: 0.95rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

.panel {
    padding: 28px;
    margin-bottom: 24px;
}

.panel h1,
.panel h2,
.panel h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.panel p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
}

.hero-points {
    margin: 18px 0 24px;
    padding-left: 20px;
}

.hero-points li {
    margin-bottom: 8px;
    color: var(--text);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-grid,
.service-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.service-card {
    padding: 22px;
}

.service-card .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--primary-dark);
    background: var(--surface-alt);
}

tr:hover td {
    background: #fbfcfd;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-pending {
    background: #fff4d8;
    color: #8c6412;
}

.status-approved {
    background: #dff5e4;
    color: #256836;
}

.status-progress {
    background: #dbeefa;
    color: #165e82;
}

.status-complete {
    background: #e5f7ee;
    color: #1e7042;
}

.status-cancelled {
    background: #f8dfdf;
    color: #8a2626;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-row-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-dark);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    font: inherit;
    color: var(--text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(15, 109, 115, 0.15);
    border-color: var(--primary);
}

.alert {
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert-success {
    background: #e4f5e8;
    color: #256836;
}

.alert-error {
    background: #fae3e3;
    color: #8c2626;
}

.alert-info {
    background: #e4eff8;
    color: #195c7d;
}

.empty-state {
    margin: 0;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-alt);
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 28px;
    color: var(--muted);
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .hero-panel,
    .info-grid,
    .service-grid,
    .contact-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-heading,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        margin: 10px auto;
    }

    .site-header,
    .panel,
    .site-footer {
        padding: 20px;
    }

    .main-nav {
        padding: 12px;
    }
}