/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
    --primary: #a03f28;
    --primary-container: #c0573e;
    --on-primary: #ffffff;
    --secondary: #8b5006;
    --background: #fff8f6;
    --surface: #fff8f6;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #fff1ec;
    --surface-container: #ffe9e2;
    --surface-container-high: #ffe2d8;
    --surface-container-highest: #fddbd0;
    --on-surface: #291710;
    --on-surface-variant: #56423d;
    --outline-variant: #ddc0ba;

    --font-display: 'Libre Caslon Text', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --container-max: 1200px;
    --gutter: 24px;
    --margin-desktop: 40px;
    --margin-mobile: 16px;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
}


/* ==========================================================================
   02. BASE RESET & GLOBALS
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    padding-top: 80px;
}

h1,
h2,
h3,
.brand-logo {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, transform 0.25s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--margin-desktop);
    }
}


/* ==========================================================================
   03. UTILITIES & BUTTONS
   ========================================================================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.section-padding {
    padding: 56px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 96px 0;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(160, 63, 40, 0.2);
    display: inline-block;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: scale(1.02);
}

.btn-hero {
    padding: 16px 32px;
}


/* ==========================================================================
   04. NAVIGATION
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 248, 246, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--outline-variant);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: none;
    gap: var(--gutter);
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--on-surface-variant);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: none;
    gap: 16px;
}

.brand-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-btn {
    display: block;
    color: var(--on-surface);
}

.mobile-menu-btn .material-symbols-outlined {
    font-size: 32px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .brand-logo {
        font-size: 40px;
    }
}


/* ==========================================================================
   05. HERO
   ========================================================================== */
#hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-bg img {
    width: 105%;
    height: 150%;
    object-fit: cover;
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface), rgba(255, 248, 246, 0.8), transparent);
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-content {
    max-width: 768px;
    padding: 0 var(--margin-mobile);
    z-index: 1;
}

h1 {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 24px;
    font-weight: 700;
}

h1 .italic {
    font-style: italic;
    color: var(--primary);
}

.hero-p {
    font-size: 18px;
    line-height: 28px;
    color: var(--on-surface-variant);
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 48px;
        line-height: 56px;
    }
}


/* ==========================================================================
   06. SIGNATURE SENJA / FEATURED CARDS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 64px;
    }
}

.section-header h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }
}

.section-header p {
    color: var(--on-surface-variant);
    max-width: 500px;
    margin: 0 auto;
    font-size: 14px;
}

@media (min-width: 768px) {
    .section-header p {
        font-size: 16px;
    }
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--gutter);
    }
}

.card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(221, 192, 186, 0.3);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(41, 23, 16, 0.06);
    display: flex;
    flex-direction: column;
}

/* Mobile: card-large jadi horizontal compact */
.card-large {
    flex-direction: row;
    height: auto;
}

.card-large .card-img {
    width: 44%;
    height: auto;
    flex-shrink: 0;
}

.card-large .card-body {
    width: 56%;
    padding: 16px;
    margin-top: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .card-large {
        flex-direction: column;
        grid-column: span 7;
        height: 500px;
    }

    .card-large .card-img {
        width: 100%;
        height: 66%;
    }

    .card-large .card-body {
        width: 100%;
        padding: 24px;
        margin-top: -24px;
        background: var(--surface-container-lowest);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

.card-small-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .card-small-col {
        grid-column: span 5;
        gap: var(--gutter);
    }
}

.card-small {
    flex: 1;
    flex-direction: row;
}

.card-small .card-img {
    width: 40%;
    flex-shrink: 0;
}

.card-small .card-body {
    width: 60%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .card-small .card-body {
        padding: 20px;
    }
}

.card-small .card-title {
    font-size: 16px;
}

.card-small .card-desc {
    margin-bottom: 8px;
    font-size: 12px;
}

.card-small .card-price {
    font-size: 14px;
}

@media (min-width: 768px) {
    .card-small .card-title {
        font-size: 20px;
    }

    .card-small .card-desc {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .card-small .card-price {
        font-size: 16px;
    }
}

.card-img {
    overflow: hidden;
    position: relative;
}

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

.card-body {
    padding: 14px;
}

@media (min-width: 768px) {
    .card-body {
        padding: 24px;
    }
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 24px;
    }
}

.card-price {
    color: var(--secondary);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .card-price {
        font-size: 18px;
        font-weight: 500;
    }
}

.card-desc {
    font-size: 12px;
    color: var(--on-surface-variant);
}

@media (min-width: 768px) {
    .card-desc {
        font-size: 14px;
    }
}

.tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .tags {
        gap: 8px;
        margin-top: 16px;
    }
}

.tag {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--surface-container);
    border-radius: 9999px;
    font-weight: 600;
}


/* ==========================================================================
   07. ABOUT / STORY
   ========================================================================== */
#about {
    padding: 96px 0;
    background: var(--surface-container-low);
    scroll-margin-top: 100px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 65px;
    align-items: center;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-text {
        order: 2;
    }

    .story-img-container {
        order: 1;
    }
}

.story-img {
    overflow: hidden;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(41, 23, 16, 0.1);
    position: relative;
    z-index: 1;
}

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

.overline {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.story-title {
    font-size: 36px;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .story-title {
        font-size: 48px;
    }
}

.story-p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
}

.team-section {
    margin-top: 96px;
    text-align: center;
}

.team-section-title {
    font-size: 32px;
    margin-bottom: 48px;
}

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

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.team-card {
    padding: 24px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(221, 192, 186, 0.3);
}

.team-card h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 4px;
}

.team-card span {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
}


/* ==========================================================================
   08. MENU CATALOG
   ========================================================================== */
#menu {
    padding: 96px 0;
}

.menu-header {
    margin-bottom: 64px;
}

.menu-header p {
    color: var(--on-surface-variant);
    max-width: 600px;
    margin-bottom: 10px;
}

.menu-filter {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin-top: -38px;
    padding-bottom: 38px;
    scrollbar-width: none;
}

.menu-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 9999px;
    background: var(--surface-container-high);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: var(--on-primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 24px;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 64px 24px;
    }
}

.menu-item {
    text-align: center;
    transition: opacity 0.4s ease;
}

.menu-item-img {
    overflow: hidden;
    aspect-ratio: 1/1;
    border-radius: 14px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(41, 23, 16, 0.05);
    border: 1px solid rgba(221, 192, 186, 0.3);
}

@media (min-width: 768px) {
    .menu-item-img {
        aspect-ratio: 4/5;
        border-radius: 20px;
        margin-bottom: 24px;
    }
}

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

.menu-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.menu-item p {
    color: var(--on-surface-variant);
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .menu-item h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .menu-item p {
        font-size: 14px;
        margin-bottom: 16px;
        overflow: visible;
    }
}

.menu-item .price {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .menu-item .price {
        font-size: 18px;
        font-weight: 500;
    }
}


/* ==========================================================================
   09. STORE LOCATOR
   ========================================================================== */
#store {
    padding: 96px 0;
    background: var(--surface-container-low);
}

.store-container {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(221, 192, 186, 0.3);
    height: 600px;
}

@media (min-width: 1024px) {
    .store-container {
        flex-direction: row;
    }
}

.store-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(221, 192, 186, 0.3);
}

@media (min-width: 1024px) {
    .store-list {
        width: 33.33%;
    }
}

.store-list-header {
    padding: 24px;
    background: var(--surface-container-low);
    border-bottom: 1px solid rgba(221, 192, 186, 0.3);
}

.store-list-header h3 {
    color: var(--primary);
}

.store-list-header p {
    font-size: 14px;
}

.store-items {
    overflow-y: auto;
    flex: 1;
    padding: 16px;
}

.store-item {
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.store-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.store-item.active {
    background: var(--surface-container-high);
    border-color: rgba(221, 192, 186, 0.5);
}

.store-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.store-item p {
    font-size: 14px;
    color: var(--on-surface-variant);
    display: flex;
    align-items: start;
    gap: 8px;
}

.store-item-time {
    font-size: 12px;
    margin-top: 12px;
    display: block;
}

#map-dago {
    border: 0;
    display: block;
}

#map-buah-batu {
    border: 0;
    display: none;
}

.map-view {
    width: 100%;
    height: 300px;
}

@media (min-width: 1024px) {
    .map-view {
        width: 66.66%;
        height: 100%;
    }
}


/* ==========================================================================
   10. RESERVASI
   ========================================================================== */
#reservasi {
    padding: 96px 0;
}

.res-container {
    background: rgba(192, 87, 62, 0.1);
    border-radius: 2rem;
    padding: 32px;
    border: 1px solid rgba(160, 63, 40, 0.2);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 768px) {
    .res-container {
        padding: 64px;
        flex-direction: row;
    }
}

.res-form-side {
    flex: 1;
}

.res-form-side h2 {
    font-size: 40px;
}

.res-form-side>p {
    margin-bottom: 32px;
    color: var(--on-surface-variant);
}

.res-info-side {
    width: 100%;
}

@media (min-width: 768px) {
    .res-info-side {
        width: 33.33%;
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--on-surface-variant);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(221, 192, 186, 0.5);
    border-radius: var(--radius-lg);
    background: var(--surface-container-lowest);
    font-family: inherit;
    font-size: 15px;
}

.form-control:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.btn-submit-full {
    width: 100%;
    padding: 16px;
}

.info-card {
    background: var(--surface-container-lowest);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(221, 192, 186, 0.3);
}

.info-card h3,
.info-card-title {
    color: var(--primary);
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(221, 192, 186, 0.2);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.info-row span:last-child {
    font-weight: 600;
}

.info-contact-box {
    margin-top: 32px;
    padding: 16px;
    background: var(--surface-container-low);
    border-radius: 8px;
}

.info-contact-label {
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

.info-contact-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer {
    background: var(--surface-container-highest);
    padding: 64px 0;
    border-top: 1px solid rgba(221, 192, 186, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-p {
    font-size: 14px;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 360px;
}

.footer-heading {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-info-list {
    color: var(--on-surface-variant);
    font-size: 14px;
    line-height: 1.8;
}

.footer-info-list li span {
    font-size: 12px;
    opacity: 0.8;
}

.footer-contact-area {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 16px;
    margin-top: 24px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.footer-contact-link:hover {
    transform: translateY(-2px);
}

.copyright {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: var(--on-surface-variant);
    text-align: center;
}


/* ==========================================================================
   12. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.team-grid .team-card:nth-child(1) {
    transition-delay: 0.1s;
}

.team-grid .team-card:nth-child(2) {
    transition-delay: 0.2s;
}

.team-grid .team-card:nth-child(3) {
    transition-delay: 0.3s;
}

.team-grid .team-card:nth-child(4) {
    transition-delay: 0.4s;
}

.team-grid .team-card:nth-child(5) {
    transition-delay: 0.5s;
}


/* ==========================================================================
   13. HERO ENTRANCE ANIMATIONS
   ========================================================================== */
.hero-reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.hero-reveal-item.hero-revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1.hero-revealed {
    transition-delay: 0.3s;
}

.hero-content .hero-p.hero-revealed {
    transition-delay: 0.5s;
}

.hero-content .btn-primary.hero-revealed {
    transition-delay: 0.7s;
}


/* ==========================================================================
   14. MOBILE NAVIGATION DROPDOWN
   ========================================================================== */
@media (max-width: 767px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--surface-container-lowest);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 8px 24px rgba(41, 23, 16, 0.1);
        text-align: center;
        border-bottom: 1px solid var(--outline-variant);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav-links.show-menu {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-actions {
        display: none;
    }
}