:root {
    --ink: #211b19;
    --ink-soft: #332925;
    --wine: #7c1723;
    --wine-dark: #571019;
    --gold: #efb828;
    --gold-soft: #f5cf6d;
    --cream: #f5efe5;
    --sand: #e8d9c7;
    --paper: #fffdf9;
    --white: #ffffff;
    --muted: #746a64;
    --line: rgba(33, 27, 25, 0.16);
    --content-width: 1180px;
    --shadow: 0 24px 70px rgba(33, 27, 25, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.dialog-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.02;
}

h2 {
    margin-bottom: 30px;
    font-size: clamp(2.7rem, 6vw, 5rem);
    letter-spacing: -0.045em;
}

.content-width {
    width: min(calc(100% - 48px), var(--content-width));
    margin-inline: auto;
}

.section {
    padding-block: clamp(80px, 10vw, 140px);
}

.section-kicker {
    margin-bottom: 20px;
    color: var(--wine);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.accent-text {
    color: var(--wine);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    color: var(--white);
    background: var(--wine);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner {
    display: flex;
    width: min(calc(100% - 48px), 1320px);
    min-height: 94px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.site-logo img {
    width: 185px;
    max-height: 68px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 38px);
}

.primary-navigation a {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-navigation a:not(.header-phone):hover {
    color: var(--gold);
}

.header-phone {
    padding: 11px 18px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
}

.nav-toggle {
    display: none;
    padding: 8px 0;
    color: var(--white);
    background: transparent;
    border: 0;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.hero {
    position: relative;
    display: grid;
    min-height: 790px;
    color: var(--white);
    background: var(--ink) url('/assets/hero.jpg') center center / cover no-repeat;
    align-items: center;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 12, 10, 0.96) 0%, rgba(17, 12, 10, 0.72) 48%, rgba(17, 12, 10, 0.08) 82%),
        linear-gradient(0deg, rgba(17, 12, 10, 0.4), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 110px;
}

.hero .section-kicker {
    color: var(--gold);
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2.9rem, 6vw, 5.4rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.95;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    white-space: nowrap;
}

.hero .accent-text {
    margin-top: 10px;
    color: var(--gold);
    font-size: 0.88em;
}

.hero-introduction {
    max-width: 660px;
    margin-bottom: 32px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 13px 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button-primary {
    color: var(--white);
    background: var(--wine);
}

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

.button-outline {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
}

.button-gold {
    color: var(--ink);
    background: var(--gold-soft);
}

.promise-strip {
    color: var(--white);
    background: var(--wine);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.promise-item {
    display: flex;
    min-height: 132px;
    padding: 28px 24px;
    align-items: center;
    gap: 17px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.promise-item:last-child {
    border-right: 0;
}

.promise-icon {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-style: italic;
}

.promise-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.85rem;
    line-height: 1.4;
}

.promise-item strong {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
}

.welcome-section {
    background: var(--paper);
}

.welcome-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    gap: clamp(50px, 9vw, 130px);
    align-items: start;
}

.section-heading {
    position: sticky;
    top: 40px;
}

.welcome-copy {
    color: var(--muted);
}

.large-copy {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.45;
}

.feature-list {
    display: grid;
    margin: 42px 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.feature-list li {
    position: relative;
    padding: 16px 0 16px 32px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
}

.feature-list li::before {
    position: absolute;
    left: 0;
    color: var(--wine);
    content: "✦";
}

.pet-note {
    padding: 24px 28px;
    color: var(--ink);
    background: var(--cream);
    border-left: 4px solid var(--gold);
    font-weight: 700;
}

.gallery-section {
    color: var(--white);
    background: var(--ink);
}

.gallery-section .section-kicker {
    color: var(--gold);
}

.gallery-section .accent-text {
    color: var(--gold);
}

.gallery-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 60px;
}

.gallery-heading > p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.66);
}

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

.gallery-card {
    margin: 0;
}

.gallery-card:nth-child(5n + 1) {
    grid-column: span 2;
}

.gallery-button {
    position: relative;
    display: block;
    width: 100%;
    height: 330px;
    padding: 0;
    overflow: hidden;
    color: var(--white);
    background: var(--ink-soft);
    border: 0;
    cursor: zoom-in;
}

.gallery-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.gallery-button:hover img {
    filter: brightness(0.75);
    transform: scale(1.035);
}

.gallery-number,
.gallery-open {
    position: absolute;
    z-index: 1;
}

.gallery-number {
    bottom: 18px;
    left: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.gallery-open {
    top: 18px;
    right: 20px;
    display: grid;
    width: 38px;
    height: 38px;
    background: var(--wine);
    border-radius: 50%;
    place-items: center;
}

.location-section {
    padding-block: clamp(80px, 10vw, 130px);
    color: var(--white);
    background:
        radial-gradient(circle at 92% 12%, rgba(239, 184, 40, 0.12), transparent 30%),
        #55252a;
}

.location-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.location-card .section-kicker {
    color: var(--gold);
}

.location-card h2 {
    max-width: 780px;
}

.location-copy {
    max-width: 850px;
    margin: 42px 0;
    color: rgba(255, 255, 255, 0.75);
}

.location-copy strong {
    color: var(--gold-soft);
}

.location-number {
    position: absolute;
    top: 60px;
    right: 70px;
    color: rgba(239, 184, 40, 0.55);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
}

.contact-section {
    background: var(--paper);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 10vw, 140px);
    align-items: center;
}

.contact-introduction {
    max-width: 540px;
    color: var(--muted);
    font-size: 1.1rem;
}

.contact-details {
    display: grid;
    border-top: 1px solid var(--line);
    font-style: normal;
}

.contact-details a,
.contact-details div {
    display: flex;
    padding: 22px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.contact-details span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-details a:hover strong {
    color: var(--wine);
}

.site-footer {
    padding-block: 50px;
    color: rgba(255, 255, 255, 0.7);
    background: var(--ink);
    font-size: 0.84rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.5fr auto;
    gap: 30px;
    align-items: center;
}

.footer-inner img {
    width: 170px;
    max-height: 60px;
    object-fit: contain;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

dialog {
    width: min(calc(100% - 32px), 700px);
    max-height: calc(100vh - 32px);
    padding: clamp(30px, 6vw, 62px);
    overflow: auto;
    color: var(--ink);
    background: var(--paper);
    border: 0;
    box-shadow: var(--shadow);
}

dialog::backdrop {
    background: rgba(20, 14, 12, 0.86);
    backdrop-filter: blur(5px);
}

.dialog-close {
    position: absolute;
    top: 14px;
    right: 18px;
    padding: 4px 10px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.contact-dialog h2 {
    font-size: clamp(2.5rem, 7vw, 4.2rem);
}

.contact-form {
    margin-top: 38px;
}

.contact-form label {
    display: block;
    margin-bottom: 22px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.admin-form input {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 2px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.admin-form input:focus {
    border-color: var(--wine);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.form-footer p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.form-status {
    min-height: 24px;
    margin: 22px 0 0;
    color: var(--wine);
    font-weight: 700;
}

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

.image-dialog {
    width: min(90vw, 1000px);
    max-width: 90vw;
    height: auto;
    max-height: 90vh;
    padding: 48px 18px 18px;
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.image-dialog img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 66px);
    object-fit: contain;
}

.image-dialog .dialog-close {
    top: 8px;
    right: 10px;
    color: var(--white);
}

/* Admin console */

.admin-body {
    background: var(--cream);
}

.admin-header {
    color: var(--white);
    background: var(--ink);
}

.admin-header-inner {
    display: flex;
    width: min(calc(100% - 40px), 1100px);
    min-height: 82px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.admin-brand,
.admin-navigation a {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.admin-navigation {
    display: flex;
    gap: 24px;
}

.admin-navigation a:hover,
.admin-navigation a[aria-current="page"] {
    color: var(--gold);
}

.admin-main {
    width: min(calc(100% - 40px), 1100px);
    margin-inline: auto;
    padding-block: 60px;
}

.admin-main h1 {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.admin-introduction {
    max-width: 720px;
    margin-bottom: 40px;
    color: var(--muted);
}

.admin-card {
    margin-bottom: 22px;
    padding: 28px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(33, 27, 25, 0.08);
}

.admin-form label {
    display: block;
    font-weight: 700;
}

.admin-form .button {
    margin-top: 20px;
}

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

.admin-gallery-card {
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(33, 27, 25, 0.08);
}

.admin-gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.admin-gallery-card footer {
    display: flex;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.delete-link {
    color: var(--wine);
    font-weight: 700;
}

.admin-gallery-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-gallery-actions form {
    margin: 0;
}

.order-link,
.delete-link {
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 0.78rem;
    text-decoration: underline;
    cursor: pointer;
}

.order-link {
    color: var(--ink);
    font-weight: 700;
}

.front-label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-message {
    padding: 12px 16px;
    background: #e4f1df;
    border-left: 4px solid #4b7e3e;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: 94px;
        right: 24px;
        display: none;
        width: min(320px, calc(100% - 48px));
        padding: 24px;
        align-items: stretch;
        flex-direction: column;
        background: var(--ink);
        box-shadow: var(--shadow);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .header-phone {
        text-align: center;
    }

    .promise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promise-item:nth-child(2) {
        border-right: 0;
    }

    .promise-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }

    .welcome-layout,
    .gallery-heading,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .section-heading {
        position: static;
    }

    .gallery-heading {
        gap: 10px;
    }

    .gallery-grid,
    .admin-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .content-width {
        width: min(calc(100% - 32px), var(--content-width));
    }

    .header-inner {
        width: calc(100% - 32px);
    }

    .site-logo img {
        width: 150px;
    }

    .hero {
        min-height: 720px;
        background-position: 62% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(17, 12, 10, 0.95), rgba(17, 12, 10, 0.45));
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11.5vw, 3.7rem);
    }

    .hero h1 span {
        white-space: normal;
    }

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

    .promise-item {
        min-height: 105px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }

    .gallery-card:nth-child(5n + 1) {
        grid-column: auto;
    }

    .gallery-button {
        height: 280px;
    }

    .location-number {
        top: 30px;
        right: 32px;
    }

    .contact-details a,
    .contact-details div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .form-footer,
    .admin-header-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header-inner {
        padding-block: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .admin-gallery-card footer,
    .admin-gallery-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
