/* Main CSS for Faloria */

:root {
    --primary-warm-apricot: #d9b8a8;
    --primary-soft-sand: #e8d9c3;
    --primary-powder-blue: #b8d4e8;
    --accent-mint-green: #a8d9a8;
    --accent-warm-lilac: #d9c8e8;
    --accent-ink-navy: #2d3e3f;
    --text-dark: #2d3e3f;
    --text-muted: #5a6c6d;
    --bg-light: #f5f0e8;
    --border-light: #e8dccf;
}

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

html, body {
    background-color: #f5f0e8;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 0.5px;
}

p {
    color: var(--text-dark);
    line-height: 1.8;
}

a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background-color: #f5f0e8 !important;
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}

.navbar-brand {
    color: var(--text-dark) !important;
    font-size: 20px;
    letter-spacing: 1px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-muted) !important;
    margin-left: 25px;
    transition: color 0.2s ease;
    font-size: 14px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--text-dark) !important;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ribbon Tabs */
.ribbon-tab {
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-soft-sand);
    position: relative;
}

.ribbon-tab::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-warm-apricot), var(--primary-soft-sand));
}

.tab-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
}

.ribbon-tab-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-dark);
}

/* Product Cards */
.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.img-fluid {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Forms */
.form-control {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #ffffff;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--text-muted);
    box-shadow: 0 0 0 3px rgba(90, 108, 109, 0.1);
    background-color: #ffffff;
    color: var(--text-dark);
}

label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.custom-checkbox .custom-control-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
    border: none;
}

.btn-dark {
    background-color: var(--text-dark);
    border: 1px solid var(--text-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #1f2d2e;
    border-color: #1f2d2e;
}

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

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: #ffffff;
}

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

.btn-outline-secondary:hover {
    background-color: var(--text-muted);
    color: #ffffff;
    border-color: var(--text-muted);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-light);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--text-dark);
    border-bottom-color: var(--primary-soft-sand);
}

.nav-tabs .nav-link.active {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
    background-color: transparent;
}

/* Footer */
footer {
    background-color: #f0ebe3;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}

footer strong {
    color: var(--text-dark);
    font-weight: 600;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--text-dark);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d3e3f 0%, #3a4a4c 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: block;
}

.cookie-banner p {
    color: #ffffff;
    margin: 0;
}

.cookie-banner a {
    color: #b8d4e8;
}

.cookie-banner a:hover {
    color: #ffffff;
}

.cookie-banner .btn {
    font-size: 12px;
    padding: 8px 12px;
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

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

.bg-light {
    background-color: #f5f0e8 !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-light) !important;
}

.border-top {
    border-top: 1px solid var(--border-light) !important;
}

/* Sections */
section {
    margin-bottom: 40px;
}

section h2,
section h3,
section h4 {
    margin-bottom: 20px;
}

/* Lists */
ul {
    margin-left: 20px;
}

ul li {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-banner {
        padding: 40px 0 !important;
        min-height: auto;
    }

    .row.align-items-center {
        margin-bottom: 30px;
    }

    .hero-image {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .col-md-6 {
        margin-bottom: 20px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-left: 15px;
        font-size: 13px;
    }

    .tab-title {
        font-size: 20px;
    }

    .display-4 {
        font-size: 28px !important;
    }

    .product-card {
        padding: 20px;
    }

    .product-name {
        font-size: 16px;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }

    .lead {
        font-size: 16px;
    }

    footer .row {
        margin-bottom: 15px;
    }

    .cookie-banner .row {
        flex-direction: column-reverse;
    }

    .cookie-banner .col-md-3 {
        text-align: left !important;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        padding: 10px 0;
    }

    .tab-title {
        font-size: 18px;
    }

    .display-4 {
        font-size: 24px !important;
    }

    .lead {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-card {
        padding: 18px;
    }

    .ribbon-tab {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .col-md-6.pl-md-4,
    .col-md-6.pr-md-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    footer p {
        font-size: 12px;
    }

    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner p {
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .cookie-banner,
    .btn {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
