/* Design System Variables */
:root {
    --surface: #fbf9f4;
    --surface-dim: #dbdad5;
    --surface-bright: #fbf9f4;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f5f3ee;
    --surface-container: #f0eee9;
    --surface-container-high: #eae8e3;
    --surface-container-highest: #e4e2dd;
    --on-surface: #1b1c19;
    --on-surface-variant: #424845;
    --inverse-surface: #30312e;
    --inverse-on-surface: #f2f1ec;
    --outline: #737875;
    --outline-variant: #c2c8c3;
    --surface-tint: #50625a;
    --primary: #4e6058;
    --on-primary: #ffffff;
    --primary-container: #667970;
    --on-primary-container: #f5fff8;
    --inverse-primary: #b7cbc1;
    --secondary: #705b32;
    --on-secondary: #ffffff;
    --secondary-container: #f9dca8;
    --on-secondary-container: #756036;
    --tertiary: #68594a;
    --on-tertiary: #ffffff;
    --tertiary-container: #827261;
    --on-tertiary-container: #fffbff;
    --background: #fbf9f4;
    --on-background: #1b1c19;
    --surface-variant: #e4e2dd;

    /* Typography */
    --font-headline: 'Noto Serif', serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --unit: 8px;
    --container-max: 1280px;
    --gutter: 24px;
    --section-padding: 120px;

    /* Shadows */
    --ambient-shadow: 0 20px 40px -10px rgba(122, 141, 132, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

section {
    padding: var(--section-padding) 0;
}

/* Typography Classes */
h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(48px, 8vw, 72px);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 2rem;
}

h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.body-lg {
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--on-surface-variant);
}

.label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--outline);
    display: block;
    margin-bottom: 1.5rem;
}

/* Navbar */
.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(251, 249, 244, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(115, 120, 117, 0.05);
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 48px;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--on-surface);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.05em;
}

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

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 96, 88, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-container);
    border-color: var(--secondary-container);
    color: var(--on-secondary-container);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-container);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(40px);
}

.organic-mask {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    border-radius: 2rem;
    box-shadow: var(--ambient-shadow);
    transition: clip-path 1s ease;
}

.organic-mask:hover {
    clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 10% 100%);
}

.organic-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.organic-mask:hover img {
    transform: scale(1.1);
}

/* Services Grid */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    background-color: transparent;
    padding: 0;
    text-align: left;
    transition: transform 0.4s ease;
}

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

.card-image {
    width: 100%;
    aspect-ratio: 1/1.2;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--ambient-shadow);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card h3 {
    margin-bottom: 0.75rem;
}

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

/* Quote Section */
.quote-section {
    background-color: var(--surface-container-low);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--primary-fixed);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    opacity: 0.1;
    filter: blur(60px);
}

blockquote {
    font-family: var(--font-headline);
    font-size: clamp(28px, 4vw, 40px);
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
    color: var(--primary);
}

blockquote::before {
    content: "“";
    font-size: 120px;
    color: var(--secondary);
    opacity: 0.15;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

cite {
    display: block;
    margin-top: 3rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--outline);
}

/* Journal Section */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.journal-item {
    background-color: var(--surface-container-lowest);
    padding: 60px;
    border-radius: 2rem;
    box-shadow: var(--ambient-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.4s ease;
}

.journal-item:hover {
    box-shadow: 0 30px 60px -20px rgba(122, 141, 132, 0.15);
}

.chip {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--tertiary-fixed);
    color: var(--on-tertiary-fixed-variant);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    width: fit-content;
}

.journal-item h3 {
    font-size: 28px;
    margin-bottom: 1.5rem;
}

.link-more {
    display: inline-block;
    margin-top: 2.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    width: fit-content;
}

.link-more:hover {
    padding-right: 10px;
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Footer */
.footer {
    background-color: var(--on-surface);
    color: var(--surface-bright);
    padding: 100px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand p {
    margin-top: 2rem;
    max-width: 300px;
    opacity: 0.7;
    font-size: 15px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-nav a {
    color: var(--surface-variant);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-fixed);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    text-align: center;
    font-size: 12px;
    color: var(--outline);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .journal-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

