/* =========================================================================
   FLORAN DESIGN SYSTEM
   ========================================================================= */

:root {
    /* Color Palette */
    /* Primary brand colors - these can be adjusted if logo requires different hues */
    --color-primary: #300C0A;
    /* Deep Red/Brown */
    --color-primary-light: #521612;
    --color-accent: #BDA07C;
    /* Elegant Gold / Sand */
    --color-accent-hover: #A58966;

    --color-bg: #FAFAF8;
    /* Very soft off-white for main bg */
    --color-bg-dark: #1F100F;
    /* Dark theme/section bg matched to primary */

    --color-text: #2f3533;
    --color-text-muted: #5e6b66;
    --color-text-light: #F0F2F1;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-ui: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-round: 9999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);

    /* Layout */
    --container-width: 1280px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================================
   BASE & RESET
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ui);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.text-center {
    text-align: center;
}

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

.mt-2 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.mt-6 {
    margin-top: var(--space-2xl);
}

.mb-6 {
    margin-bottom: var(--space-2xl);
}

.mt-8 {
    margin-top: var(--space-3xl);
}

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

.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4 {
    color: var(--color-text-light);
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.9;
}

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

.text-primary,
.text-light .text-primary {
    color: var(--color-primary);
}

/* =========================================================================
   UTILITIES & LAYOUT
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
}

.bg-light {
    background-color: #fff;
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.bg-offwhite {
    background-color: var(--color-bg);
}

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

.row-reverse {
    direction: rtl;
    /* simple trick, elements inside must reset direction */
}

.row-reverse>* {
    direction: ltr;
}

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

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {

    .layout-grid,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

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

    .row-reverse {
        direction: ltr;
    }
}

@media (max-width: 576px) {

    .layout-grid,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   BUTTONS & LINKS
   ========================================================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-round);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-top: var(--space-lg);
    gap: 8px;
}

.link-arrow:hover {
    gap: 14px;
    /* Animate arrow */
    color: var(--color-accent);
}

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

.link-light:hover {
    color: var(--color-accent);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 250, 248, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding var(--transition-smooth), background var(--transition-smooth);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
}

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

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active:not(.btn-primary)::after {
    width: 100%;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-family: inherit;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.lang-switch button.current-lang,
.lang-switch button:hover {
    color: var(--color-primary);
}

.lang-switch .divider {
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-smooth);
}

.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 999;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-smooth);
    pointer-events: none;
}

.mobile-nav-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin: var(--space-md) 0;
    color: var(--color-primary);
}

.mobile-link.active {
    color: var(--color-accent);
}

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

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

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-sub {
    min-height: 60vh;
    padding-top: 150px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero .hero-content,
.hero-sub .hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-family: var(--font-ui);
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(250, 250, 248, 0.8), 0 0 20px rgba(250, 250, 248, 0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 550px;
    text-shadow: 0 1px 5px rgba(250, 250, 248, 0.9);
    font-weight: 500;
}

.hero-visual {
    flex: 1;
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero_home.png');
    background-size: cover;
    background-position: center;
    border-radius: 40px 0 0 40px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-image-b2b {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200&q=80');
}

.hero-image-b2c {
    background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1200&q=80');
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250, 250, 248, 0.85) 0%, transparent 35%);
}

.visual-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: rgba(189, 160, 124, 0.3);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: rgba(82, 22, 18, 0.2);
    bottom: -100px;
    left: 20%;
}

@media (max-width: 992px) {

    .hero,
    .hero-sub {
        flex-direction: column;
        padding-top: 100px;
    }

    .hero .hero-content,
    .hero-sub .hero-content {
        padding: var(--space-xl) 0;
        max-width: 100%;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto var(--space-xl);
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 50vh;
        order: 2;
    }

    .hero-image-placeholder {
        border-radius: 40px 40px 0 0;
    }

    .hero-image-placeholder::after {
        background: linear-gradient(0deg, rgba(250, 250, 248, 0.85) 0%, transparent 35%);
    }
}

/* =========================================================================
   SECTIONS & CARDS
   ========================================================================= */
.section-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.feature-list {
    margin-bottom: var(--space-lg);
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.text-light .feature-list li::before {
    color: var(--color-accent);
}

/* CARDS */
.card {
    background: #fff;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%;
    border-top: 3px solid var(--color-accent);
}

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

.card-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.sector-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--color-accent);
    transition: transform var(--transition-bounce), color var(--transition-smooth);
}

.animate-scale:hover .sector-icon {
    transform: scale(1.1);
    color: var(--color-accent-hover);
}

/* Method Steps */
.method-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.method-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    background: #fff;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.method-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    line-height: 1;
    font-weight: 600;
}

.method-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.method-content p {
    color: var(--color-text-muted);
    margin: 0;
}

.img-card {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    padding-bottom: 120%;
    /* Aspect ratio trick */
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    overflow: hidden;
}

.img-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.grid-2 .img-card:nth-child(2) {
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    .grid-2 .img-card:nth-child(2) {
        margin-top: 0;
    }

    .method-item {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--space-3xl) 0 var(--space-lg);
}

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

.footer-logo {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: var(--space-md);
    font-family: var(--font-ui);
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

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

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

.footer-contact a {
    color: inherit;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* =========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================= */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.animate-scale.visible:hover {
    transform: scale(1) translateY(-10px);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}