* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #05080c;
    color: #fff;
    font-family: "Century Gothic", sans-serif;
    font-weight: 300;
    letter-spacing: 0.4px;
}

#background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(0.55) contrast(1.08) saturate(1.5);
}

.page-shell, footer { position: relative; z-index: 1; }
.page-shell { min-height: 100vh; }

.header-nav {
    position: relative;
    z-index: 5;
    min-height: 150px;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255,255,255,.28);
    backdrop-filter: blur(8px);
    animation: slide-down .7s ease-out;
}

#logo_header { display: block; width: min(200px, 30vw); height: auto; border-radius: 18px; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 0; margin: 0; list-style: none; }
.nav a { color: #fff; text-decoration: none; transition: color .2s ease; }
.nav a[aria-current="page"] { color: #fff; }
.nav a:hover, .nav a:focus-visible { color: #b8e4e7; }
.services-menu { position: relative; }
.header-nav .nav > ul > .services-menu > .services-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 6;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    width: min(360px, calc(100vw - 32px));
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    background: rgba(8,20,31,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.header-nav .nav > ul > .services-menu:hover > .services-submenu,
.header-nav .nav > ul > .services-menu:focus-within > .services-submenu {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.nav .services-submenu li { width: 100%; }
.nav .services-submenu a {
    display: block;
    padding: 10px;
    border-radius: 7px;
    font-size: .82rem;
    line-height: 1.3;
    text-align: center;
}
.nav .services-submenu a:hover,
.nav .services-submenu a:focus-visible { background: rgba(184,228,231,.16); }

.reviews-main {
    width: min(1050px, calc(100% - 36px));
    margin: 0 auto;
    padding: 56px 0 86px;
    animation: fade-in .8s ease-out .15s both;
}

.intro { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.eyebrow { margin: 0 0 10px; color: #b8e4e7; font-size: .76rem; letter-spacing: 2.4px; text-transform: uppercase; }
.intro h1, .reviews-heading h2 { margin: 0; font-weight: 400; letter-spacing: 0; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.intro > p:last-child { margin: 14px auto 0; max-width: 620px; color: rgba(255,255,255,.82); line-height: 1.7; }

.review-form-panel, .review-card {
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 18px;
    background: rgba(8,20,31,.78);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}
.review-form-panel { padding: clamp(22px, 4vw, 38px); }
.review-form-panel h2 { margin: 0 0 25px; font-size: 1.35rem; font-weight: 400; letter-spacing: 0; }
.rating-fieldset { padding: 0; margin: 0 0 24px; border: 0; }
.rating-fieldset legend, .review-label { margin-bottom: 12px; color: rgba(255,255,255,.9); font-size: .95rem; }
.rating-options { display: flex; gap: 8px; }
.rating-choice { position: relative; display: inline-flex; cursor: pointer; }
.rating-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-choice > span:first-of-type { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.08); color: currentColor; opacity: .58; font-size: 1.8rem; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.rating-choice:hover > span:first-of-type { transform: translateY(-2px); }
.rating-choice:focus-within > span:first-of-type { outline: 3px solid #fff; outline-offset: 3px; }
.rating-choice.is-selected > span:first-of-type { background: rgba(255,255,255,.15); opacity: 1; box-shadow: 0 0 18px currentColor; }
.rating-1 { color: #ff5252; }.rating-2 { color: #ff9636; }.rating-3 { color: #ffdb45; }.rating-4 { color: #51d68a; }.rating-5 { color: #55a9ff; }
.rating-choice.is-selected > span:first-of-type { color: currentColor; }
.rating-hint { margin: 10px 0 0; color: rgba(255,255,255,.65); font-size: .82rem; }
.review-label { display: block; }
#review-text { display: block; width: 100%; min-height: 155px; resize: vertical; padding: 15px 16px; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; outline: none; background: rgba(0,0,0,.2); color: #fff; font: inherit; line-height: 1.65; }
#reviewer-name { display: block; width: 100%; margin: 0 0 20px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; outline: none; background: rgba(0,0,0,.2); color: #fff; font: inherit; }
#reviewer-name::placeholder { color: rgba(255,255,255,.48); }
#reviewer-name:focus { border-color: #b8e4e7; box-shadow: 0 0 0 3px rgba(184,228,231,.16); }
#review-text::placeholder { color: rgba(255,255,255,.48); }
#review-text:focus { border-color: #b8e4e7; box-shadow: 0 0 0 3px rgba(184,228,231,.16); }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; }
.privacy-note { margin: 0; color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.5; }
.primary-button { flex: 0 0 auto; padding: 13px 22px; border: 0; border-radius: 9px; background: #b8e4e7; color: #07151b; font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: #d3f4f4; }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 1.4em; margin: 12px 0 0; color: #b8e4e7; }
.form-message.is-error { color: #ff8e8e; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.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; }

.published-reviews { margin-top: 64px; }
.reviews-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.reviews-heading h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.reviews-summary { margin: 0; color: rgba(255,255,255,.76); text-align: right; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.review-card { padding: 22px; }
.review-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-stars { font-size: 1.25rem; letter-spacing: 2px; }
.review-stars.rating-1 { color: #ff5252; }.review-stars.rating-2 { color: #ff9636; }.review-stars.rating-3 { color: #ffdb45; }.review-stars.rating-4 { color: #51d68a; }.review-stars.rating-5 { color: #55a9ff; }
.review-date { color: rgba(255,255,255,.58); font-size: .78rem; }
.reviewer-name { display: block; margin-bottom: 8px; color: #b8e4e7; font-weight: 700; }
.modified-tag { display: inline-block; margin: 0 0 8px; padding: 4px 8px; border: 1px solid rgba(184,228,231,.45); border-radius: 99px; color: #b8e4e7; font-size: .68rem; font-weight: 700; letter-spacing: 1px; }
.review-text { margin: 0; color: rgba(255,255,255,.9); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.deleted-review-text { color: rgba(255,255,255,.65); font-weight: 700; letter-spacing: 1px; }
.company-response { margin-top: 18px; padding: 15px 16px; border-left: 3px solid #b8e4e7; border-radius: 0 10px 10px 0; background: rgba(184,228,231,.09); }
.company-response strong { color: #b8e4e7; font-size: .88rem; }
.company-response p { margin: 8px 0 0; color: rgba(255,255,255,.82); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.owner-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.owner-button { padding: 9px 13px; border: 1px solid rgba(184,228,231,.42); border-radius: 8px; background: rgba(184,228,231,.1); color: #d3f4f4; font: inherit; cursor: pointer; }
.owner-button:hover { background: rgba(184,228,231,.2); }
.owner-button:disabled { opacity: .6; cursor: wait; }
.owner-delete-button { border-color: rgba(255,142,142,.45); background: rgba(132,36,36,.2); color: #ffb0b0; }
.owner-edit-form { flex: 1 0 100%; display: grid; gap: 12px; margin-top: 8px; padding: 16px; border-radius: 10px; background: rgba(0,0,0,.2); }
.owner-edit-form[hidden] { display: none; }
.owner-edit-form label { display: grid; gap: 7px; color: rgba(255,255,255,.86); font-size: .88rem; }
.owner-edit-form input, .owner-edit-form select, .owner-edit-form textarea { width: 100%; padding: 11px 12px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(0,0,0,.25); color: #fff; font: inherit; }
.owner-edit-form select option { color: #111; }
.owner-edit-form textarea { resize: vertical; line-height: 1.6; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed rgba(255,255,255,.3); border-radius: 14px; color: rgba(255,255,255,.75); text-align: center; }

@media (max-width: 800px) {
    .header-nav { min-height: auto; flex-direction: column; padding: 20px 16px; }
    #logo_header { width: min(180px, 68vw); }
    .nav ul { gap: 12px 18px; }
    .reviews-main { padding-top: 38px; }
}
@media (max-width: 520px) {
    .form-footer, .reviews-heading { align-items: stretch; flex-direction: column; }
    .reviews-summary { text-align: left; }
    .primary-button { width: 100%; }
    .rating-choice > span:first-of-type { width: 43px; height: 43px; }
}
@keyframes slide-down { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
