:root {
    /* Palette */
    --c-sand: #F5F0E8;
    --c-brown: #3D2314;
    --c-espresso: #2C1810;
    --c-terracotta: #C4694A;
    --c-bluegrey: #7A8B99;
    --c-saffron: #D4A84B;

    /* Typography */
    --f-display: 'Rakkas', serif;
    --f-body: 'DM Sans', sans-serif;

    /* Spacing */
    --s-container: 1200px;
    --s-gutter: 2rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--c-sand);
    color: var(--c-espresso);
    font-family: var(--f-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

h1,
h2,
h3,
h4 {
    font-family: var(--f-display);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

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

/* Utilities */
.container {
    max-width: var(--s-container);
    margin: 0 auto;
    padding: 0 var(--s-gutter);
    position: relative;
}

.section-padding {
    padding: 8rem 0;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sadu Pattern Elements */
.sadu-strip {
    height: 80px;
    width: 100%;
    background-color: var(--c-espresso);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.bg%7Bfill:%232C1810;%7D.accent1%7Bfill:%23C4694A;%7D.accent2%7Bfill:%23D4A84B;%7D.light%7Bfill:%23F5F0E8;%7D%3C/style%3E%3C/defs%3E%3Crect width='100' height='80' class='bg'/%3E%3C!-- Top Bands --%3E%3Crect y='5' width='100' height='10' class='accent1'/%3E%3Cpath d='M0,15 l5,-5 l5,5 M10,15 l5,-5 l5,5 M20,15 l5,-5 l5,5 M30,15 l5,-5 l5,5 M40,15 l5,-5 l5,5 M50,15 l5,-5 l5,5 M60,15 l5,-5 l5,5 M70,15 l5,-5 l5,5 M80,15 l5,-5 l5,5 M90,15 l5,-5 l5,5' fill='none' stroke='%23F5F0E8' stroke-width='1'/%3E%3C!-- Bottom Bands --%3E%3Crect y='65' width='100' height='10' class='accent1'/%3E%3Cpath d='M0,65 l5,5 l5,-5 M10,65 l5,5 l5,-5 M20,65 l5,5 l5,-5 M30,65 l5,5 l5,-5 M40,65 l5,5 l5,-5 M50,65 l5,5 l5,-5 M60,65 l5,5 l5,-5 M70,65 l5,5 l5,-5 M80,65 l5,5 l5,-5 M90,65 l5,5 l5,-5' fill='none' stroke='%23F5F0E8' stroke-width='1'/%3E%3C!-- Center Row --%3E%3Cpath d='M0,40 L12.5,25 L25,40 L12.5,55 Z M25,40 L37.5,25 L50,40 L37.5,55 Z M50,40 L62.5,25 L75,40 L62.5,55 Z M75,40 L87.5,25 L100,40 L87.5,55 Z' class='accent2'/%3E%3Ccircle cx='12.5' cy='40' r='3' class='light'/%3E%3Ccircle cx='37.5' cy='40' r='3' class='light'/%3E%3Ccircle cx='62.5' cy='40' r='3' class='light'/%3E%3Ccircle cx='87.5' cy='40' r='3' class='light'/%3E%3C/svg%3E");
    background-size: 100px 80px;
    background-repeat: repeat-x;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    filter: contrast(0.8) brightness(1.1) saturate(0.6);
    opacity: 0.9;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, var(--c-sand) 0%, #e6dfd3 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4694A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: bg-shift 60s linear infinite;
}

@keyframes bg-shift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

/* Kinetic Ribs */
.kinetic-ribs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

.rib {
    transform-origin: 50% 100%;
    animation: rib-breathe 8s ease-in-out infinite;
}

.rib-right {
    transform-origin: 50% 100%;
    animation: rib-breathe-right 8s ease-in-out infinite;
}

@keyframes rib-breathe {

    0%,
    100% {
        transform: scaleX(1) skewX(0deg);
    }

    50% {
        transform: scaleX(1.1) skewX(2deg);
    }
}

@keyframes rib-breathe-right {

    0%,
    100% {
        transform: scaleX(1) skewX(0deg);
    }

    50% {
        transform: scaleX(1.1) skewX(-2deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.6;
    }
}

.hero-logo {
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: -0.02em;
    color: var(--c-brown);
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(61, 35, 20, 0.1);
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--c-terracotta);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    pointer-events: none;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: var(--c-brown);
    margin-top: 10px;
    animation: grow-line 2s infinite ease-in-out;
    transform-origin: top;
}

@keyframes grow-line {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* STORY SECTION */
.story-section {
    position: relative;
}

.story-block {
    max-width: 800px;
    margin: 0 auto 6rem;
    text-align: center;
}

.story-intro {
    font-size: 1.5rem;
    color: var(--c-brown);
}

.story-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--c-terracotta);
}

.divider-icon {
    width: 40px;
    height: 40px;
    margin: 3rem auto;
    position: relative;
    transform: rotate(45deg);
    background: var(--c-bluegrey);
    opacity: 0.2;
}

/* SPICE EXPERIENCE */
.spices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

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

@media (max-width: 600px) {
    .spices-grid {
        grid-template-columns: 1fr;
    }
}

.spice-card {
    background: white;
    padding: 3rem 1.5rem;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.spice-desc {
    font-size: 0.9rem;
    color: var(--c-bluegrey);
    margin-top: 1rem;
    line-height: 1.5;
    font-family: var(--f-body);
}

.spice-card:hover {
    transform: translateY(-10px);
}

.spice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--c-saffron);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.spice-card:hover::before {
    transform: scaleX(1);
}

.spice-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.spice-name {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--c-brown);
}

/* HERITAGE SECTION */
.heritage-section {
    background-color: var(--c-brown);
    color: var(--c-sand);
    position: relative;
    overflow: hidden;
}

.heritage-text {
    border-left: 2px solid var(--c-saffron);
    padding-left: 3rem;
    max-width: 600px;
}

/* QUOTE */
.quote-section {
    background: var(--c-sand);
    padding: 10rem 0;
}

.pull-quote {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    color: var(--c-terracotta);
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.pull-quote::before,
.pull-quote::after {
    content: '\2726';
    font-size: 1.5rem;
    color: var(--c-saffron);
    display: block;
    margin: 1rem auto;
}

/* CONTACT FORM */
.contact-section {
    background-color: var(--c-espresso);
    color: var(--c-sand);
    position: relative;
    padding-bottom: 6rem;
}

.contact-header {
    margin-bottom: 4rem;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    color: var(--c-sand);
    margin-bottom: 1rem;
}

.contact-sub {
    color: var(--c-bluegrey);
    font-size: 1.2rem;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 3rem;
    background: #23110a;
    border: 1px solid rgba(196, 105, 74, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background-image:
        linear-gradient(135deg, var(--c-saffron) 10px, transparent 10px),
        linear-gradient(225deg, var(--c-saffron) 10px, transparent 10px),
        linear-gradient(315deg, var(--c-saffron) 10px, transparent 10px),
        linear-gradient(45deg, var(--c-saffron) 10px, transparent 10px);
    background-position: top left, top right, bottom right, bottom left;
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

/* Floating tubing lines decoration */
.kinetic-line {
    position: absolute;
    stroke: var(--c-terracotta);
    stroke-width: 1;
    fill: none;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Form section titles */
.form-section-title {
    font-family: var(--f-display);
    font-size: 1.3rem;
    color: var(--c-saffron);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

/* Two-column form row */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--c-bluegrey);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    padding: 10px 0;
    color: var(--c-sand);
    font-family: var(--f-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--c-saffron);
    box-shadow: 0 1px 0 var(--c-saffron);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label,
.form-textarea:focus+.form-label,
.form-textarea:not(:placeholder-shown)+.form-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--c-saffron);
}

.form-select {
    cursor: pointer;
    color: var(--c-sand);
}

/* Date Input Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(100%) saturate(1000%) hue-rotate(350deg) brightness(0.8);
    cursor: pointer;
    opacity: 0.6;
}

input[type="date"] {
    color-scheme: dark;
    color: var(--c-sand);
}

/* Force label up for date inputs since they always have a placeholder/mask */
input[type="date"]+.form-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--c-saffron);
}

.submit-btn {
    background: var(--c-terracotta);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-family: var(--f-display);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #b05a3c;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Floating particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--c-saffron);
    opacity: 0.2;
    border-radius: 50%;
    pointer-events: none;
}

/* Footer */
footer {
    background: #1a0e09;
    color: rgba(245, 240, 232, 0.4);
    padding: 2rem 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .hero-logo {
        font-size: 15vw;
    }

    .hero-tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .story-title {
        font-size: 2.2rem;
    }

    .heritage-text {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--c-saffron);
        padding-top: 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    /* Stack form split fields on mobile */
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .spice-card {
        padding: 2rem 1rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }
}
