/* CSS Variables & Design Tokens */
:root {
    --primary: #13ec5b;
    --sage-50: #f4f7f5;
    --sage-100: #e3e9e5;
    --sage-200: #c7d5cd;
    --sage-600: #61896f;
    --sage-800: #3a5243;
    --rose-very-light: #fef9f9;
    --rose-light: #fcefed;
    --rose-200: #f7dbd7;
    --light: #fdfcfb;
    --white: #ffffff;
    --dark: #102216;
    --slate: #475569;
    --text-muted: #61896f;

    --font-display: 'Newsreader', serif;
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --container-max: 1280px;
    --gap-base: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.grid {
    display: grid;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

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

.text-muted {
    color: var(--text-muted);
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: 700;
}

.font-normal {
    font-weight: 400;
}

.uppercase {
    text-transform: uppercase;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

.max-w-500 {
    max-width: 500px;
}

.max-w-600 {
    max-width: 600px;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

/* Grid System */
@media (min-width: 768px) {
    .md-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (min-width: 640px) {
    .sm-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Global Visibility Toggles */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .nav-links {
        display: none !important;
        /* Force hide nav links on mobile */
    }
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block !important;
    }

    .show-mobile {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .show-desktop {
        display: block;
    }
}

@media (max-width: 1023px) {
    .show-desktop {
        display: none;
    }
}

/* UI Elements */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--rose-light);
    color: var(--sage-800);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.badge .material-symbols-outlined {
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary-sm {
    background: var(--sage-600);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
}

.btn-primary-sm:hover {
    background: var(--sage-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(97, 137, 111, 0.2);
}

.btn-dark {
    background: var(--sage-600);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-dark:hover {
    background: var(--sage-800);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--sage-200);
    background: transparent;
    color: var(--sage-800);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline:hover {
    background: var(--sage-50);
}

.btn-light-large {
    background: var(--white);
    color: var(--sage-800);
    padding: 1rem 3rem;
    font-size: 1.25rem;
}

.btn-light-large:hover {
    background: var(--rose-light);
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 4rem 0;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--sage-100);
}

.navbar .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.15rem;
}

.brand-ivy {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 500;
    font-style: italic;
    color: var(--sage-800);
    letter-spacing: 0.02em;
}

.brand-emb {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--sage-600);
    text-transform: uppercase;
}

.logo-icon {
    width: 38px;
    height: 38px;
    color: var(--sage-600);
    flex-shrink: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sage-800);
    display: flex;
    align-items: center;
    padding: 0.25rem;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sage-800);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

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

/* Hero Section */
.text-hero {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 300;
    color: var(--sage-800);
    margin-bottom: 1.5rem;
}

.text-lead {
    font-size: 1.125rem;
    color: var(--sage-600);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-visual {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.organic-blob {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 40%;
    transform: rotate(12deg) scale(1.2);
    opacity: 0.6;
}

.hero-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 8px solid var(--white);
}

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

.floating-quote {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    max-width: 250px;
}

.floating-quote p {
    font-size: 0.875rem;
    color: var(--sage-600);
}

/* Services */

/* Story Section — redesigned editorial layout */
.story {
    background: var(--sage-800);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.story::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.story-inner {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.story-label-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    flex-shrink: 0;
}

.story-year {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.story-vert-line {
    flex: 1;
    width: 1px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.2);
}

.story-body {
    flex: 1;
    padding: 0.5rem 0;
}

.story-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.story-heading {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 2rem;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 480px;
    margin-bottom: 3rem;
}

.story-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
}

.story-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-ui);
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
}

.story-image-col {
    flex: 0 0 340px;
    align-self: stretch;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    min-height: 400px;
    max-height: 520px;
    opacity: 0.85;
}

@media (max-width: 1024px) {
    .story-image-col {
        flex: 0 0 260px;
    }
}

@media (max-width: 767px) {
    .story-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .story-label-col {
        flex-direction: row;
        padding-top: 0;
    }

    .story-year {
        writing-mode: initial;
        transform: none;
    }

    .story-vert-line {
        width: 80px;
        height: 1px;
        min-height: unset;
    }

    .story-image-col {
        display: none;
    }

    .story-stats {
        gap: 1.25rem;
    }

    .stat-divider {
        height: 2rem;
    }
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--sage-800);
    line-height: 1.3;
    margin-bottom: 2rem;
}

.section-title span.italic {
    display: block;
    margin-top: 0.5rem;
}

.card-img-wrapper {
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--sage-50);
}

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

.service-card:hover .card-img {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sage-800);
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--sage-600);
}

.offset-top {
    transform: translateY(2rem);
}

@media (max-width: 767px) {
    .offset-top {
        transform: none;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Story Section */
.rounded-img {
    border-radius: var(--radius-md);
    object-fit: cover;
}

.aspect-1 {
    aspect-ratio: 1/1;
}

.aspect-4-3 {
    aspect-ratio: 4/3;
}

.divider-with-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-with-text .line {
    width: 3rem;
    height: 1px;
    background: var(--sage-600);
}

.divider-with-text .text {
    color: var(--sage-800);
}

/* CTA Box Premium */
.cta-box-premium {
    padding: 6rem 2rem;
    border-radius: 4rem;
    background: var(--sage-800);
    color: var(--white);
    box-shadow: 0 30px 60px -12px rgba(16, 34, 22, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 100% 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.text-display-lg {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
}

.story-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-text-wrapper p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--sage-800);
    opacity: 0.9;
}

/* Footer */
.footer-heading {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sage-800);
    margin-bottom: 2rem;
}

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

.footer-links a {
    color: var(--sage-600);
}

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

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sage-600);
}

.social-icon.facebook-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: var(--sage-600);
    color: var(--white);
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.social-icon.facebook-icon:hover {
    background: var(--sage-800);
    transform: translateY(-2px);
}

.footer-bottom {
    font-size: 0.875rem;
    color: var(--slate);
}

/* Typography Overrides */
.text-body p {
    font-size: 1.125rem;
    color: var(--sage-600);
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }

    .hero-visual {
        padding: 1rem;
    }

    .floating-quote {
        display: none;
    }

    /* Footer Centering on Mobile */
    .footer-brand,
    .footer-contact,
    .footer-social,
    .footer-bottom {
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-bottom.flex {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
    }
}