/*
Theme Name: Kudla Foods
Theme URI: https://kudlafoods.nz/
Author: Kudla Foods
Description: Vintage coastal South Indian website theme for Kudla Foods New Zealand.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kudla-foods
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --kudla-red: #791f17;
    --coastal-green: #323a1f;
    --warm-cream: #fef6eb;
    --display: "Cormorant Garamond", Georgia, serif;
    --body: "Libre Baskerville", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
    overflow-x: clip;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--warm-cream);
    color: var(--coastal-green);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.prototype-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(254, 246, 235, .97);
    backdrop-filter: blur(10px);
}

.admin-bar .prototype-header {
    top: 32px;
}

.header-inner {
    width: min(100%, 1600px);
    min-height: 108px;
    margin: 0 auto;
    padding: 18px clamp(28px, 5vw, 88px);
    display: grid;
    grid-template-columns: minmax(210px, 280px) 1fr auto;
    align-items: center;
    gap: clamp(30px, 4vw, 72px);
}

.prototype-logo {
    width: clamp(190px, 16vw, 250px);
}

.prototype-logo img {
    width: 100%;
    height: auto;
}

#prototype-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(26px, 3.2vw, 58px);
}

#prototype-nav a {
    position: relative;
    padding: 10px 0;
    font: 400 clamp(13px, .95vw, 16px)/1.2 var(--body);
    text-decoration: none;
    white-space: nowrap;
}

#prototype-nav a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--kudla-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

#prototype-nav a:hover::after,
#prototype-nav a.active::after {
    transform: scaleX(1);
}

.portal-button,
.primary-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border: 0;
    background: var(--kudla-red);
    color: var(--warm-cream);
    font: 400 15px/1.2 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.portal-button {
    min-width: 174px;
}

.portal-button:hover,
.primary-button:hover {
    background: var(--coastal-green);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
}

.prototype-hero {
    width: min(100%, 1640px);
    min-height: clamp(660px, calc(100svh - 220px), 800px);
    margin: 0 auto;
    padding: clamp(38px, 4vw, 70px) clamp(18px, 2.4vw, 42px) clamp(50px, 5vw, 82px) clamp(28px, 5vw, 88px);
    display: grid;
    grid-template-columns: minmax(470px, .76fr) minmax(700px, 1.24fr);
    align-items: center;
    gap: clamp(8px, 1.2vw, 20px);
    overflow: hidden;
    background: var(--warm-cream);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h1,
.section-copy h2,
.section-heading h2 {
    margin: 0;
    color: var(--kudla-red);
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.035em;
}

.hero-copy h1 {
    max-width: 690px;
    font-size: clamp(58px, 4.8vw, 80px);
    line-height: .96;
}

.hero-copy > p {
    max-width: 640px;
    margin: clamp(28px, 3vw, 42px) 0 0;
    color: var(--coastal-green);
    font: 400 clamp(14px, 1.1vw, 18px)/1.9 var(--body);
}

.hero-actions {
    margin-top: clamp(32px, 3.6vw, 50px);
    display: flex;
    align-items: center;
    gap: clamp(28px, 3vw, 48px);
}

.hero-actions .primary-button {
    min-width: 210px;
}

.story-link {
    padding: 12px 0 7px;
    border-bottom: 1px solid var(--kudla-red);
    color: var(--kudla-red);
    font: 400 16px/1.2 var(--body);
    text-decoration: none;
}

.story-link span {
    display: inline-block;
    margin-left: 8px;
    transition: transform 180ms ease;
}

.story-link:hover span {
    transform: translateX(4px);
}

.hero-photograph {
    min-width: 0;
    margin: 0;
    padding: clamp(6px, .8vw, 12px);
    align-self: stretch;
    display: flex;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 740px;
    object-fit: contain;
    object-position: center right;
}

.hero-image::before,
.hero-image::after {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    content: "";
}

.hero-image::before {
    inset: -1px;
    background:
        linear-gradient(90deg,
            var(--warm-cream) 0%,
            rgba(254, 246, 235, .62) 5%,
            rgba(254, 246, 235, 0) 16%,
            rgba(254, 246, 235, 0) 91%,
            rgba(254, 246, 235, .55) 97%,
            var(--warm-cream) 100%),
        linear-gradient(0deg,
            var(--warm-cream) 0%,
            rgba(254, 246, 235, .62) 6%,
            rgba(254, 246, 235, 0) 17%,
            rgba(254, 246, 235, 0) 88%,
            rgba(254, 246, 235, .58) 96%,
            var(--warm-cream) 100%);
}

.hero-image::after {
    top: -1px;
    right: -1px;
    left: -1px;
    height: 15%;
    background: linear-gradient(180deg, var(--warm-cream) 0%, rgba(254, 246, 235, .5) 30%, rgba(254, 246, 235, 0) 100%);
}

.brand-banner {
    width: 100%;
    background: var(--coastal-green);
}

.brand-row {
    width: min(100%, 1500px);
    min-height: 190px;
    margin: 0 auto;
    padding: 38px clamp(48px, 8vw, 130px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: clamp(48px, 6vw, 110px);
}

.brand-mark {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: .96;
    filter: brightness(0) invert(96%) sepia(8%) saturate(594%) hue-rotate(324deg) brightness(109%) contrast(99%);
}

.brand-mark.modern-kitchens {
    max-height: 80px;
}

.brand-mark.aruna {
    max-height: 92px;
}

.brand-mark.tiger {
    max-height: 104px;
}

.brand-mark.wholesnacks {
    max-height: 84px;
}

.page-section {
    position: relative;
    background: var(--warm-cream);
}

.range-section::before,
.trade-section::before,
.ordering-section::before,
.contact-section::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(68vw, 920px);
    height: 1px;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent 0,
            rgba(121, 31, 23, .42) 10%,
            rgba(121, 31, 23, .42) 44%,
            transparent 44%,
            transparent 56%,
            rgba(121, 31, 23, .42) 56%,
            rgba(121, 31, 23, .42) 90%,
            transparent 100%
        );
    transform: translateX(-50%);
}

.range-section::after,
.trade-section::after,
.ordering-section::after,
.contact-section::after {
    position: absolute;
    top: -15px;
    left: 50%;
    padding: 0 15px;
    content: "❦";
    background: var(--warm-cream);
    color: rgba(121, 31, 23, .72);
    font: 400 25px/30px Georgia, serif;
    transform: translateX(-50%);
}

.section-inner {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(100px, 10vw, 150px) clamp(28px, 6vw, 92px);
}

.section-label {
    margin: 0 0 20px;
    color: var(--kudla-red);
    font: 700 11px/1.2 var(--body);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.section-copy h2 {
    font-size: clamp(54px, 5.2vw, 78px);
    line-height: .94;
}

.section-copy > p:not(.section-label) {
    max-width: 570px;
    margin: 30px 0 0;
    font: 400 15px/1.95 var(--body);
}

.section-copy > p + p {
    margin-top: 18px;
}

.editorial-photo {
    margin: 0;
    overflow: hidden;
}

.editorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    align-items: center;
    gap: clamp(70px, 9vw, 140px);
}

.story-logo {
    min-height: 440px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-logo img {
    width: min(100%, 720px);
    height: auto;
}

.section-heading {
    max-width: 840px;
    margin: 0 auto clamp(70px, 7vw, 105px);
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(54px, 5.4vw, 80px);
    line-height: .98;
}

.section-heading > p:not(.section-label) {
    max-width: 680px;
    margin: 26px auto 0;
    font: 400 15px/1.9 var(--body);
}

.product-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 48px);
}

.product-category {
    min-width: 0;
    text-align: center;
}

.product-stage {
    height: 430px;
    padding: 12px 0 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.product-stage img {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 12px rgba(50, 58, 31, .11));
}

.masala-stage img {
    width: 58%;
    max-height: 320px;
    margin-inline: -12%;
}

.masala-stage img:nth-child(2) {
    position: relative;
    z-index: 2;
    transform: translateY(-12px);
}

.masala-stage img:first-child,
.masala-stage img:last-child {
    position: relative;
    z-index: 1;
    transform: scale(.94);
}

.seasoning-stage img {
    width: 35%;
    max-height: 350px;
    margin-inline: -1%;
}

.snack-stage {
    gap: 0;
}

.snack-stage img {
    width: 56%;
    max-height: 365px;
    margin-inline: -5%;
}

.speciality-stage img {
    width: 84%;
    max-height: 370px;
}

.product-category h3 {
    margin: 20px 0 0;
    color: var(--coastal-green);
    font: 500 clamp(24px, 2vw, 31px)/1.15 var(--display);
}

.centered-link {
    margin-top: clamp(52px, 6vw, 85px);
    text-align: center;
}

.trade-inner {
    display: grid;
    grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(70px, 9vw, 140px);
}

.trade-copy .primary-button,
.ordering-copy .primary-button {
    margin-top: 36px;
}

.trade-photo {
    aspect-ratio: 3 / 2;
}

.ordering-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    align-items: center;
    gap: clamp(70px, 9vw, 140px);
}

.ordering-art img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at center, #000 54%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 68% at center, #000 54%, transparent 100%);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(70px, 9vw, 140px);
}

.contact-copy h2 {
    max-width: 550px;
}

.contact-details {
    margin-top: 36px;
    display: grid;
    gap: 12px;
    font-size: 14px;
}

.contact-details a {
    color: var(--kudla-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 28px;
}

.enquiry-form label {
    display: grid;
    gap: 9px;
    color: var(--coastal-green);
    font: 700 11px/1.3 var(--body);
    letter-spacing: .04em;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    min-height: 51px;
    padding: 13px 15px;
    border: 1px solid rgba(50, 58, 31, .36);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--coastal-green);
    font: 400 14px/1.5 var(--body);
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    border-color: var(--kudla-red);
    box-shadow: 0 0 0 2px rgba(121, 31, 23, .08);
}

.enquiry-form textarea {
    min-height: 145px;
    resize: vertical;
}

.enquiry-form .wide,
.enquiry-form .form-notice,
.enquiry-form .primary-button {
    grid-column: 1 / -1;
}

.enquiry-form .primary-button {
    justify-self: start;
    min-width: 190px;
}

.enquiry-form label small {
    color: var(--kudla-red);
    font-weight: 400;
}

.form-notice {
    padding: 15px 17px;
    font-size: 13px;
}

.form-notice.success {
    background: rgba(50, 58, 31, .1);
}

.form-notice.error {
    background: rgba(121, 31, 23, .1);
    color: var(--kudla-red);
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

.prototype-footer {
    background: var(--coastal-green);
    color: var(--warm-cream);
}

.wp-content {
    min-height: calc(100vh - 338px);
    padding: clamp(90px, 10vw, 150px) clamp(24px, 6vw, 92px);
    background: var(--warm-cream);
}

.wp-content-inner {
    width: min(100%, 980px);
    margin: 0 auto;
}

.wp-content h1 {
    max-width: 850px;
    margin: 0 0 32px;
    color: var(--kudla-red);
    font: 500 clamp(54px, 6vw, 82px)/.98 var(--display);
    letter-spacing: -.035em;
}

.wp-content p {
    max-width: 720px;
    font: 400 15px/1.95 var(--body);
}

.wp-content .primary-button {
    margin-top: 28px;
}

.footer-inner {
    width: min(100%, 1440px);
    min-height: 230px;
    margin: 0 auto;
    padding: 55px clamp(28px, 6vw, 92px);
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(320px, 1.35fr) minmax(160px, .55fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
}

.footer-logo {
    width: min(100%, 250px);
    filter: brightness(0) invert(96%) sepia(8%) saturate(594%) hue-rotate(324deg) brightness(109%) contrast(99%);
}

.footer-about p {
    max-width: 520px;
    margin: 0 0 18px;
    font: 400 14px/1.8 var(--body);
}

.footer-about small {
    color: rgba(254, 246, 235, .7);
    font-size: 11px;
}

.footer-portals {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.footer-portals a {
    color: var(--warm-cream);
    font: 400 14px/1.3 var(--body);
    text-underline-offset: 5px;
}

@media (max-width: 1180px) {
    .prototype-hero {
        grid-template-columns: minmax(410px, .8fr) minmax(560px, 1.2fr);
    }

    .hero-copy h1 {
        font-size: clamp(54px, 5.2vw, 68px);
    }

    .product-stage {
        height: 350px;
    }

    .masala-stage img,
    .snack-stage img {
        max-height: 310px;
    }

    .seasoning-stage img,
    .speciality-stage img {
        max-height: 300px;
    }
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: minmax(190px, 230px) 1fr auto;
        gap: 22px;
    }

    #prototype-nav {
        gap: 20px;
    }

    .portal-button {
        min-width: 148px;
        padding-inline: 17px;
        font-size: 13px;
    }

    .prototype-hero {
        grid-template-columns: minmax(370px, .88fr) minmax(430px, 1.12fr);
    }

    .product-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 65px 55px;
    }

    .product-stage {
        height: 390px;
    }

    .masala-stage img,
    .snack-stage img {
        max-height: 345px;
    }

    .seasoning-stage img,
    .speciality-stage img {
        max-height: 335px;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 92px;
    }

    .header-inner {
        min-height: 92px;
        grid-template-columns: 1fr auto auto;
        padding-block: 14px;
    }

    .admin-bar .prototype-header {
        top: 46px;
    }

    .prototype-logo {
        width: 184px;
    }

    .nav-toggle {
        width: 46px;
        height: 42px;
        padding: 10px;
        display: grid;
        align-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        color: var(--coastal-green);
    }

    .nav-toggle span {
        width: 24px;
        height: 1px;
        display: block;
        background: currentColor;
    }

    .nav-toggle b {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    #prototype-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 28px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: var(--warm-cream);
        box-shadow: 0 18px 30px rgba(50, 58, 31, .12);
    }

    #prototype-nav.open {
        display: flex;
    }

    .prototype-hero {
        min-height: auto;
        padding: 50px clamp(24px, 6vw, 54px) 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-copy h1 {
        max-width: 700px;
        font-size: clamp(54px, 10vw, 76px);
    }

    .hero-copy > p {
        max-width: 700px;
    }

    .hero-photograph {
        width: 100%;
        padding: 0;
    }

    .brand-row {
        min-height: 280px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 60px;
    }

    .story-inner,
    .trade-inner,
    .ordering-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .trade-copy {
        order: 1;
    }

    .trade-photo {
        order: 2;
    }

    .section-copy > p:not(.section-label) {
        max-width: 700px;
    }

    .story-logo {
        min-height: 0;
    }

    .contact-inner {
        gap: 70px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1.4fr;
        gap: 38px 55px;
    }

    .footer-portals {
        grid-column: 2;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding-inline: 12px;
        grid-template-columns: minmax(120px, 1fr) auto auto;
        gap: 8px;
    }

    .prototype-logo {
        width: clamp(120px, 38vw, 150px);
    }

    .nav-toggle {
        justify-self: end;
        width: 40px;
    }

    .portal-button {
        grid-column: auto;
        min-width: 0;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .prototype-hero {
        padding-top: 42px;
    }

    .hero-copy h1 {
        font-size: clamp(47px, 14vw, 64px);
    }

    .hero-copy > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .hero-actions .primary-button {
        width: 100%;
    }

    .hero-image::before {
        background:
            linear-gradient(90deg,
                var(--warm-cream) 0%,
                rgba(254, 246, 235, .52) 4%,
                rgba(254, 246, 235, 0) 14%,
                rgba(254, 246, 235, 0) 92%,
                rgba(254, 246, 235, .5) 97%,
                var(--warm-cream) 100%),
            linear-gradient(0deg,
                var(--warm-cream) 0%,
                rgba(254, 246, 235, .58) 5%,
                rgba(254, 246, 235, 0) 15%,
                rgba(254, 246, 235, 0) 89%,
                rgba(254, 246, 235, .52) 96%,
                var(--warm-cream) 100%);
    }

    .brand-row {
        min-height: 320px;
        padding: 36px 28px;
        gap: 36px 30px;
    }

    .brand-mark.modern-kitchens,
    .brand-mark.aruna,
    .brand-mark.tiger,
    .brand-mark.wholesnacks {
        max-height: 70px;
    }

    .section-inner {
        padding: 92px 24px;
    }

    .range-section::before,
    .trade-section::before,
    .ordering-section::before,
    .contact-section::before {
        width: calc(100% - 48px);
    }

    .range-section::after,
    .trade-section::after,
    .ordering-section::after,
    .contact-section::after {
        top: -13px;
        font-size: 22px;
        line-height: 26px;
    }

    .section-copy h2,
    .section-heading h2 {
        font-size: clamp(47px, 13vw, 63px);
    }

    .story-inner,
    .trade-inner,
    .ordering-inner,
    .contact-inner {
        gap: 48px;
    }

    .section-heading {
        margin-bottom: 55px;
    }

    .product-category-grid {
        grid-template-columns: 1fr;
        gap: 62px;
    }

    .product-stage {
        height: 390px;
    }

    .product-category h3 {
        font-size: 29px;
    }

    .ordering-art {
        margin: 0 -10px;
    }

    .enquiry-form {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .enquiry-form .wide,
    .enquiry-form .form-notice,
    .enquiry-form .primary-button {
        grid-column: auto;
    }

    .enquiry-form .primary-button {
        width: 100%;
    }

    .footer-inner {
        min-height: 0;
        padding: 58px 24px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-logo {
        width: 210px;
    }

    .footer-portals {
        grid-column: auto;
    }
}

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

    * {
        transition: none !important;
    }
}
