/* Design tokens */
:root{
    --bg: #f3f6fb;
    --card: #ffffff;
    --muted: #667085;
    --text: #0f172a;
    --brand: #2563eb;
    --brand-600: #1d4ed8;
    --brand-50: #eff6ff;
    --ring: rgba(37, 99, 235, 0.35);
    --soft: #eef2f7;
    --shadow-sm: 0 2px 8px rgba(16,24,40,.06);
    --shadow-md: 0 12px 30px rgba(2,6,23,.12);
    --radius: 12px;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box }

html,body { height: 100% }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Quattrocento", serif;
    padding: 2.5rem 1rem 4rem;
}

img { display: block; max-width: 100% }

/* Fonts utility classes (kept) */
.oswald {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.quattrocento_regular {
    font-family: "Quattrocento", serif;
    font-weight: 400;
}

.quattrocento_bold {
    font-family:"Quattrocento", serif;
    font-weight: 700;
}

/* Card container */
.menu {
    width: min(1100px, 92vw);
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
}
@media (min-width: 720px) {
    .menu{ padding: 1.75rem }
}
@media (min-width: 1024px) {
    .menu{ padding: 2rem }
}

/* Headings */
h2 {
    margin: 0 0 0.75rem;
    letter-spacing: .2px;
}

.section-head { margin-top: 1.25rem }

/* Input styles */
.field {
    display: grid;
    gap: .5rem;
    margin: 1rem 0 1.25rem;
}

.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 520px;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right .875rem center / 1.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .875rem 2.75rem .875rem 1rem;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--ring);
}

/* Service list */
.services {
    margin-top: .75rem;
    display: grid;
    gap: .75rem;
}
@media (min-width: 720px) {
    .services{ gap: 1rem }
}

.service-item {
    background: var(--soft);
    border-radius: 10px;
    padding: .875rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #e7ecf3;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.service-item:hover {
    background: #f2f5fa;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.service-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
@media (max-width: 500px) {
    .service-left {
        flex-direction: column;
        text-align: center;
    }
}

.thumb {
    width: 120px;
    height: 96px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e6eaf1;
    background: #e9eef4;
}

.service-text h3 {
    margin: 0 0 .15rem;
    font-weight: 700;
}
.service-text h2 {
    margin: 0;
    font-size: 1.15rem;
}

.service-right {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
}
@media (max-width: 650px) {
    .service-right {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Buttons */
.btn {
    --btn-pad: .65rem .85rem;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: var(--btn-pad);
    cursor: pointer;
    font-weight: 700;
    transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-600); }

.btn-ghost {
    background: #fff;
    border-color: #e5e7eb;
}
.btn-ghost:hover {
    background: var(--brand-50);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.54);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2,6,23,.45);
    transform: translateY(4px);
    animation: slideUp .18s ease forwards;
}
@keyframes slideUp {
    to { transform: translateY(0); }
}

.modal__cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #e9eef4;
}

.modal__body { padding: 1.25rem 1.25rem 1.4rem; }
@media (min-width: 720px){
    .modal__body{ padding: 1.5rem 1.75rem 1.75rem; }
}

.modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}

.modal__title { margin: 0; }

.modal__price {
    margin: .25rem 0 .5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal__desc {
    color: #334155;
    line-height: 1.6;
    margin: .5rem 0 1rem;
}

.modal__meta {
    font-size: .975rem;
    color: #475569;
    margin: 0 0 1rem;
}

.modal__actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

.modal__close {
    background: transparent;
    border: none;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.modal__close:hover { color: #0f172a; }

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
