/*
Theme Name: Fit Yaşam
Theme URI: http://localhost:3000
Author: Antigravity
Author URI: https://google.com
Description: A premium, museum-grade healthy living blog theme with a refined linen aesthetic.
Version: 1.0.0
Text Domain: fit-yasam
*/

:root {
    --background: #E6E3DA;
    --foreground: #020202;
    --primary: #04471C;
    --sage: #04471C;
    --parchment: #E6E3DA;
    --moss: #DAD7CE;
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
}

/* Reset & Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    /* Removed overflow-x: hidden to prevent sticky issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(4, 71, 28, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.bento-card:hover {
    border-color: rgba(4, 71, 28, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(4, 71, 28, 0.05);
}

/* Specific Spans (Mobile-first: span 12) */
.col-span-1,
.col-span-2,
.col-span-3,
.col-span-4,
.col-span-5,
.col-span-6,
.col-span-7,
.col-span-8,
.col-span-9,
.col-span-10,
.col-span-11,
.col-span-12 {
    grid-column: span 12 / span 12;
}

@media (min-width: 768px) {
    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .md\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .md\:col-span-5 {
        grid-column: span 5 / span 5;
    }

    .md\:col-span-6 {
        grid-column: span 6 / span 6;
    }

    .md\:col-span-7 {
        grid-column: span 7 / span 7;
    }

    .md\:col-span-8 {
        grid-column: span 8 / span 8;
    }

    .md\:col-span-9 {
        grid-column: span 9 / span 9;
    }

    .md\:col-span-10 {
        grid-column: span 10 / span 10;
    }

    .md\:col-span-11 {
        grid-column: span 11 / span 11;
    }

    .md\:col-span-12 {
        grid-column: span 12 / span 12;
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:col-span-5 {
        grid-column: span 5 / span 5;
    }

    .lg\:col-span-6 {
        grid-column: span 6 / span 6;
    }

    .lg\:col-span-7 {
        grid-column: span 7 / span 7;
    }

    .lg\:col-span-8 {
        grid-column: span 8 / span 8;
    }

    .lg\:col-span-9 {
        grid-column: span 9 / span 9;
    }

    .lg\:col-span-10 {
        grid-column: span 10 / span 10;
    }

    .lg\:col-span-11 {
        grid-column: span 11 / span 11;
    }

    .lg\:col-span-12 {
        grid-column: span 12 / span 12;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
}

.hero-text-container {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #04471C !important;
    margin-bottom: 2rem;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 7rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 8rem;
    }
}

.explore-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explore-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, #04471C, transparent);
}

.hero-canvas-container {
    height: 200vh;
    position: relative;
}

.sticky-canvas {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--background);
}

.sticky-canvas canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.canvas-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(230, 227, 218, 0.2), transparent, var(--background));
    pointer-events: none;
}

/* Premium Typography Scaling */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.text-8xl {
    font-size: 6rem;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

/* Footer Styles */
.site-footer {
    background-color: var(--background);
    border-top: 1px solid rgba(4, 71, 28, 0.05);
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 9rem 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 4rem;
    }
}

.footer-col {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .footer-col {
        grid-column: span 3;
    }

    .footer-col.branding {
        grid-column: span 4;
    }

    .footer-col:nth-child(2) {
        grid-column: span 2;
    }
}

.footer-logo {
    color: var(--foreground);
    font-family: var(--font-serif);
    letter-spacing: 0.2em;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2rem;
}

.footer-desc {
    color: var(--primary);
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    color: var(--primary);
}

.social-links a:hover {
    color: var(--foreground);
}

.footer-col h4 {
    color: var(--foreground);
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--foreground);
}

.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(4, 71, 28, 0.1);
    padding-bottom: 0.5rem;
}

.post-link .title {
    color: var(--foreground);
    font-size: 0.75rem;
    font-family: var(--font-serif);
}

.post-link .date {
    color: var(--primary);
    font-size: 8px;
    font-weight: 900;
    opacity: 0.4;
    text-transform: uppercase;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(4, 71, 28, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::selection {
    background-color: var(--primary);
    color: #EBEBDF;
}

/* Premium Contact Form */
.premium-contact-form {
    background-color: #A7AD9E;
    /* Muted Sage/Moss */
    padding: 3rem;
    border-radius: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.premium-contact-form .form-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: white;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.premium-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .premium-contact-form .form-row.two-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.premium-contact-form .field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.premium-contact-form label {
    font-size: 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.premium-contact-form .form-input {
    background-color: #989E8F;
    /* Darker sage for contrast */
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    font-family: var(--font-sans);
    outline: none;
    transition: background-color 0.3s;
}

.premium-contact-form .form-input:focus {
    background-color: #8D9384;
}

.premium-contact-form textarea.form-input {
    min-height: 150px;
    resize: none;
}

.premium-contact-form .submit-btn {
    width: 100%;
    margin-top: 2.5rem;
    background-color: white;
    color: var(--primary);
    border: none;
    border-radius: 1rem;
    padding: 1.25rem;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.premium-contact-form .submit-btn:hover {
    background-color: #F5F5F0;
    transform: translateY(-2px);
}