:root {
    --ink: #2f2630;
    --muted: #6f6370;
    --berry: #9f285f;
    --berry-dark: #681b42;
    --blush: #fff1f7;
    --petal: #ffd7e8;
    --mint: #d7f2e8;
    --cream: #fffaf4;
    --gold: #c9963e;
    --line: #ecdbe4;
    --paper: #ffffff;
    --shadow: 0 18px 44px rgba(67, 36, 55, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 14px clamp(18px, 5vw, 70px);
    background: rgba(255, 250, 244, 0.92);
    border-bottom: 1px solid rgba(236, 219, 228, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--berry);
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-size: 0.9rem;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
}

.site-nav,
.admin-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a,
.admin-header nav a {
    min-height: 38px;
    padding: 8px 12px;
    color: var(--muted);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active,
.admin-header nav a:hover {
    color: var(--berry-dark);
    background: var(--blush);
}

.nav-admin {
    border: 1px solid var(--line);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    min-height: 72svh;
    display: flex;
    align-items: center;
    padding: clamp(64px, 10vw, 110px) clamp(18px, 6vw, 86px);
    background-image: linear-gradient(90deg, rgba(47, 38, 48, 0.76), rgba(47, 38, 48, 0.42) 47%, rgba(47, 38, 48, 0.12)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-inner {
    width: min(670px, 100%);
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.hero h1,
.page-hero h1,
.admin-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4.8rem, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    font-size: 1.15rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--berry);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.section-berry .eyebrow {
    color: var(--petal);
}

.hero-actions,
.contact-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--berry);
    box-shadow: 0 12px 24px rgba(159, 40, 95, 0.24);
}

.button-primary:hover {
    background: var(--berry-dark);
}

.button-secondary {
    color: var(--berry-dark);
    background: var(--mint);
    border-color: rgba(104, 27, 66, 0.12);
}

.button-light {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.42);
}

.button-google {
    color: var(--ink);
    background: #fff;
    border-color: #d9dce2;
    box-shadow: 0 10px 24px rgba(47, 38, 48, 0.1);
}

.button-google::before {
    content: "G";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    color: #fff;
    background: #4285f4;
    border-radius: 50%;
    font-weight: 900;
}

.button-danger {
    color: #fff;
    background: #9d2538;
}

.text-link {
    color: var(--berry-dark);
    font-weight: 800;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.section {
    padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 86px);
}

.section > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section h2,
.quote-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 3.2rem, 3.6rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading,
.intro-grid,
.split-section,
.contact-band,
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
}

.section-heading {
    margin-bottom: 26px;
}

.intro-copy {
    color: var(--muted);
    font-size: 1.08rem;
}

.section-tint {
    background: var(--blush);
}

.section-berry {
    color: #fff;
    background: var(--berry-dark);
}

.price-grid,
.gallery-grid,
.review-grid,
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.price-card,
.review-card,
.gallery-card,
.auth-card,
.admin-panel,
.empty-state,
.quote-summary,
.panel-form,
.quote-contact,
.quote-items fieldset,
.admin-item,
.admin-photo-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(67, 36, 55, 0.08);
}

.price-card,
.review-card,
.empty-state {
    padding: 22px;
}

.price-card span,
.status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    color: var(--berry-dark);
    background: var(--mint);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}

.locked-pill {
    display: inline-flex;
    width: fit-content;
    margin-left: 6px;
    padding: 4px 9px;
    color: #fff;
    background: var(--berry-dark);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}

.price-card h3,
.price-row h3,
.review-card h3,
.admin-item h3,
.add-form h3 {
    margin: 10px 0 6px;
    font-size: 1.08rem;
}

.price-card p,
.price-row p,
.review-card p,
.quote-summary p,
.admin-item p {
    color: var(--muted);
}

.price-card strong,
.price-row strong {
    display: inline-flex;
    margin-top: 10px;
    color: var(--berry-dark);
    font-size: 1.2rem;
}

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

.mini-gallery img,
.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.mini-gallery .wide {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
}

.review-card {
    color: var(--ink);
}

.review-card.light {
    box-shadow: none;
}

.review-grid.stacked {
    grid-template-columns: 1fr;
}

.review-empty {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
}

.contact-band {
    background: var(--mint);
}

.page-hero {
    padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 86px);
    background: var(--blush);
}

.page-hero.compact {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero > * {
    width: min(840px, 100%);
}

.page-hero p {
    color: var(--muted);
    font-size: 1.08rem;
}

.pricing-group {
    margin-bottom: 34px;
}

.pricing-group-title {
    margin-bottom: 16px;
}

.price-list {
    display: grid;
    gap: 12px;
}

.price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quote-cta {
    text-align: center;
    background: var(--mint);
}

.quote-cta p {
    max-width: 700px;
}

.gallery-card {
    overflow: hidden;
}

.gallery-card figcaption {
    padding: 13px 14px;
    color: var(--muted);
    font-weight: 700;
}

.empty-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 26px;
    align-items: center;
}

.empty-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.panel-form,
.quote-contact {
    padding: 24px;
}

.panel-form label,
.quote-contact label,
.auth-card label,
.admin-form label,
.price-admin-row label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

textarea {
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.quote-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 20px;
}

.quote-items {
    display: grid;
    gap: 16px;
}

.quote-items fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 18px;
}

.quote-items legend {
    padding: 0 8px;
    color: var(--berry-dark);
    font-weight: 900;
}

.quote-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.quote-option:hover {
    border-color: var(--line);
    background: var(--blush);
}

.quote-option input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.quote-option span {
    display: grid;
    gap: 2px;
}

.quote-option small {
    color: var(--muted);
    font-weight: 800;
}

.quote-summary {
    position: sticky;
    top: 94px;
    padding: 24px;
}

.quote-summary strong {
    display: block;
    color: var(--berry-dark);
    font-size: 3rem;
    line-height: 1;
}

.quote-picked {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(18px, 6vw, 86px);
    color: #fff;
    background: var(--ink);
}

.site-footer p {
    margin: 6px 0 0;
    color: #eadfe6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #fff;
    font-weight: 800;
}

.flash {
    width: min(1100px, calc(100% - 36px));
    margin: 18px auto;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.flash-success {
    color: #184331;
    background: var(--mint);
}

.flash-error {
    color: #7a132b;
    background: #ffe1e8;
}

.admin-body {
    background: #fff7fb;
}

.auth-wrap {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(470px, 100%);
    display: grid;
    gap: 16px;
    padding: 28px;
}

.inline-auth-form {
    display: grid;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.auth-card h1 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1;
}

.notice-box {
    padding: 15px;
    color: var(--muted);
    background: var(--blush);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.notice-box p {
    margin: 6px 0;
}

.notice-box code {
    display: block;
    padding: 8px;
    color: var(--ink);
    overflow-wrap: anywhere;
    background: #fff;
    border-radius: 8px;
}

.admin-shell {
    width: min(1240px, calc(100% - 36px));
    margin: 26px auto 70px;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 26px;
    border-radius: 8px;
    color: #fff;
    background: var(--berry-dark);
}

.admin-hero .eyebrow,
.admin-hero p {
    color: var(--petal);
}

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

.admin-stats span {
    padding: 14px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 8px;
}

.admin-stats strong {
    display: block;
    color: var(--berry-dark);
    font-size: 1.8rem;
}

.admin-tabs {
    position: sticky;
    top: 74px;
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    background: #fff7fb;
}

.admin-tabs a {
    white-space: nowrap;
    padding: 9px 12px;
    color: var(--berry-dark);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.admin-panel {
    margin: 22px 0;
    padding: 24px;
}

.panel-title {
    margin-bottom: 18px;
}

.panel-title h2 {
    margin: 0;
    font-size: 2rem;
}

.admin-form {
    display: grid;
    gap: 16px;
}

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

.logo-settings {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding: 16px;
    background: #fffafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.logo-preview {
    width: 86px;
    height: 86px;
    object-fit: contain;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.full-span,
.wide-label {
    grid-column: 1 / -1;
}

.check-row {
    display: flex !important;
    grid-template-columns: auto minmax(0, 1fr);
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.danger-check {
    color: #9d2538;
}

.price-admin-list {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.price-admin-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    background: #fffafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.upload-form {
    grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: end;
}

.admin-gallery-grid {
    margin-top: 18px;
}

.admin-photo-card {
    overflow: hidden;
}

.admin-photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.admin-photo-card p,
.admin-photo-card form {
    margin: 12px;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
}

.admin-item small {
    color: var(--gold);
    font-size: 0.92rem;
}

.quote-request ul {
    margin: 8px 0;
    padding-left: 20px;
}

.admin-users-form {
    margin-top: 18px;
}

.admin-user-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr);
    gap: 12px;
    align-items: end;
}

.admin-user-controls label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .price-grid,
    .gallery-grid,
    .review-grid,
    .admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading,
    .intro-grid,
    .split-section,
    .contact-band,
    .two-column,
    .quote-layout,
    .quote-form,
    .admin-hero,
    .empty-gallery {
        grid-template-columns: 1fr;
    }

    .quote-summary {
        position: static;
    }

    .price-admin-row,
    .grid-form,
    .add-form,
    .upload-form,
    .logo-settings,
    .admin-user-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header,
    .admin-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 74px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .hero {
        min-height: 68svh;
        padding-top: 76px;
        background-position: 63% center;
    }

    .hero h1,
    .page-hero h1,
    .admin-hero h1 {
        font-size: 2.45rem;
    }

    .section h2,
    .quote-cta h2 {
        font-size: 2rem;
    }

    .price-grid,
    .gallery-grid,
    .review-grid,
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .price-row,
    .admin-item {
        grid-template-columns: 1fr;
    }

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

    .footer-links,
    .admin-header nav {
        justify-content: flex-start;
    }
}
