/* css/style.css */
:root {
    --primary-color: #3b2e50; /* Factum Blue */
    --secondary-color: #a77c2c; /* Brighter Blue for CTAs */
    --tertiary-color: #e69500; /* Darker than factum's footer, for contrast */
    --accent-color: #ffa600; /* Orange/Gold for Centurion */
    --light-bg: #f8f9fa;
    --dark-bg: #2A3F54; /* Darker than factum's footer, for contrast */
    --text-color-dark: #333;
    --text-color-light: #f1f1f1;
    --heading-font: 'Open Sans', sans-serif; /* Or 'Roboto', 'Lato' */
    --body-font: 'Open Sans', sans-serif;
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --swiper-theme-color: #2A3F54;
    --success-color: #376e3a
}

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

html {
    scroll-behavior: smooth; /* For smoother anchor link jumps */
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
    font-size: 16px; /* Base font size */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
#main-header {
    background-color: var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    height: 50px;
    padding: 0.25rem 0px;
}

#nav-menu {
    list-style: none;
    display: flex;
    padding: 1rem 0px;
}

#nav-menu li {
    margin-left: 25px;
}

#nav-menu a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0; /* Add some padding for easier clicking and active state */
}

#nav-menu a:hover, 
#nav-menu a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color); /* Highlight active link */
}

#mobile-menu-toggle {
    display: none; /* Show on mobile */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- General Section Styling --- */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}
.bg-dark {
    background-color: var(--dark-bg);
}
.text-light {
    color: var(--text-color-light) !important;
}
.text-light a {
    color: var(--text-color-light) !important;
}
.text-light a:hover {
    color: var(--secondary-color) !important;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.text-light h1, .text-light h2, .text-light h3, .text-light h4 {
    color: var(--text-color-light);
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}
.bg-light .section-subtitle { color: #666; }
.bg-dark .section-subtitle, .text-light .section-subtitle { color: #ccc; }


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-bg);
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: var(--accent-color); /* Darken var(--secondary-color) */
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-bg); /* Text color on accent button */
    border-color: var(--accent-color);
}
.btn-secondary:hover {
    background-color: var(--tertiary-color); /* Darken var(--accent-color) */
    border-color: var(--tertiary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.hero-section .btn-outline { /* Specific for hero on dark bg */
    color: var(--light-bg);
    border-color: var(--light-bg);
}
.hero-section .btn-outline:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--light-bg);
}


.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.text-center { text-align: center; }
.cta-buttons { margin-top: 2rem; }
.cta-buttons .btn { margin: 0.5rem; }
.cta-section { margin-top: 3rem; }

/* --- Hero Section --- */
.hero-section {
    /* background set inline via style attribute for specific image */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--text-color-light);
    padding: 100px 0;
    text-align: center;
}
.hero-section h1 {
    color: var(--light-bg);
    font-size: 3rem; 
}
.hero-section .subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.hero-section p:not(.subtitle) {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* --- Property Showcase Section --- */
.property-showcase-section h3.text-center {
    color: var(--primary-color);
}

.property-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch; 
    margin-bottom: 2rem;
}

.property-image-container {
    flex: 1 1 400px; 
    min-height: 400px; 
    border-radius: var(--border-radius);
    overflow: hidden; 
    box-shadow: var(--box-shadow);
    position: relative; 
}

.property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}

.property-key-facts {
    flex: 1 1 450px; 
    background-color: var(--light-bg); 
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); 
    display: flex;
    flex-direction: column; 
}
.company-facts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.property-key-facts h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.5rem; 
}
.company-facts ul {
    text-align: left;
    width: -moz-fit-content;
    width: fit-content;
    list-style: none;
    padding-left: 1em;
}

.property-key-facts ul, .company-facts ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem; 
    flex-grow: 1; 
}
.property-key-facts ul li,.company-facts ul li {
    margin-bottom: 0.9rem; 
    display: flex;
    align-items: flex-start; 
    font-size: 0.95rem;
}
.company-facts ul li {
    margin-bottom: 0.5rem; 
}

.property-key-facts ul li .fas, .company-facts ul li .fas {
    color: var(--secondary-color);
    margin-right: 12px;
    min-width: 22px;
    margin-top: 3px; 
    font-size: 1.1em; 
}
.property-key-facts .small-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: auto; 
    font-style: italic;
    line-height: 1.4;
}

/* Swiper Gallery Styles */
.swiper-container.property-gallery {
    width: 100%; /* Takes full width of its parent (.container) */
    max-width: 100%; /* Ensures it doesn't overflow .container if .container has padding */
    padding-top: 20px;
    padding-bottom: 50px; /* Increased for pagination and nav buttons if outside */
    position: relative; /* For positioning nav buttons if needed */
    overflow: hidden; /* IMPORTANT: This clips slides outside the container bounds */
}

.swiper-wrapper {
    /* align-items: center; Might be useful with slidesPerView: 'auto' if heights vary */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    /* Define a width for the slides that allows peeking */
    /* Option 1: Percentage based - good if you want fewer full slides visible */
    width: 70%; /* Example: Active slide takes 70%, neighbors peek */
    /* Option 2: Fixed width - good if you know the desired slide width */
    /* width: 300px; */ 
    
    height: 300px; /* Adjusted height for better visual */
    border-radius: var(--border-radius);
    overflow: hidden; 
    box-shadow: var(--box-shadow);
    opacity: 0.6; /* Make non-active slides a bit faded */
    transform: scale(0.9); /* Make non-active slides a bit smaller */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Styling for the active (centered) slide */
.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1; /* Ensure active slide is on top if overlapping shadows */
}

/* Adjust navigation buttons if they are inside and need better positioning */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--primary-color);
    /* Optional: position them further out if needed */
    /* top: 50%; */
    /* transform: translateY(-50%); */
}
/* Example: If you want buttons outside the main slide area but within the .swiper-container */
/*
.swiper-button-prev { left: -10px; }
.swiper-button-next { right: -10px; }
*/


.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* Responsive adjustments for the slider */
@media (max-width: 768px) {
    .swiper-slide {
        width: 80%; /* Show more of a single slide on smaller screens */
        height: 250px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 90%; /* Almost full width for very small screens */
        height: 220px;
        transform: scale(1); /* No scaling for non-active on very small screens */
        opacity: 1; /* Full opacity */
    }
    .swiper-slide-active {
        /* No different styling needed if all are same */
    }
    .swiper-button-next, 
    .swiper-button-prev {
        /* display: none; /* Optionally hide nav arrows on very small screens */
    }
}

/* --- Overview Section (Features Grid) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}
.features-grid.three-cols .feature-item { /* For DeFi section */
    /* minmax can be adjusted if needed for 3 columns specifically */
}
.feature-item {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.feature-item .icon-large {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- How It Works Section (Token Model) --- */
.token-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}
.token-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.token-card h3 { color: var(--primary-color); }
.token-card .token-description {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}
.token-card ul {
    list-style: none;
    padding-left: 0;
}
.token-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}
.token-card ul li .fas {
    color: var(--accent-color); 
    margin-right: 10px;
    margin-top: 4px; 
}

/* --- Tables (Tokenomics, Vesting) --- */
.table-responsive {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--light-bg);
}
th, td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}
thead th {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-weight: bold;
}
tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}
tbody tr:hover {
    background-color: #e6e6e6;
}
.disclaimer {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
    text-align: center;
}

/* Strategy Points Styling in Benefits Section */
.strategy-points ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.strategy-points ul li {
    background-color: var(--light-bg);
    padding: 5px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    display: flex;
    align-items: center; /* Vertically align icon and text */
    font-size: 1.05rem;
}
.strategy-points ul li .fas {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.5em; /* Make icon a bit larger */
    min-width: 30px; /* Ensure consistent spacing */
}


/* --- Benefits Section --- */
.benefits-list {
    margin-top: 2rem;
}
.benefit-item {
    display: flex;
    align-items: flex-start; 
    background-color: var(--light-bg);
    padding: 5px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.benefit-item:hover {
    transform: translateX(5px);
}
.benefit-item i.fas { /* Target specific icons if needed */
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-right: 20px;
    min-width: 30px; 
    margin-top: 5px;
}
.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.benefit-item p {
    font-size: 0.95rem;
    color: #555;
}
.benefit-item small { font-style: italic; color: #777; }


/* --- Cashflow Section --- */
.cashflow-details {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    align-items: center;
    margin-top: 2rem;
}
.cashflow-details.property-specific-cashflow .cashflow-text ul li small {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 0.3rem;
}
.cashflow-text ul { list-style: none; padding-left: 0; }
.cashflow-text ul li { margin-bottom: 1rem; } /* Increased spacing */
.cashflow-text ul li .fas { color: var(--secondary-color); margin-right: 8px; }
.cashflow-text strong { color: var(--primary-color); }

.bar-chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end; 
    height: 250px; 
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.single-bar-container .bar-wrapper { /* For #property-cashflow chart */
    width: 60%; 
    margin: 0 auto; 
}
.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 40%; 
}
.bar {
    width: 80%; 
    background-color: var(--secondary-color); 
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: height 0.5s ease-out; /* For JS animation */
}
.bar span { 
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}
.bar::after { 
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}
.bar:hover::after {
    opacity: 1;
}
.chart-caption { text-align: center; margin-top: 1rem; font-style: italic; }

/* --- Value Increase Section (uses .features-grid) --- */
.conclusion-text { margin-top: 2.5rem; font-size: 1.05rem; }
.intersection-text { margin-top: 0.5rem; font-size: 1.05rem; }

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 20px auto;
    transform: rotate(-90deg); /* Start slices from the top */
    /* background-color: #f0f0f0; Optional for debugging */
}

.pie-slice {
    fill: none;
    stroke-width: 50; /* Stroke width is key to the filled segment look */
    stroke: var(--slice-color);
    /* Total circumference based on effective radius for stroke, e.g., 50 units.
       Let's represent percentages out of 100 units for dasharray.
       Circumference for r=25 is 2 * PI * 25 = 50 * PI = ~157.08
       We're using stroke-width 50, so the "center" of the stroke is at r=25.
       The dashes are calculated based on the path the stroke follows.
    */
    --circumference: calc(2 * 3.1415926535 * 25); /* Circumference for r=25 */
    
    stroke-dasharray: calc(var(--slice-value) / 100 * var(--circumference)) var(--circumference);
    stroke-dashoffset: calc(var(--slice-offset) / 100 * var(--circumference) * -1); /* Negative offset to rotate correctly */
    
    transition: stroke-dasharray 1s 0.2s ease-out, stroke-dashoffset 1s 0.2s ease-out; /* Animate both, slight delay */
}

/* For animation trigger with JS */
.pie-chart.is-visible .pie-slice {
    /* Values are already set by inline style, transition will take effect */
}

/* Initial state for animation (if animated by JS) */
.pie-chart:not(.is-visible) .pie-slice {
    stroke-dasharray: 0 var(--circumference);
    /* stroke-dashoffset can remain as is or be set to 0 if preferred for initial state */
}

/* --- Flexibility Section (Sell/Reinvest) --- */
.options-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 2rem;
}
.option-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.option-card h3 { margin-bottom: 0.8rem; }
.option-card p { margin-bottom: 0.7rem; font-size: 0.95rem;}
.option-card .fas { margin-right: 8px; color: var(--accent-color); }
.status-payout { color: var(--success-color); font-weight: bold; }
.status-reinvest { color: var(--secondary-color); font-weight: bold; }

.chart-container-vergleich { margin-top: 2.5rem; }
.chart-container-vergleich h4 { text-align: center; }
.bar-chart-options {
    margin-top: 1.5rem;
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.option-bar-group {
    margin-bottom: 15px;
}
.bar-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.bar-segment {
    display: inline-block; 
    height: 30px;
    line-height: 30px; 
    color: white;
    text-align: center;
    font-size: 0.8rem;
    position: relative;
    transition: width 0.5s ease-out; /* For JS animation */
}
.bar-segment::after { 
    content: attr(data-value);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; 
    white-space: nowrap;
}

.capital-a { background-color: var(--success-color); } 
.profit-a { background-color: #FFC107; } 
.capital-b { background-color: #9E9E9E; } 
.profit-b { background-color: #FFC107; } 

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
}
.legend div { display: flex; align-items: center; }
.legend-color {
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 3px;
}
.capital-a-legend { background-color: var(--success-color); }
.capital-b-legend { background-color: #9E9E9E; }
.profit-legend { background-color: #FFC107; }

/* --- DeFi Section (uses .features-grid) --- */
.impermanent-loss-explainer {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--box-shadow);
}
.impermanent-loss-explainer h4 { color: var(--primary-color); }
.impermanent-loss-explainer ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}
.impermanent-loss-explainer ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.impermanent-loss-explainer ul li .fas {
    color: var(--accent-color);
    margin-right: 10px;
}
.text-link { 
    color: var(--secondary-color);
    text-decoration: underline;
}
.text-link:hover {
    color: var(--primary-color);
}
.bg-light .text-link { /* If links are on light background */
    color: var(--primary-color);
}
.bg-light .text-link:hover {
    color: var(--secondary-color);
}


/* --- Invest Section (Final CTA) --- */
.invest-section h2 {
    margin-bottom: 1rem;
}
.invest-section .btn-accent { 
    /* background-color: var(--accent-color); */
    border-color: var(--tertiary-color);
}
.invest-section .btn-accent:hover {
    background-color: var(--tertiary-color); /* Darken var(--accent-color) */
    color:var(--light-bg) !important; /* White text on accent for final CTA */
    border-color: var(--tertiary-color);
}
.risk-notice {
    margin-top: 2rem;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.risk-notice strong { }
.risk-notice a { text-decoration: underline; }
.risk-notice a:hover { }


/* --- Footer --- */
#main-footer {
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.7rem;
}
.footer-column a {
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    text-decoration: underline;
}
.social-icons a {
    font-size: 1.3rem;
    margin-right: 10px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--accent-color); 
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4f5d6b; /* Slightly lighter border on dark bg */
    font-size: 0.85rem;
}

/* Responsive for property details grid - already added above, consolidating here for clarity */
@media (max-width: 992px) { 
    .property-details-grid {
        align-items: flex-start; 
    }
    .property-image-container {
        min-height: 300px; 
        flex-basis: 100%; 
        margin-bottom: 20px;
    }
    .property-key-facts {
        flex-basis: 100%; 
    }
}
@media (max-width: 768px) {
    .cashflow-details,
    .options-comparison {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .cashflow-chart { margin-top: 2rem; }
    .bar-chart-container { height: 200px; }
}