:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #192723;
    background: #fdfdfd;
    --green: #177a49;
    --quick-contact-size: 56px;
    --quick-contact-inset: clamp(12px, 1.75vw, 28px);
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-content {
    width: min(92%, 1600px);
    margin: 32px auto 0;
}

.hero {
    position: relative;
    padding-top: calc(100% * 5 / 12 - 30px);
    isolation: isolate;
    overflow: hidden;
    border-radius: 15px;
    background-color: #e9eeeb;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .55s ease;
}

.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide--wrapping { background: #f4f8ef; }

.hero-controls {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.hero:hover .hero-controls,
.hero:focus-within .hero-controls { opacity: 1; }

.hero-controls button {
    cursor: pointer;
    color: white;
    border: 0;
    background: rgb(12 40 27 / 75%);
    pointer-events: auto;
}

.hero-controls button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.hero-arrow,
.hero-playback {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.hero-arrow {
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    font: 28px/1 "Segoe UI", sans-serif;
}

.hero-arrow--prev { left: 12px; }
.hero-arrow--next { right: 12px; }

.hero-playback {
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    border-radius: 20px;
    padding: 2px;
    background: rgb(12 40 27 / 75%);
}

.hero-dots button {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: transparent;
}

.hero-dots button::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid white;
}

.hero-dots button[aria-current="true"]::after { background: white; }

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 38.04%);
    gap: clamp(24px, 3.25vw, 52px);
    align-items: start;
    margin-top: 40px;
}

.intro-copy {
    color: #293733;
    font-size: clamp(16px, 1.125vw, 18px);
    line-height: 1.67;
    text-align: justify;
}

.intro-copy p { margin: 0 0 18px; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-copy strong { color: var(--green); }

.intro-photo {
    /* Crop the vineyard photo out of the mockup without including its contact buttons. */
    aspect-ratio: 560 / 418;
    border-radius: 15px;
    background: #e9eeeb url("home-reference.jpg") 91.402% 67.801% / 301.887% 292.929% no-repeat;
    box-shadow: 0 15px 34px rgb(14 91 51 / 15%);
}

.home-products {
    margin: clamp(28px, 3.2vw, 48px) 0 44px;
    padding: clamp(26px, 3vw, 42px) 0;
    background: #eff5f0;
}

.home-products-inner { width: min(92%, 1080px); margin-inline: auto; }

.home-products-heading {
    margin-bottom: clamp(20px, 2.2vw, 32px);
    text-align: center;
}

.home-products-heading h2 {
    margin: 0 0 4px;
    color: var(--green);
    font-size: clamp(25px, 2.4vw, 30px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.home-products-all {
    display: inline-block;
    padding: 6px 8px;
    color: #35483e;
    font-size: 14px;
    font-weight: 650;
    text-transform: uppercase;
    text-underline-offset: 3px;
}

.home-products-all:hover { color: var(--green); text-decoration: underline; }

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.7vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-product-card {
    display: block;
    text-align: center;
}

.home-product-photo {
    overflow: hidden;
    aspect-ratio: 9 / 8;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgb(25 69 43 / 9%);
    transition: transform .28s ease, box-shadow .28s ease;
}

.home-product-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-product-photo[data-category="paper-box"] img { object-position: center 37%; }
.home-product-photo[data-category="paper-bag"] img { object-position: center 62%; }
.home-product-photo[data-category="paper-corner-protector"] img { object-position: center 43%; }

.home-product-title {
    display: block;
    margin-top: 9px;
    color: #192723;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: color .22s ease;
}

.home-product-card:focus-visible .home-product-photo {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgb(25 69 43 / 16%);
}

.home-product-card:focus-visible .home-product-title { color: var(--green); }

@media (hover: hover) and (pointer: fine) {
    .home-product-card:hover .home-product-photo {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgb(25 69 43 / 16%);
    }

    .home-product-card:hover .home-product-title { color: var(--green); }
}

.site-footer.home-footer { padding: 0 0 24px; border-top: 0; }

.home-footer-inner {
    display: grid;
    grid-template-columns: minmax(205px, 1fr) minmax(150px, .8fr) minmax(275px, 1.25fr) minmax(130px, .65fr);
    align-items: start;
    gap: clamp(18px, 2.8vw, 40px);
    width: min(92%, 1320px);
    margin: 0 auto 28px;
    color: #43594f;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.home-footer-inner h2 {
    margin: 0 0 12px;
    color: #192723;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.home-footer-inner ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-contact-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
    color: #000;
    font-weight: 600;
}

.home-contact-details :is(dt, dd) { margin: 0; }
.home-contact-details dd > a { display: block; }
.home-contact-details dd > a + a { margin-top: 6px; }
.home-footer-contact address { font-style: normal; }
.home-footer-inner nav ul { color: #000; font-weight: 600; }
.home-footer-inner a { overflow-wrap: anywhere; }
.home-footer-inner a:hover { color: var(--green); text-decoration: underline; }

.home-footer-inquiry h2 {
    font-size: 14px;
    line-height: 1.45;
    text-transform: uppercase;
}

.home-inquiry-form {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #ebedeb;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

.home-inquiry-form label { display: block; margin-bottom: 4px; color: #192723; font-weight: 600; }

.home-inquiry-form :is(input:not([type="hidden"]), textarea) {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #e1e8e3;
    border-radius: 4px;
    background: #fff;
    color: #192723;
    font: inherit;
}

.home-inquiry-form textarea { min-height: 88px; resize: vertical; }
.home-inquiry-code { display: flex; align-items: center; gap: 8px; }
.home-inquiry-code img { max-width: 45%; cursor: pointer; }

.home-inquiry-form button {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    min-height: 34px;
    padding: 7px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.home-inquiry-form button:hover { background: #12643d; }
.home-inquiry-form :focus-visible { outline-offset: 2px; }

.home-footer-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding-top: 9px;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.home-footer-brand .brand-mark { width: 72px; }
.home-footer > p {
    padding: 20px 16px 0;
    border-top: 1px solid #e1e8e3;
}

.quick-contact {
    position: fixed;
    z-index: 3;
    right: var(--quick-contact-inset);
    top: 40.5%;
    display: grid;
    gap: 16px;
}

.quick-contact a {
    display: grid;
    width: var(--quick-contact-size);
    height: var(--quick-contact-size);
    place-items: center;
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 20px rgb(17 97 48 / 21%);
}

.quick-contact a:hover { filter: brightness(.9); }
.contact-whatsapp { background-color: #1dce62; }
.contact-email { background-color: #106933; }

.whatsapp-icon {
    position: relative;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
    font: 17px/1 "Segoe UI Symbol", sans-serif;
}

.whatsapp-icon::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 7px;
    height: 7px;
    transform: skew(-12deg, -10deg);
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    background: #1dce62;
}

.email-icon {
    position: relative;
    width: 29px;
    height: 20px;
    border-radius: 2px;
    background: white;
}

.email-icon::after {
    content: "";
    position: absolute;
    inset: 3px 5px 5px;
    background: #106933;
    clip-path: polygon(0 0, 100% 0, 50% 58%, 100% 100%, 0 100%, 50% 58%);
}

@media (min-width: 801px) {
    .hero-arrow--next,
    .hero-playback {
        /* The centered carousel already has a gutter of at least 4% on each side. */
        right: max(12px, calc(var(--quick-contact-inset) + var(--quick-contact-size) + 8px - 4vw));
    }
}

@media (max-width: 1400px) {
    .hero-slide:not(.hero-slide--wrapping) img { object-position: center 10%; }
}

@media (max-width: 1000px) {
    .home-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .home-content { margin-top: 22px; }

    .hero-controls { opacity: 1; }
    .hero-dots { bottom: 6px; }
    .hero-playback { bottom: 6px; right: 6px; }
    .home-intro { margin-top: 26px; }

    .home-products { margin-bottom: 24px; }

    .quick-contact {
        position: static;
        width: min(92%, 1600px);
        margin: 0 auto 24px;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .quick-contact a {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 640px) {
    .home-intro { grid-template-columns: 1fr; }
    .intro-copy { text-align: left; }
    .home-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-footer-inner { grid-template-columns: minmax(0, 1fr); }
    .home-footer-brand { justify-self: center; }
}

@media (hover: none) {
    .hero-controls { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-controls,
    .home-product-photo, .home-product-title { transition: none; }
    .home-product-card:is(:hover, :focus-visible) .home-product-photo { transform: none; }
}
