* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #1b1712;
    background: #f5f0e4;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
}

@keyframes softPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.site-header {
    width: min(1180px, calc(100% - 48px));
    min-height: 68px;
    margin: 18px auto 0;
    padding: 12px 30px;
    position: relative;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: #fffdf5;
    box-shadow: 0 12px 30px rgba(42, 31, 20, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1b1712;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.logo-slots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-slot {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1.5px solid #d8c9ae;
    border-radius: 50%;
    color: #7d725f;
    background: #f5f0e4;
    font-size: 9px;
    line-height: 1;
    text-align: center;
}

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

.halal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
}

.halal-badge img {
    width: 52px;
    height: 52px;
    display: block;
    object-fit: cover;
    padding: 0;
    background: white;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #1b1712;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-menu a + a::before {
    content: "|";
    margin-right: 12px;
    color: #7d725f;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #7b4b24;
}

.hero {
    width: min(1180px, calc(100% - 48px));
    min-height: calc(100vh - 86px);
    margin: 0 auto;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(31, 23, 14, 0.18), rgba(31, 23, 14, 0.32)), url("images/kebunkopi2.jpg");
    background-size: cover;
    background-position: center;
}

.home-halal-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    margin-right: 0;
    animation: softPop 0.75s ease-out 0.24s both;
}

.home-halal-badge img {
    width: 82px;
    height: 82px;
    box-shadow: 0 12px 28px rgba(23, 15, 8, 0.22);
}

.hero-content {
    padding: 70px 20px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
    animation: softPop 0.8s ease-out both;
}

.hero p,
.section-kicker {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: 46px;
    line-height: 1.08;
}

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

.btn,
.product-card a,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #77471f;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-page {
    width: min(1180px, calc(100% - 48px));
    min-height: calc(100vh - 86px);
    margin: 0 auto;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 0.9fr 1.7fr;
    gap: 28px;
    align-items: stretch;
}

.gallery-heading {
    min-height: 420px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background-image: linear-gradient(rgba(36, 24, 14, 0.56), rgba(36, 24, 14, 0.48)), url("images/buahkopi6.jpg");
    background-size: cover;
    background-position: center;
    animation: softPop 0.75s ease-out both;
}

.gallery-heading h1 {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.08;
    text-transform: uppercase;
}

.gallery-heading p {
    font-size: 15px;
    line-height: 1.6;
}

.process-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(210px, 1fr);
    gap: 12px;
}

.process-card {
    min-height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fffdf5;
    box-shadow: 0 10px 24px rgba(45, 33, 21, 0.09);
    animation: softPop 0.7s ease-out both;
}

.process-card.featured {
    grid-row: auto;
}

.process-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.process-card img.active {
    opacity: 1;
}

.process-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 13, 8, 0.06), rgba(20, 13, 8, 0.78));
}

.process-card div {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 26px;
    z-index: 1;
    color: white;
}

.process-card span {
    display: inline-grid;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.process-card h2 {
    margin: 0 0 5px;
    font-size: 16px;
}

.process-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.process-card .card-dots {
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: auto;
}

.card-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(255, 253, 245, 0.48);
    cursor: pointer;
}

.card-dots button.active {
    width: 20px;
    border-radius: 999px;
    background: #fffdf5;
}

.process-slideshow {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 8px;
    background: #fffdf5;
    box-shadow: 0 16px 36px rgba(45, 33, 21, 0.12);
    animation: softPop 0.75s ease-out both;
}

.slides,
.slide {
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

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

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 15, 8, 0.02), rgba(24, 15, 8, 0.76));
}

.slide-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 34px;
    z-index: 1;
    max-width: 520px;
    color: white;
}

.slide-caption span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.slide-caption h2 {
    margin: 0 0 8px;
    font-size: 28px;
    text-transform: uppercase;
}

.slide-caption p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.slide-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: white;
    background: rgba(77, 45, 20, 0.68);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.slide-control:hover {
    background: #fffdf5;
    color: #1b1712;
}

.slide-control.prev {
    left: 18px;
}

.slide-control.next {
    right: 18px;
}

.slide-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.slide-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(255, 253, 245, 0.48);
    cursor: pointer;
}

.slide-dots button.active {
    width: 26px;
    border-radius: 999px;
    background: #fffdf5;
}

.btn.light {
    min-height: 42px;
    padding: 11px 24px;
    color: white;
    background: rgba(119, 71, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(24, 14, 8, 0.24);
}

.btn.light:hover {
    background: #fffdf5;
    color: #1b1712;
}

.btn.secondary {
    background: rgba(255, 253, 245, 0.86);
    color: #1b1712;
}

.btn.secondary:hover {
    background: #77471f;
    color: white;
}

.why-section {
    width: min(1180px, calc(100% - 48px));
    margin: 26px auto;
    padding: 34px 0 12px;
}

.why-heading {
    max-width: 620px;
    margin-bottom: 22px;
}

.why-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    text-transform: uppercase;
}

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

.why-grid article {
    padding: 22px;
    background: #fffdf5;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(45, 33, 21, 0.09);
    animation: softPop 0.7s ease-out both;
}

.why-grid span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    place-items: center;
    color: white;
    background: #6d421f;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.why-grid h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.why-grid p {
    margin: 0;
    color: #51483c;
    font-size: 13px;
    line-height: 1.5;
}

.garden-section,
.catalog-preview,
.catalog-page,
.process-section,
.contact-section {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
}

.garden-section h2,
.catalog-preview h2,
.process-section h2 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 30px;
    text-transform: uppercase;
}

.garden-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    animation: softPop 0.75s ease-out both;
}

.gallery-grid img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.gallery-grid .tall {
    height: 246px;
    grid-row: span 2;
}

.gallery-grid .wide {
    grid-column: span 2;
}

.garden-copy h2 {
    text-align: left;
}

.garden-copy {
    animation: softPop 0.75s ease-out 0.12s both;
}

.garden-copy p,
.page-intro p,
.contact-panel p {
    color: #3e352b;
    font-size: 14px;
    line-height: 1.55;
}

.catalog-preview {
    padding-top: 42px;
}

.catalog-preview .section-kicker,
.catalog-preview h2 {
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.catalog-page {
    padding-top: 10px;
}

.catalog-page .product-grid {
    max-width: 860px;
    margin: 0 auto;
}

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

.product-card {
    padding-bottom: 10px;
    text-align: center;
    background: #fffdf5;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(45, 33, 21, 0.09);
    overflow: hidden;
    animation: softPop 0.7s ease-out both;
}

.product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    display: block;
    background: #3a3a35;
}

.product-card h3 {
    margin: 8px 10px 3px;
    font-size: 13px;
}

.product-card p {
    min-height: 0;
    margin: 2px 10px;
    color: #51483c;
    font-size: 11px;
    line-height: 1.2;
}

.product-card .product-desc {
    margin-top: 6px;
    color: #746755;
    font-size: 10.5px;
    line-height: 1.35;
}

.product-card strong {
    display: block;
    margin: 5px 10px 6px;
    font-size: 12px;
}

.product-card a {
    min-height: 26px;
    margin: 0 10px;
    padding: 7px 10px;
    background: #6d421f;
    font-size: 10px;
}

.process-section {
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.process-grid article {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.process-grid span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: white;
    background: #6f4b2e;
    border-radius: 50%;
    font-weight: 800;
}

.process-grid h3 {
    margin: 0;
    font-size: 13px;
}

.page-intro {
    width: min(1180px, calc(100% - 48px));
    min-height: 170px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(28, 19, 12, 0.48), rgba(28, 19, 12, 0.44)), url("images/buahkopi4.jpg");
    background-size: cover;
    background-position: center;
    animation: softPop 0.75s ease-out both;
}

.page-intro h1 {
    margin: 0 0 12px;
    font-size: 38px;
    text-transform: uppercase;
}

.catalog-halal {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 7px 14px;
    color: #275432;
    background: rgba(239, 248, 237, 0.94);
    border: 1px solid #b8d6b8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-intro p {
    max-width: 720px;
    color: white;
}

.garden-intro {
    background-image: linear-gradient(rgba(28, 19, 12, 0.48), rgba(28, 19, 12, 0.44)), url("images/kebunkopi2.jpg");
}

.contact-intro {
    min-height: 230px;
}

.catalog-intro {
    min-height: 130px;
    padding: 18px 24px 16px;
}

.catalog-intro h1 {
    margin-bottom: 8px;
}

.catalog-intro p {
    margin: 0;
}

.catalog-intro .catalog-halal {
    margin-bottom: 6px;
}

.catalog-intro .btn {
    min-height: 34px;
    margin-top: 8px;
    padding: 8px 18px;
}

.contact-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-panel article {
    min-width: 0;
    padding: 22px;
    background: #fffdf5;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(45, 33, 21, 0.09);
    animation: softPop 0.7s ease-out both;
}

.contact-card-primary {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}

.process-card:nth-child(2),
.product-card:nth-child(2),
.contact-panel article:nth-child(2) {
    animation-delay: 0.08s;
}

.process-card:nth-child(3),
.product-card:nth-child(3),
.contact-panel article:nth-child(3) {
    animation-delay: 0.16s;
}

.process-card:nth-child(4),
.product-card:nth-child(4),
.contact-panel article:nth-child(4) {
    animation-delay: 0.24s;
}

.process-card:nth-child(5),
.product-card:nth-child(5) {
    animation-delay: 0.32s;
}

.process-card:nth-child(6),
.product-card:nth-child(6) {
    animation-delay: 0.4s;
}

.product-card:nth-child(7) {
    animation-delay: 0.48s;
}

.product-card:nth-child(8) {
    animation-delay: 0.56s;
}

.contact-panel h2 {
    margin: 0 0 8px;
    color: #6d421f;
}

.contact-panel p {
    margin: 0 0 8px;
}

.contact-panel a {
    max-width: 100%;
    display: inline-block;
    color: #1b1712;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.whatsapp-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.whatsapp-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    text-align: center;
    color: #6d421f;
    background: #f7f1e8;
    border: 1px solid #d8c9ae;
    border-radius: 999px;
    font-size: 12px;
}

.whatsapp-list a:hover {
    color: white;
    background: #6d421f;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 8px 12px;
    color: #6d421f;
    background: #f7f1e8;
    border: 1px solid #d8c9ae;
    border-radius: 999px;
    font-size: 12px;
}

.social-links a:hover {
    color: white;
    background: #6d421f;
}

.location-card {
    margin-top: 16px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: white;
    background-image: linear-gradient(90deg, rgba(51, 33, 19, 0.88), rgba(111, 75, 46, 0.76)), url("images/kebunkopi2.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(45, 33, 21, 0.14);
    animation: softPop 0.7s ease-out 0.32s both;
}

.location-card .section-kicker {
    color: #f4d9a6;
}

.location-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.location-card p {
    max-width: 520px;
    margin: 0;
    line-height: 1.5;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    color: #1b1712;
    background: #fffdf5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.map-button:hover {
    background: #f3c46f;
}

.site-footer {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 30px;
    padding: 34px 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: #e6d4b7;
}

.site-footer h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.site-footer p {
    margin: 5px 0;
    color: #3f3328;
    font-size: 12px;
}

.site-footer a {
    color: #3f3328;
    font-weight: 800;
    text-decoration: none;
}

.site-footer a:hover {
    color: #6d421f;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 920px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .halal-badge {
        margin-right: 0;
    }

    .nav-menu a + a::before {
        content: "";
        margin: 0;
    }

    .garden-layout,
    .gallery-page,
    .contact-panel,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-primary {
        grid-column: auto;
    }

    .whatsapp-list {
        grid-template-columns: 1fr;
    }

    .location-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-page {
        min-height: auto;
    }

    .process-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(190px, auto);
    }

    .process-slideshow {
        min-height: 430px;
    }

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

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

@media (max-width: 560px) {
    .site-header,
    .hero,
    .why-section,
    .page-intro,
    .gallery-page,
    .garden-section,
    .catalog-preview,
    .catalog-page,
    .process-section,
    .contact-section,
    .site-footer {
        width: calc(100% - 24px);
    }

    .site-header {
        margin-top: 12px;
        padding: 16px;
    }

    .nav-menu {
        gap: 10px;
    }

    .hero h1,
    .page-intro h1 {
        font-size: 32px;
    }

    .why-heading h2 {
        font-size: 24px;
    }

    .home-halal-badge {
        right: 14px;
        bottom: 14px;
        transform: scale(0.9);
        transform-origin: right bottom;
    }

    .gallery-grid,
    .process-gallery,
    .product-grid,
    .product-grid.compact,
    .process-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .process-gallery {
        grid-auto-rows: minmax(190px, auto);
    }

    .gallery-grid .tall,
    .gallery-grid .wide {
        grid-column: auto;
        grid-row: auto;
        height: 180px;
    }

    .process-slideshow {
        min-height: 420px;
    }

    .slide-caption {
        left: 20px;
        right: 20px;
        bottom: 40px;
    }

    .slide-caption h2 {
        font-size: 23px;
    }

    .slide-control {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .slide-control.prev {
        left: 12px;
    }

    .slide-control.next {
        right: 12px;
    }
}
