:root {
    --wine: #660d18;
    --wine-deep: #441115;
    --wine-mid: #6e0d18;
    --wine-soft: #a51e2b;
    --rose: #bb5762;
    --cream: #f4efe9;
    --paper: #faf8f6;
    --ink: #1c1414;
    --muted: #5c5555;
    --line: #e4dcd6;
    --white: #fff;
    --header-h: 88px;
    --max: 1120px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    background: var(--white);
}

body::-webkit-scrollbar {
    width: 7px;
    background-color: #f5f5f5;
}

body::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(180deg, var(--wine-deep), var(--wine-soft), var(--wine-deep));
}

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max), calc(100% - 32px));
    margin-inline: auto;
    min-height: var(--header-h);
    padding: 8px 0;
}

.logo {
    height: 72px;
    width: auto;
    display: block;
}

.hamburger-menu {
    appearance: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 8px 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #555;
    border-radius: 2px;
    transition: transform 0.2s linear, opacity 0.2s linear, background-color 0.2s linear;
    transform-origin: center;
}

.hamburger-menu.is-open .bar1 {
    transform: translateY(10px) rotate(-45deg);
    background: var(--wine);
}

.hamburger-menu.is-open .bar2 {
    opacity: 0;
}

.hamburger-menu.is-open .bar3 {
    transform: translateY(-10px) rotate(45deg);
    background: var(--wine);
}

.nav-menu {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s linear;
    text-align: center;
    padding: 36px 24px 48px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--muted);
    overflow-y: auto;
}

.nav-menu.is-open {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

.menu-item {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
}

.menu-item a {
    color: inherit;
    text-decoration: none;
}

.menu-item a:hover {
    color: var(--wine-mid);
}

.menu-item .is-current {
    color: var(--wine-mid);
}

#section3,
#section4 {
    scroll-margin-top: var(--header-h);
}

#section1 {
    min-height: calc(100svh - var(--header-h));
    margin-top: var(--header-h);
    background:
        linear-gradient(90deg, rgba(28, 12, 14, 0.78) 0%, rgba(28, 12, 14, 0.45) 48%, rgba(28, 12, 14, 0.18) 100%),
        url("../img/section1.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    padding: 56px 0 64px;
    max-width: 640px;
    margin-left: max(20px, calc((100% - var(--max)) / 2));
    margin-right: auto;
}

.eyebrow {
    margin: 0 0 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

#section1 h1 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
}

#section1 p:not(.eyebrow) {
    margin: 0 0 28px;
    font-size: 1.05rem;
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    appearance: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: var(--wine-mid);
    border: 0;
    border-radius: 8px;
    padding: 14px 32px;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 13, 24, 0.28);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#section1 .btn {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 10px 32px rgba(102, 13, 24, 0.45),
        0 0 40px rgba(165, 30, 43, 0.35);
}

.btn:hover {
    background: var(--wine-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(102, 13, 24, 0.4);
}

#section1 .btn:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 14px 36px rgba(68, 17, 21, 0.5),
        0 0 56px rgba(165, 30, 43, 0.5);
}

.btn:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}

#separation-1-2 {
    background: var(--wine);
    color: var(--white);
    overflow: hidden;
}

.services-track {
    display: flex;
    width: 500%;
}

.service-item {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 132px;
    padding: 16px 20px;
}

.service-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: invert(100%) sepia(81%) saturate(21%) hue-rotate(214deg) brightness(105%) contrast(102%);
    flex-shrink: 0;
}

.service-item .service-label {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 14ch;
}

#section2 {
    padding: 72px 0 80px;
    text-align: center;
    background: var(--paper);
}

#section2 h2,
#section3 h2,
#section4 h2,
#cta h2 {
    margin: 0 0 20px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
}

#section2 p {
    margin: 0 auto 32px;
    max-width: 68ch;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: #2a2222;
}

#section3 {
    padding: 80px 0 88px;
    background: #eee;
    text-align: center;
}

#section3 h2 {
    color: var(--wine-soft);
    margin-bottom: 12px;
}

.section-lead {
    margin: 0 auto 40px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 1rem;
}

.cards {
    display: grid;
    gap: 24px;
}

#section3 figure {
    margin: 0;
    background: var(--wine);
    color: var(--white);
    border-radius: 24px;
    padding: 36px 28px 40px;
    text-align: center;
    min-height: 100%;
}

#section3 figure img {
    height: 64px;
    width: auto;
    filter: invert(100%) sepia(81%) saturate(21%) hue-rotate(214deg) brightness(105%) contrast(102%);
}

#section3 figure h3 {
    margin: 16px 0 12px;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

#section3 figure p {
    margin: 0 auto;
    max-width: 32ch;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

#section4 {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

.about-text {
    text-align: center;
}

.about-name {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--wine-deep);
}

.about-text p:last-child {
    margin: 0;
    color: #333;
}

#section4 figure {
    margin: 0 auto;
    width: min(320px, 100%);
    background: var(--wine);
    border-radius: 86px 0 0 0;
    overflow: hidden;
}

#section4 figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
}

#cta {
    background: var(--cream);
    color: var(--ink);
    padding: 80px 0 88px;
}

.cta-inner {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
}

#cta h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.15;
}

#cta h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin: 18px auto 0;
    background: var(--wine);
}

#cta p {
    margin: 0 auto 28px;
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.65;
}

.page-notice {
    min-height: calc(100svh - var(--header-h));
    margin-top: var(--header-h);
    display: flex;
    align-items: center;
    background: var(--paper);
    text-align: center;
}

.page-notice .container {
    max-width: 640px;
    padding: 72px 0;
}

.page-notice .eyebrow {
    margin: 0 0 12px;
    color: var(--wine);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-notice h1 {
    margin: 0 0 20px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 600;
    line-height: 1.15;
}

.page-notice p:not(.eyebrow) {
    margin: 0 auto 28px;
    max-width: 52ch;
    color: var(--muted);
    line-height: 1.65;
}

.cta-phone {
    margin: 36px auto 0;
    font-size: 0.95rem;
}

footer {
    background: var(--wine-deep);
    color: rgba(255, 255, 255, 0.88);
    padding: 36px 0 28px;
    text-align: center;
}

.footer-inner {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.footer-logo {
    height: 72px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-meta p {
    margin: 0 0 6px;
    font-size: 0.92rem;
}

.footer-meta a {
    color: inherit;
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

.footer-meta p:last-child {
    margin-bottom: 0;
    opacity: 0.75;
}

@media (min-width: 768px) {
    .container {
        width: min(var(--max), calc(100% - 64px));
    }

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

    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        text-align: left;
        gap: 48px;
    }

    .about-text {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    :root {
        --header-h: 96px;
    }

    .logo {
        height: 80px;
    }

    .hamburger-menu {
        display: none;
    }

    .nav-menu {
        position: static;
        inset: auto;
        width: auto;
        transform: none;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        overflow: visible;
        font-size: 1.05rem;
        background: transparent;
    }

    .menu-item {
        padding: 8px 12px;
        border: 0;
        cursor: default;
    }

    .menu-item a {
        cursor: pointer;
    }

    #section1 {
        min-height: 78vh;
        background-position: center 40%;
    }

    .hero-content {
        padding: 80px 0;
    }

    .services-track {
        width: 100%;
    }

    .service-item {
        flex: 1 1 0;
        min-height: 148px;
        gap: 8px;
    }

    .service-clone {
        display: none;
    }

    .service-item img {
        width: 88px;
        height: 88px;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #section3 figure {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    #section3 figure:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(68, 17, 21, 0.22);
    }

    footer {
        text-align: left;
    }

    .footer-inner {
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: center;
    }

    .footer-meta {
        justify-self: end;
        text-align: right;
    }
}

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

    .nav-menu,
    .hamburger-menu span,
    #section3 figure,
    .btn {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}
