/* McFixes – responsive base */
:root {
    --color-bg: #faf9f6;
    --color-surface: #fff;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-accent: #2c5f2d;
    --color-accent-hover: #1e4620;
    --color-border: #e0ddd6;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;
    --space: 1rem;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --max-width: 960px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space) 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space);
    min-height: 96px;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-img {
    display: block;
    height: 96px;
    width: auto;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle::before {
    content: '';
    width: 1.1rem;
    height: 2px;
    background: var(--color-text);
    box-shadow: 0 -5px 0 var(--color-text), 0 5px 0 var(--color-text);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.main-nav a {
    color: var(--color-text);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(44, 95, 45, .1);
    color: var(--color-accent);
    text-decoration: none;
}

@media (max-width: 700px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; width: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; }
}

/* Main */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 1rem;
    color: var(--color-text);
}

.page-title-image {
    font-size: inherit;
}

.title-logo {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.lead {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
}

.section + .section { margin-top: 2.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.btn:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover { background: #ccc; color: var(--color-text); }

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 1.5rem 1.25rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.copyright { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.gallery-item {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item a:hover { text-decoration: none; }

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-item .caption {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Hearts n Halos: hover zoom + depth (lightbox unchanged) */
#gallery-hearts.gallery {
    perspective: 1200px;
    perspective-origin: 50% 40%;
    gap: 2rem;
}

#gallery-hearts .gallery-item-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
}

#gallery-hearts .gallery-item-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: inherit;
}

/* Note: do not require pointer: fine — Windows + touchscreen often reports
   coarse pointer and would skip all hover zoom rules. */
@media (hover: hover) {
    #gallery-hearts .gallery-item {
        overflow: visible;
        transform-style: preserve-3d;
        transition:
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #gallery-hearts .gallery-item:hover {
        z-index: 5;
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    }

    #gallery-hearts .gallery-item-media {
        overflow: visible;
    }

    #gallery-hearts .gallery-item-media img {
        transform: scale(1) translateZ(0);
        transform-origin: center center;
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

    #gallery-hearts .gallery-item:hover .gallery-item-media img {
        transform: scale(1.5) translateZ(72px);
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    #gallery-hearts .gallery-item,
    #gallery-hearts .gallery-item-media img {
        transition-duration: 0.01ms !important;
    }

    #gallery-hearts .gallery-item:hover {
        transform: none !important;
    }

    #gallery-hearts .gallery-item:hover .gallery-item-media img {
        transform: none !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: auto;
}

.lightbox.is-open { display: flex; flex-direction: column; }

.lightbox-content {
    max-width: 900px;
    width: 100%;
    margin: auto;
}

.lightbox img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
}

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lightbox-extended {
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* Placeholder image */
.placeholder-photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: var(--color-border);
    border: 2px dashed #999;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

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

.contact-form-intro {
    margin: 0 0 1rem;
}

.contact-direct {
    margin: 1.75rem 0 0;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.star-rating {
    display: inline-flex;
    flex-direction: row;
    gap: 0.15rem;
    align-items: center;
    font-size: 2rem;
    line-height: 1;
    user-select: none;
}

.star-rating .star {
    padding: 0.15rem 0.1rem;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #c5c0b8;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    transition: color 0.12s ease, transform 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}

.star-rating .star:hover {
    transform: scale(1.08);
}

.star-rating .star.is-filled {
    color: #b8860b;
}

.star-rating-clear {
    display: block;
    margin-top: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-accent);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.star-rating-clear:hover {
    color: var(--color-accent-hover);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }

.alert-error { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

.alert-info { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }

/* Reviews list */
.reviews-list { margin: 2rem 0; }

.review-card {
    background: var(--color-surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.review-card .author { font-weight: 600; margin-bottom: 0.25rem; }

.review-card .date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }

.review-card .content { margin: 0; }

/* Admin */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th { background: #f5f5f5; font-weight: 600; }

.admin-table img { max-width: 80px; height: auto; border-radius: 4px; }

.admin-table .actions { white-space: nowrap; }

.admin-table .actions a,
.admin-table .actions button {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.login-form {
    max-width: 320px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-form h1 { margin-top: 0; }

.form-actions { margin-top: 1.25rem; }

/* Order page */
.order-form-wrap {
    max-width: 520px;
    margin-top: 1rem;
}

.order-form .form-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-text);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-border);
}

.order-form .form-section-title:first-child { margin-top: 0; }

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

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group .required { color: var(--color-accent); }

.payment-intro {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.payment-options {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.payment-option input { margin: 0; }

.payment-placeholder-box,
.payment-info-box {
    background: rgba(44, 95, 45, .08);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.payment-info-box .payment-info-title,
.payment-placeholder-box .payment-info-title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.payment-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0.75rem 0 0;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
