/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;

    font-family: var(--sans);

    color: #221b18;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

p {
    font-family: var(--sans);
}


/* ==========================================
   VARIABLES
========================================== */

:root {

    --red: #8B1A1E;

    --red-dark: #6C1115;

    --cream: #fbf3ec;

    --cream-light: #fffaf6;

    --gold: #c29b38;

    --text: #221b18;

    --muted: #5e544e;

    --serif:
        "Apple Garamond",
        "EB Garamond",
        Garamond,
        Georgia,
        serif;

    --sans:
        "Poppins",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --max-width: 1211px;
}


/* ==========================================
   COMMON
========================================== */

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-heading h2 {
    color: var(--red);
    font-family: var(--serif);
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.section-heading h3 {
    margin-top: 10px;

    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 600;
    line-height: 1.4;
}

.section-heading p {
    margin-top: 14px;
    font-size: clamp(12.5px, 1.1vw, 17px);
    line-height: 1.75;
    font-weight: 300;
    color: var(--muted);
}

.section-heading.light h2 {
    color: #FFF2DF;
}

.section-heading.light h3,
.section-heading.light p {
    color: rgba(255, 255, 255, 0.9);
}

.wheat-image {
    width: clamp(28px, 3.2vw, 42px);
    height: auto;
    max-height: 55px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.wheat-image.right {
    transform: scaleX(-1);
}

.wheat {
    color: var(--gold);
    font-style: normal;
    display: inline-block;
    margin: 0 7px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 32px;
    border-radius: 9999px;
    background: var(--red);
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
    box-shadow: 0 4px 14px rgba(139, 26, 30, 0.2);
}

.primary-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 30, 0.35);
}


/* ==========================================
   HERO
========================================== */

.hero {
    min-height: 100vh;
    position: relative;

    background: white;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-header {
    height: 90px;

    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
}

.site-logo {
    width: 90px;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: clamp(70px, 10vh, 125px) auto 30px;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--red);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.1;
}

.hero-content p {
    margin: 20px auto 26px;
    max-width: 1000px;
    color: #4e443f;
    font-size: clamp(12.5px, 1.1vw, 17px);
    line-height: 1.8;
    font-weight: 300;
}

.hero-art {
    margin-top: -30px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: -200px 0 0;
}


/* ==========================================
   PROMISE
========================================== */

.promise-section {
    padding: 75px 0 60px;

    color: white;

    background:
        linear-gradient(rgba(142, 23, 27, .94),
            rgba(142, 23, 27, .94)),
        url("../images/red-bg.webp");

    background-size: cover;
    background-position: center;
}

.promise-section .section-heading {
    padding: 0 24px;
}

.promise-slider {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;

    margin-top: 45px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.promise-slider::-webkit-scrollbar {
    display: none;
}

.promise-slider.is-dragging {
    cursor: grabbing !important;
}

.promise-slider.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.promise-track {
    width: max-content;

    display: flex;
    align-items: flex-start;

    gap: 45px;

    animation:
        promiseScroll 32s linear infinite;
}

.promise-slider:hover .promise-track {
    animation-play-state: paused;
}

.promise-card {
    flex: 0 0 clamp(280px, 33vw, 480px);

    text-align: center;
}

.promise-card img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: 9999px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.promise-card p {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: .02em;
}

@keyframes promiseScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 27.5px));
    }

}


/* ==========================================
   FIELDS TO TABLE
========================================== */

.fields-section {
    position: relative;

    padding: 70px 7% 95px;

    border-top: 5px solid var(--red);
}

.fields-grid {
    width: min(var(--max-width), 100%);

    margin: 65px auto 0;

    display: grid;

    grid-template-columns:
        minmax(0, .9fr) minmax(360px, 1.1fr);

    align-items: center;
    gap: 100px;
}

.fields-copy h3 {
    max-width: 380px;
    font-size: 17px;
    line-height: 1.4;
}

.fields-copy p {
    max-width: 400px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
}

.map-card {
    border-radius: 200px;
    background:
        linear-gradient(135deg,
            #9d1d22,
            #851418);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-card img {
    width: 100%;
    object-fit: cover;
}


/* ==========================================
   OUR RICE
========================================== */

.rice-section {
    padding: 65px 0 75px;

    background: white;
}

.rice-section .section-heading {
    padding: 0 25px;
}

/* Rice Grain Slide List Indicator */
.rice-grain-nav {
    position: relative;
    max-width: 330px;
    width: 90%;
    margin: 36px auto 30px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rice-grain-line {
    position: absolute;
    top: 50%;
    left: 14px;
    right: 14px;
    height: 0;
    border-top: 1.5px dotted #d8b877;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.rice-grain-items {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.rice-grain-btn {
    position: relative;
    background: transparent;
    border: none;
    outline: none;
    padding: 3px 5px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transform: scale(0.85);
    filter: brightness(2) saturate(0.12) sepia(0.15) drop-shadow(0 2px 3px rgba(190, 150, 70, 0.18));
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.28s ease,
        filter 0.28s ease;
}

.rice-grain-btn img {
    width: 26px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

.rice-grain-btn:hover {
    opacity: 0.88;
    transform: scale(0.92);
    filter: brightness(1.5) saturate(0.4) sepia(0.25) drop-shadow(0 2px 4px rgba(190, 150, 70, 0.25));
}

.rice-grain-btn.active {
    opacity: 1;
    transform: scale(1.42);
    filter:
        sepia(1) saturate(2.8) brightness(0.9) drop-shadow(0 2px 6px rgba(160, 100, 10, 0.4));
}

.rice-slider {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.rice-slider::-webkit-scrollbar {
    display: none;
}

.rice-slider:active,
.rice-slider.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.rice-slider.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.rice-card img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.rice-track {
    display: flex;

    gap: 40px;
    padding: 15px 7vw 25px;
    width: max-content;
}

.rice-card {
    flex: 0 0 min(97vw, 100%);
    min-height: 440px;
    padding: 50px 60px;
    border-radius: 9999px;
    background: var(--cream-light);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns:
        minmax(300px, 1fr) minmax(280px, 1fr);
    align-items: center;
    gap: 40px;
}

.rice-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rice-product-image img {
    width: 100%;
    max-width: 470px;
    max-height: 320px;

    object-fit: contain;
}

.rice-info h2 {
    color: var(--red);
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    font-weight: 500;
}

.rice-info h4 {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.4;
}

.rice-info>p {
    margin-top: 24px;
    max-width: 440px;
    color: #4b413c;
    font-size: 17px;
    line-height: 1.6;
}

.rice-info ul {
    margin-top: 25px;

    list-style: none;

    display: grid;
    gap: 12px;
}

.rice-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #721217;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: .01em;
    font-style: italic;
}

.rice-feat-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.rice-info li span {
    display: block;
}

/* 2-column feature grid variant (e.g. JSR card with 6 features) */
.rice-feat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}



/* ==========================================
   ART COMPETITION
========================================== */

.competition-section {
    padding: 75px 7% 90px;

    border-top: 1px solid #eee;

    background: white;
}

.competition-grid {
    width: min(1080px, 100%);

    margin: 55px auto 0;

    display: grid;

    grid-template-columns:
        minmax(0, .9fr) minmax(350px, 1.1fr);

    align-items: center;
    gap: 80px;
}

.competition-copy {
    font-size: 17px;
    line-height: 1.55;
}

.competition-copy p+p {
    margin-top: 18px;
}

.competition-copy .primary-btn {
    margin-top: 28px;
}

.competition-image {
    width: 100%;
    min-height: 310px;
    border-radius: 200px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.competition-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.13);
}

.competition-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 200px;
}


/* ==========================================
   NOTE FROM US
========================================== */

.note-section {
    min-height: 500px;

    padding: 110px 24px 100px;

    background: #fff8f3;

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.note-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;
}

.note-title h2 {
    color: var(--red);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(30px, 3vw, 43px);
}

.note-title h3 {
    margin-top: 5px;
    font-size: 17px;
}

.wheat-image {
    width: 50px;
    height: 80px;

    object-fit: contain;
}

.wheat-image.right {
    transform: scaleX(-1);
}

.note-copy {
    max-width: 660px;
    margin: 50px auto 0;
    font-size: 17px;
    line-height: 1.7;
}

.note-copy p+p {
    margin-top: 22px;
}


/* ==========================================
   FOOTER
========================================== */

.footer {
    min-height: 390px;

    padding: 65px 25px;

    background: var(--red);

    color: #fff9ef;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-wordmark {
    font-family: var(--serif);

    font-size:
        clamp(75px,
            14vw,
            190px);

    font-weight: 400;

    letter-spacing: .13em;
    line-height: .9;
}

.footer-line {
    width: min(420px, 60vw);
    height: 1px;

    margin: 35px auto 20px;

    background: rgba(255, 255, 255, .55);
}

.socials {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;
}

.socials a {
    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: white;

    color: var(--red);

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform .25s ease;
}

.socials a svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: block;
}

.socials a:hover {
    transform: translateY(-3px);
}


/* ==========================================
   LARGE DESKTOP  (≥ 1400px)
========================================== */

@media (min-width: 1400px) {

    .hero-content {
        margin-top: 60px;
    }

    .fields-section {
        padding: 90px 7% 110px;
    }

    .fields-grid {
        gap: 120px;
    }

    .rice-section {
        padding: 80px 0 95px;
    }

    .competition-section {
        padding: 90px 7% 110px;
    }

}


/* ==========================================
   TABLET LANDSCAPE  (≤ 1024px)
========================================== */

@media (max-width: 1024px) {
    .hero-art img {
        margin: -50px 0 0;
    }

    .hero {
        min-height: auto;
    }

    /* hero */
    .hero-content {
        margin-top: clamp(60px, 8vh, 110px);
        padding: 0 30px;
    }

    /* fields */
    .fields-grid {
        gap: 60px;
    }

    /* competition */
    .competition-grid {
        gap: 50px;
    }

    /* rice card inner grid min-width relaxed */
    .rice-card {
        grid-template-columns:
            minmax(220px, 1fr) minmax(200px, 1fr);
        padding: 45px 50px;
    }

}


/* ==========================================
   TABLET PORTRAIT  (≤ 900px)
========================================== */

@media (max-width: 900px) {

    /* section headings */
    .section-heading {
        padding: 0 24px;
    }

    /* fields */
    .fields-grid,
    .competition-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fields-section {
        padding: 60px 6% 80px;
    }

    .fields-copy {
        text-align: center;
    }

    .fields-copy h3,
    .fields-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .map-card {
        max-width: 560px;
        width: 100%;
        min-height: 260px;
        border-radius: 140px;
        margin: 0 auto;
    }

    /* competition */
    .competition-section {
        padding: 65px 6% 80px;
    }

    .competition-copy {
        text-align: center;
    }

    .competition-copy .primary-btn {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
    }

    .competition-image {
        max-width: 560px;
        width: 100%;
        border-radius: 120px;
        margin: 0 auto;
    }

    .competition-image img {
        border-radius: 120px;
    }

    /* rice */
    .rice-card {
        grid-template-columns: 1fr;
        padding: 50px 45px;
        border-radius: 80px;
        text-align: center;
        min-height: auto;
    }

    .rice-info>p {
        margin-left: auto;
        margin-right: auto;
    }

    .rice-info ul {
        width: max-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .rice-feat-icon {
        width: 36px;
        height: 36px;
    }

    .rice-product-image img {
        max-height: 280px;
    }

    /* note */
    .note-title {
        flex-wrap: wrap;
        gap: 14px;
    }

}


/* ==========================================
   SMALL TABLET / LARGE PHONE  (≤ 768px)
========================================== */

@media (max-width: 768px) {

    /* hero */
    .hero-content {
        margin-top: 50px;
        padding: 0 22px;
    }

    .hero-content h1 {
        font-size: clamp(30px, 7vw, 42px);
    }

    .hero-content p {
        font-size: 12px;
    }

    /* promise */
    .promise-section {
        padding: 55px 0 55px;
    }

    .promise-card {
        flex-basis: clamp(260px, 70vw, 380px);
    }

    /* fields */
    .fields-section {
        padding: 55px 5% 70px;
    }

    .map-card {
        max-width: 460px;
        border-radius: 110px;
    }

    /* competition */
    .competition-section {
        padding: 55px 5% 70px;
    }

    .competition-image {
        border-radius: 100px;
    }

    .competition-image img {
        border-radius: 100px;
    }

    /* rice */
    .rice-grain-nav {
        max-width: 280px;
    }

    .rice-card {
        padding: 45px 35px;
        border-radius: 70px;
    }

    /* note */
    .note-section {
        padding: 90px 22px;
    }

}


/* ==========================================
   MOBILE  (≤ 600px)
========================================== */

@media (max-width: 600px) {

    /* hero */
    .hero {
        min-height: auto;
    }

    .hero-header {
        height: 58px;
    }

    .site-logo {
        width: 62px;
    }

    .hero-content {
        margin-top: 60px;
        margin-bottom: 24px;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    .hero-art img {
        min-height: 220px;
        margin-top: -50px;
    }

    /* promise */
    .promise-section {
        padding: 50px 0 50px;
    }

    .promise-track {
        gap: 22px;
    }

    .promise-card {
        flex-basis: 78vw;
    }

    .promise-card img {
        border-radius: 60px;
    }

    /* fields */
    .fields-section {
        padding: 50px 20px 60px;
    }

    .fields-section .section-heading h2 {
        font-size: clamp(22px, 6vw, 32px);
    }

    .fields-grid {
        margin-top: 36px;
        gap: 32px;
    }

    .fields-copy h3 {
        font-size: 15px;
    }

    .fields-copy p {
        font-size: 14px;
    }

    .map-card {
        max-width: 100%;
        min-height: 200px;
        border-radius: 80px;
        padding: 0;
    }

    .map-card img {
        max-height: 220px;
    }

    /* rice */
    .rice-section {
        padding: 50px 0 65px;
    }

    .rice-grain-nav {
        max-width: 240px;
        margin: 26px auto 22px;
    }

    .rice-grain-btn img {
        width: 22px;
    }

    .rice-track {
        padding: 12px 5vw 22px;
        gap: 16px;
    }

    .rice-card {
        flex: 0 0 min(92vw, 460px);
        padding: 40px 24px;
        min-height: auto;
        border-radius: 50px;
        gap: 28px;
    }

    .rice-product-image img {
        max-height: 220px;
    }

    .rice-info h2 {
        font-size: 22px;
    }

    .rice-info h4 {
        font-size: 13px;
    }

    .rice-info>p {
        font-size: 12px;
        margin-top: 18px;
    }

    .rice-info ul {
        margin-top: 18px;
        gap: 10px;
    }

    .rice-feat-icon {
        width: 32px;
        height: 32px;
    }

    .rice-feat-grid {
        grid-template-columns: 1fr;
    }

    /* competition */
    .competition-section {
        padding: 50px 20px 60px;
    }

    .competition-section .section-heading h2 {
        font-size: clamp(20px, 6vw, 30px);
    }

    .competition-grid {
        margin-top: 32px;
        gap: 28px;
    }

    .competition-copy {
        font-size: 12.5px;
    }

    .competition-image {
        min-height: 210px;
        border-radius: 60px;
    }

    .competition-image img {
        border-radius: 60px;
        max-height: 360px;
    }

    /* note */
    .note-section {
        min-height: 400px;
        padding: 70px 20px;
    }

    .note-title {
        gap: 8px;
        flex-wrap: wrap;
    }

    .wheat-image {
        width: 30px;
        height: 55px;
    }

    .note-title h2 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .note-title h3 {
        font-size: 14px;
    }

    .note-copy {
        margin-top: 32px;
        font-size: 14px;
        line-height: 1.75;
    }

    /* footer */
    .footer {
        min-height: 280px;
        padding: 50px 20px;
    }

    .footer-wordmark {
        font-size: 17vw;
        letter-spacing: .08em;
    }

    .footer-line {
        margin: 28px auto 18px;
    }

    .socials {
        gap: 8px;
    }

}


/* ==========================================
   SMALL MOBILE  (≤ 380px)
========================================== */

@media (max-width: 380px) {

    /* hero */
    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .primary-btn {
        font-size: 10px;
        padding: 0 24px;
        min-height: 40px;
    }

    /* promise */
    .promise-card {
        flex-basis: 84vw;
    }

    .promise-card img {
        border-radius: 44px;
    }

    /* map */
    .map-card {
        border-radius: 60px;
    }

    .map-card img {
        max-height: 180px;
    }

    /* rice */
    .rice-grain-nav {
        max-width: 200px;
    }

    .rice-card {
        flex: 0 0 min(95vw, 360px);
        padding: 34px 18px;
        border-radius: 40px;
    }

    .rice-info h2 {
        font-size: 20px;
    }

    .rice-product-image img {
        max-height: 180px;
    }

    .rice-feat-icon {
        width: 28px;
        height: 28px;
    }

    /* competition */
    .competition-image {
        border-radius: 44px;
    }

    .competition-image img {
        border-radius: 44px;
    }

    /* note */
    .note-title h2 {
        font-size: 22px;
    }

    /* footer */
    .footer-wordmark {
        font-size: 19vw;
    }

}