:root {
    --orange: #de9043;
    --navy: #2a2d74;
    --maroon: #8f2a2a;
    --purple: #72469e;
    --wa-green: #2a5c39;
    --text: #333333;
    --cream-bg: #f4f2ee;
}

@font-face {
    font-family: "Gopal Bold Italic";
    src: url("/fonts/GopalBoldItalic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    background: var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 78px;
    position: relative;
}

.site-brand {
    /* Desktop keeps the original logo-less, centered-nav layout;
       the text brand only appears on mobile (see responsive block). */
    display: none;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.2px;
    color: #1c1c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    flex-shrink: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: #1c1c1c;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition:
        border-color 0.2s,
        color 0.2s;
}

.main-nav a:hover,
.main-nav a.is-active {
    border-bottom-color: #1c1c1c;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1c1c1c;
    margin: 5px 0;
}

/* Hero */
.hero {
    padding: 64px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.hero-text h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 34px;
    color: var(--navy);
    margin: 0 0 20px;
}

.hero-text p {
    margin: 0 0 18px;
    font-size: 16px;
}

.script-note {
    font-family: "Gopal Bold Italic", cursive;
    font-weight: 700;
    font-size: 24px !important;
    color: var(--maroon);
    line-height: 1;
    margin: 8px 0 24px !important;
}

.cta-label {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--navy);
    margin: 0 0 14px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wa-green);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    filter: brightness(1.08);
}

.hero-media {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-shipping {
    width: 100%;
    max-width: 320px;
}

/* Contact bar */
.contact-bar {
    background: var(--orange);
    padding: 32px 0;
    margin-top: 24px;
}

.contact-address {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 20px;
    color: #1c1c1c;
}

.contact-grid {
    width: 100%;
    max-width: 620px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 16px;
}

.contact-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-item span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Product sections */
.product-section {
    padding: 0;
}

.product-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 5px solid var(--purple);
    margin: 40px auto;
    overflow: hidden;
    background: #fff;
}

.product-text {
    padding: 48px;
    background: var(--cream-bg);
    background-image: url("/images/site/texture.jpg");
    background-size: 400px;
    background-color: #f1efe9;
}

.product-text h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 27px;
    color: var(--navy);
    margin: 0 0 18px;
    line-height: 1.3;
}

.product-text p {
    margin: 0 0 16px;
    font-size: 15.5px;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 4px;
}

.cta-block {
    min-width: 0;
}
.cta-block .cta-label {
    margin-bottom: 14px;
}
.cta-block .btn-whatsapp {
    margin: 0;
}

.coffee-deco {
    width: 110px;
    flex-shrink: 0;
    opacity: 0.95;
}

.region-note {
    font-weight: 700;
    font-size: 15px;
    margin-top: 24px !important;
}

.region-note span {
    color: #c0392b;
}

.product-media {
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.product-label {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
    text-transform: uppercase;
    margin: 0 0 24px;
}

.product-media img {
    max-width: 100%;
    border-radius: 4px;
}

/* Machine gallery */
.machine-gallery {
    padding: 0 0 60px;
}

.gallery-box {
    border: 5px solid var(--purple);
    padding: 40px;
    background: var(--cream-bg);
    background-image: url("/images/site/texture.jpg");
    background-size: 400px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
}

/* Generic page section (about / portfolio / contact) */
.page-section {
    padding: 48px 0 80px;
}

.bordered-box {
    border: 5px solid var(--purple);
    padding: 48px;
    background: #fff;
}

.about-box p {
    margin: 0 0 18px;
    font-size: 15.5px;
}
.about-footer {
    text-align: right;
    color: var(--navy);
}

.portfolio-box {
    text-align: center;
}
.portfolio-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--navy);
    margin: 0 0 32px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 20px;
    align-items: center;
}

.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 6px;
}

.portfolio-item img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact page */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.contact-form-col {
    padding: 48px;
    background: var(--cream-bg);
    background-image: url("/images/site/texture.jpg");
    background-size: 400px;
}

.contact-heading {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    line-height: 1.4;
    font-size: 24px;
    color: #4a5a8a;
    text-align: center;
    margin: 0 0 16px;
}

.contact-sub {
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px;
    color: #1c1c1c;
}

.form-field {
    margin-bottom: 20px;
}
.form-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfcac2;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 15px;
    border-radius: 2px;
}

.form-field textarea {
    resize: vertical;
}

.btn-send {
    background: var(--wa-green);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.btn-send:hover {
    filter: brightness(1.08);
}

.form-success {
    background: #e4f5e9;
    color: #1e6b3c;
    border: 1px solid #b9e3c6;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-error {
    color: #c0392b;
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

.recaptcha-wrap {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
}

.contact-info-col {
    padding: 48px;
}

/* Grid items default to min-width:auto, which lets fixed-size content
   (e.g. .hero-shipping images) force the track wider than the container
   and push the column off-screen on narrow viewports. */
.hero-text,
.hero-media,
.product-text,
.product-media,
.contact-form-col,
.contact-info-col {
    min-width: 0;
}

.contact-info-list {
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
}

.contact-info-item span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--navy);
    border: 1px solid #e2e2e2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 90;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Floating WhatsApp button */
.float-whatsapp {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition:
        transform 0.15s,
        filter 0.15s;
}

.float-whatsapp:hover {
    transform: scale(1.06);
    filter: brightness(1.08);
}

@media (max-width: 480px) {
    .float-whatsapp {
        left: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .product-box,
    .contact-box,
    .contact-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .product-media {
        order: -1;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--orange);
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 1px solid rgb(0 0 0 / 10%);
    }

    .main-nav a {
        display: block;
        padding: 12px;
        font-size: 12px;
    }

    .main-nav a.is-active {
        background: #2b2d74;
        border-bottom-color: #2b2d74;
        color: #fff;
    }

    .nav-toggle {
        display: block;
    }

    .header-inner {
        justify-content: flex-start;
        min-height: 46px;
    }

    .site-brand {
        display: block;
    }

    .product-text,
    .product-media,
    .bordered-box,
    .contact-info-col,
    .gallery-box {
        padding: 16px !important;
    }

    .bordered-box {
        padding: 0 !important;
    }

    .bordered-box.about-box, .bordered-box.portfolio-box {
        padding: 16px !important;
    }

    .contact-form-col {
        padding: 16px !important;
    }

    .coffee-deco {
        display: none;
    }

    .hero {
        padding: 32px 0 24px;
    }

    .hero-text h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .product-text h2 {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 600;
    }

    .cta-label {
        font-size: 16px;
    }

    .contact-heading {
        font-size: 18px;
    }

    .contact-sub {
        font-size: 14px;
    }

    .portfolio-title {
        font-size: 24px;
    }

    .product-label {
        font-size: 18px;
    }

    .script-note {
        font-size: 19px !important;
    }

    .site-brand {
        font-size: 15px;
        max-width: 55%;
    }

    .contact-address {
        font-size: 15px;
    }

    .page-section {
        padding: 28px 0 48px;
    }

    .contact-item img {
        width: 30px;
        height: 30px;
    }

    .contact-grid {
        gap: 6px 40px;
    }

    .product-section {
        padding: 0 16px;
    }

    .machine-gallery {
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .product-box {
        margin: 16px auto;
    }

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

    .product-text {
        margin-bottom: 16px;
    }

    .icon-box {
        width: 30px;
        height: 30px;
    }

    .icon-box img {
        width: 20px;
        height: 20px;
    }

    .contact-info-item span:last-child {
        font-size: 14px;
    }

    .contact-info-item {
        gap: 0
    }

    .contact-info-list {
        gap: 4px;
    }

    .product-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn-whatsapp {
        padding: 11px 20px;
        font-size: 12px;
    }

    .btn-send {
        width: 100%;
    }

    .cta-row {
        flex-wrap: wrap;
    }
}
