/* ========================================
   Kiln Nutrition — Styles
   Palette: Terracotta + Sand | Fresh & Airy
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C07A5A;
    --color-terracotta-dark: #A86545;
    --color-terracotta-light: #D4A574;
    --color-sand: #F5EDE4;
    --color-sand-light: #FAF6F2;
    --color-sand-dark: #E8DDD3;
    --color-cream: #FFFCF8;
    --color-warm-white: #FFF9F4;
    --color-text: #3D2B1F;
    --color-text-muted: #7A6455;
    --color-text-light: #9E8A7C;
    --color-white: #FFFFFF;
    --color-dark: #2A1F18;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.08);
    --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.lead {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(192, 122, 90, 0.3);
}

.btn--primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(192, 122, 90, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-text);
}

.navbar.scrolled .logo-text,
.navbar .logo-text {
    color: var(--color-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: var(--transition);
    border-radius: 1px;
}

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

.nav-links a::after:hover {
    width: 100%;
}

.nav-cta {
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-terracotta-dark);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    color: var(--color-text);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: var(--color-text);
    padding: 0.5rem;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-text);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--color-terracotta);
}

.mobile-link--cta {
    margin-top: var(--space-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.875rem 2.5rem;
    border-radius: var(--radius-xl);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 31, 24, 0.72) 0%,
        rgba(61, 43, 31, 0.58) 50%,
        rgba(168, 101, 69, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: var(--space-xl);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-terracotta-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 252, 248, 0.85);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 252, 248, 0.6);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections --- */
.section {
    padding: var(--space-3xl) 0;
}

/* --- About --- */
.about {
    background: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.about-img-secondary img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.badge-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.about-text {
    padding: var(--space-md) 0;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-terracotta);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-sand-dark);
    flex-shrink: 0;
}

/* --- Products --- */
.products {
    background: var(--color-sand-light);
}

.products .section-header {
    margin-bottom: var(--space-2xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    overflow: hidden;
    height: 240px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: var(--space-md);
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Philosophy --- */
.philosophy {
    background: var(--color-cream);
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.philosophy-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.philosophy-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.philosophy-content {
    padding: var(--space-md) 0;
}

.philosophy-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.philosophy-point {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.philosophy-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--color-sand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-point h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.philosophy-point p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Visit --- */
.visit {
    background: var(--color-sand-light);
    padding-bottom: var(--space-2xl);
}

.visit-banner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.visit-content {
    padding: var(--space-2xl) var(--space-xl);
}

.visit-content .section-subtitle {
    margin: 0 0 var(--space-lg) 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.visit-detail svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.visit-detail strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.visit-detail span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.visit-image {
    height: 100%;
    min-height: 500px;
}

.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contact --- */
.contact {
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-sand-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--color-sand);
    transform: translateX(4px);
}

.contact-method svg {
    flex-shrink: 0;
}

.contact-method span {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--color-sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-sand-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(192, 122, 90, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: #E8F5E9;
    border-radius: var(--radius-sm);
    color: #2E7D32;
    font-size: 0.9rem;
}

.form-success.visible {
    display: flex;
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: rgba(255, 252, 248, 0.7);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
}

.logo--light .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a,
.footer-links li {
    font-size: 0.9rem;
    color: rgba(255, 252, 248, 0.6);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links li:hover {
    color: var(--color-terracotta-light);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 252, 248, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 252, 248, 0.4);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .philosophy-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-img-secondary {
        right: 0;
    }

    .visit-banner {
        grid-template-columns: 1fr;
    }

    .visit-image {
        min-height: 350px;
    }

    .philosophy-image img {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .stat-divider {
        display: none;
    }

    .visit-content {
        padding: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .about-img-secondary {
        width: 65%;
        bottom: -25px;
        right: -10px;
    }

    .about-img-main img {
        height: 360px;
    }

    .contact-form-wrapper {
        padding: var(--space-md);
    }
}
