/* --- CSS Variables --- */
:root {
    /* Colors */
    --color-cream: #FDFBF7;
    --color-sand: #EAE1D8;
    --color-sand-rgb: 234, 225, 216; /* For opacity usage */
    --color-terracotta: #D48C76;
    --color-terracotta-dark: #B8725E;
    --color-dark: #3A3532;
    --color-muted: #7A736E;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;

    /* Shadows & Radii */
    --shadow-soft: 0 20px 50px -10px rgba(58, 53, 50, 0.05);
    --shadow-soft-hover: 0 30px 60px -15px rgba(58, 53, 50, 0.1);
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem; /* 40px */
    --radius-full: 9999px;
    --radius-organic: 40% 60% 70% 30% / 40% 50% 60% 50%;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Selection styling */
::selection {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Typography Classes --- */
.font-serif { font-family: var(--font-serif); }
.text-terracotta { color: var(--color-terracotta); }
.text-dark { color: var(--color-dark); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-muted); }
.italic { font-style: italic; }

.section-subtitle {
    color: var(--color-terracotta);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .container { padding: 0 4rem; }
}

.section-padding {
    padding: 6rem 0;
}
@media (min-width: 768px) {
    .section-padding { padding: 8rem 0; }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}
.btn-dark:hover {
    background-color: var(--color-terracotta);
}

.btn-outline {
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}
.btn-outline:hover {
    background-color: var(--color-sand);
}

/* --- Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    z-index: 51;
}
@media (min-width: 768px) { .logo { font-size: 1.875rem; } }

.nav-desktop {
    display: none;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-desktop a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-desktop a:hover { color: var(--color-terracotta); }

.mobile-menu-btn {
    display: block;
    z-index: 51;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-cream);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-dark);
}

/* Scrolled Header State */
.header.nav-scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.blob-bg {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background-color: var(--color-sand);
    border-radius: var(--radius-organic);
    opacity: 0.4;
    filter: blur(40px);
    transform: translate(30%, -30%);
    z-index: 0;
}
@media (min-width: 768px) { .blob-bg { display: block; } }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-content {
    order: 2;
    margin-top: 2.5rem;
}
@media (min-width: 768px) {
    .hero-content { order: 1; margin-top: 0; }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }

.hero-desc {
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-image-wrapper {
    order: 1;
    position: relative;
}
@media (min-width: 768px) { .hero-image-wrapper { order: 2; } }

.hero-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
    .hero-image { border-radius: 100px 100px 40px 40px; }
}

.hero-badge {
    display: none;
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .hero-badge { display: block; } }

.hero-badge-title { font-family: var(--font-serif); font-size: 1.875rem; color: var(--color-terracotta); margin-bottom: 0.25rem; }
.hero-badge-subtitle { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--color-muted); letter-spacing: 0.05em; }


/* --- Filosofi Section --- */
.filosofi-section {
    background-color: rgba(var(--color-sand-rgb), 0.3);
}
.filosofi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 768px) { .filosofi-grid { grid-template-columns: 1fr 1fr; } }

.filosofi-img-wrapper {
    order: 2;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { 
    .filosofi-img-wrapper { order: 1; height: 600px; }
}

.filosofi-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.filosofi-img-wrapper:hover img { transform: scale(1.05); }

.filosofi-content { order: 1; }
@media (min-width: 768px) { .filosofi-content { order: 2; } }

.filosofi-quote {
    border-left: 2px solid var(--color-terracotta);
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}


/* --- Layanan Section --- */
.layanan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .layanan-grid { grid-template-columns: 1fr 1fr; } }

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--color-sand);
}
@media (min-width: 768px) { .service-card { padding: 3.5rem; } }
.service-card:hover { box-shadow: var(--shadow-soft-hover); }

.service-card.card-sand {
    background-color: rgba(var(--color-sand-rgb), 0.4);
    border: none;
}
@media (min-width: 768px) { .service-card.card-sand { margin-top: 3rem; } }

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--color-terracotta);
}
.icon-box.bg-sand { background-color: var(--color-sand); }
.icon-box.bg-white { background-color: var(--color-white); }
.icon-box svg { width: 1.75rem; height: 1.75rem; }

.service-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.service-desc { color: var(--color-muted); margin-bottom: 2rem; }

.link-terracotta {
    display: inline-flex;
    align-items: center;
    color: var(--color-terracotta);
    font-weight: 500;
    transition: color 0.3s ease;
}
.link-terracotta:hover { color: var(--color-terracotta-dark); }
.link-terracotta svg { width: 1rem; height: 1rem; margin-left: 0.5rem; }


/* --- Produk Section (Asymmetrical Grid) --- */
.produk-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .produk-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.link-underline {
    border-bottom: 1px solid var(--color-dark);
    padding-bottom: 4px;
    margin-top: 1.5rem;
    transition: var(--transition-smooth);
}
.link-underline:hover { color: var(--color-terracotta); border-color: var(--color-terracotta); }

.produk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .produk-grid { grid-template-columns: repeat(12, 1fr); gap: 2.5rem; }
}

.product-card { cursor: pointer; margin-bottom: 1.5rem; }

/* Grid Spans for Asymmetry */
@media (min-width: 768px) {
    .pc-1 { grid-column: span 5; }
    .pc-2 { grid-column: span 7; margin-top: 6rem; }
    .pc-3 { grid-column: span 6; margin-top: 2.5rem; }
}

.product-img-box {
    position: relative;
    background-color: rgba(var(--color-sand-rgb), 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.pc-1 .product-img-box { aspect-ratio: 4/5; }
.pc-2 .product-img-box { aspect-ratio: 16/11; }
@media (min-width: 768px) { .pc-2 .product-img-box { border-radius: 60px; } }
.pc-3 .product-img-box { aspect-ratio: 4/3; }

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.product-card:hover .product-img-box img { transform: scale(1.05); }

.product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.product-card:hover .product-overlay { background-color: rgba(0,0,0,0.1); }

.product-btn {
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}
.product-card:hover .product-btn { opacity: 1; transform: translateY(0); }

.product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 20;
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.25rem; transition: color 0.3s ease; }
.product-card:hover .product-title { color: var(--color-terracotta); }
.product-ingredients { color: var(--color-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.product-price { font-weight: 500; color: var(--color-dark); }


/* --- Testimonial Section --- */
.testi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .testi-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .tc-1 { margin-top: 3rem; }
    .tc-2 { margin-top: -1.5rem; }
    .tc-3 { margin-top: 6rem; }
}

.testi-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .testi-card { padding: 2.5rem; } }

.testi-card.bg-terracotta {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.stars { margin-bottom: 1.5rem; letter-spacing: 2px; }
.testi-text { line-height: 1.8; margin-bottom: 2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 1rem; }

.author-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-sand);
    overflow: hidden;
}
.author-img img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: var(--font-serif); font-weight: 500; }
.author-duration { font-size: 0.75rem; opacity: 0.8; }


/* --- Footer --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-radius: 40px 40px 0 0;
}
@media (min-width: 768px) { .footer { border-radius: 80px 80px 0 0; } }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
    .fc-1 { grid-column: span 5; }
    .fc-2 { grid-column: span 2; }
    .fc-3 { grid-column: span 5; }
}

.footer-logo {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-desc { color: #9ca3af; font-size: 0.875rem; margin-bottom: 2rem; max-width: 350px; }

.social-links { display: flex; gap: 1rem; }
.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.social-icon:hover { background-color: var(--color-terracotta); border-color: var(--color-terracotta); }
.social-icon svg { width: 1rem; height: 1rem; fill: currentColor; }

.footer-title { font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #9ca3af; font-size: 0.875rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--color-terracotta); }

.newsletter-desc { color: #9ca3af; font-size: 0.875rem; margin-bottom: 1rem; }
.newsletter-form {
    display: flex;
    border-bottom: 1px solid #4b5563;
    padding-bottom: 0.5rem;
}
.newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 0.875rem;
    width: 100%;
}
.newsletter-form button {
    color: var(--color-terracotta);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.newsletter-form button:hover { color: var(--color-white); }

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--color-white); }

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}