/* Base */
:root {
    --color-primary: #14392F;
    --color-secondary: #8A7047;
    --color-accent1: #D1B982;
    --color-accent2: #C75D3A;
    --color-bg-primary: #FCFBF8;
    --color-bg-secondary: #F0EDE5;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #5A5A5A;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Colors */
.text-primary {
    color: var(--color-primary);
}

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

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

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

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

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

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

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

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

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

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

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0F2B24;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-secondary);
    color: white;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #75603C;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-tertiary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--color-primary);
    font-weight: 500;
    border: 1px solid var(--color-primary);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-tertiary:hover {
    background-color: rgba(20, 57, 47, 0.05);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--color-primary);
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-white:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: white;
    font-weight: 500;
    border: 1px solid white;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.375rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 57, 47, 0.1);
}

/* Cookie Consent Toggle */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.toggle-label::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s ease;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: var(--color-primary);
}

.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(24px);
}

.toggle-checkbox:disabled + .toggle-label {
    opacity: 0.7;
    cursor: not-allowed;
}

/* International Telephone Input */
.iti {
    width: 100%;
}

/* Custom Components */
.indicator-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.indicator-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.indicator-chart {
    margin-top: 1rem;
    border-radius: 0.375rem;
    overflow: hidden;
}

.region-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.region-stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent2);
}

.region-description {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.perspective-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
}

.analysis-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.analysis-image {
    position: relative;
    height: 200px;
}

.analysis-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-top-left-radius: 0.5rem;
    font-size: 0.875rem;
}

.analysis-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.analysis-content > a {
    margin-top: auto;
}

.strategy-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.strategy-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* FAQ Section */
.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #F9FAFB;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
    max-height: 1000px;
}

/* Aspect Ratio */
.aspect-w-16 {
    position: relative;
    padding-bottom: calc(9 / 16 * 100%);
}

.aspect-w-3 {
    position: relative;
    padding-bottom: calc(2 / 3 * 100%);
}

.aspect-w-1 {
    position: relative;
    padding-bottom: 100%;
}

.aspect-h-9, .aspect-h-2, .aspect-h-1 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .btn-primary, .btn-secondary, .btn-tertiary {
        padding: 0.625rem 1.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilities */
.prose {
    max-width: 65ch;
    color: var(--color-text-primary);
}

.prose a {
    color: var(--color-accent1);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: var(--color-accent2);
}

.prose h2, .prose h3, .prose h4 {
    color: var(--color-primary);
    font-family: 'Cormorant Garamond', serif;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose h2 {
    font-size: 1.875rem;
    line-height: 1.2;
}

.prose h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.prose h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.prose p, .prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul, .prose ol {
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.375rem;
}

.prose blockquote {
    font-style: italic;
    color: var(--color-text-secondary);
    border-left: 4px solid var(--color-accent1);
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    #mobileMenu {
        transition: all 0.3s ease;
    }
}