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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2E2A27;
    background-color: #F8F6F3;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-bg {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(176, 139, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(176, 139, 87, 0.1) 0%, transparent 50%);
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Timeline Elegante - Sem Cards */
.timeline-elegant {
    position: relative;
    padding-left: 4rem;
}

.timeline-step {
    position: relative;
    padding: 1.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-line {
    position: absolute;
    left: -3.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(176, 139, 87, 0.2), rgba(176, 139, 87, 0.05));
    flex-shrink: 0;
}

.timeline-step:last-child .timeline-line {
    display: none;
}

.timeline-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #B08B57;
    opacity: 0.35;
    flex-shrink: 0;
    width: 3rem;
    text-align: center;
}

.timeline-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2E2A27;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .timeline-elegant {
        padding-left: 3rem;
    }
    
    .timeline-step {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .timeline-line {
        left: -2.5rem;
    }
    
    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-number {
        font-size: 2rem;
        width: auto;
    }
    
    .timeline-text {
        font-size: 1.25rem;
    }
}

/* Benefit Cards */
.benefit-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15);
}

/* Rules Card */
.rules-card {
    border: 1px solid rgba(109, 105, 101, 0.1);
}

.rules-card ul {
    list-style: none;
}

.rules-card li {
    padding-bottom: 2rem;
}

.rules-card li:last-child {
    padding-bottom: 0;
}

.rules-card strong {
    font-weight: 500;
    color: #2E2A27;
}

/* Accordion Styles */
.accordion-item {
    border-bottom: 1px solid rgba(109, 105, 101, 0.2);
    margin-bottom: 0;
}

.accordion-button {
    width: 100%;
    padding: 2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: color 0.3s ease;
}

.accordion-button:hover {
    color: #B08B57;
}

.accordion-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #B08B57;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-button[aria-expanded="true"] .accordion-icon::before {
    transform: translateX(-50%) rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-content > * {
    padding-bottom: 2rem;
}

.accordion-button[aria-expanded="true"] + .accordion-content {
    max-height: 1000px;
}

/* Input Styles */
input[type="number"] {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Button Hover Effects */
a.inline-block {
    position: relative;
    overflow: hidden;
}

a.inline-block::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

a.inline-block:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth Parallax Effect */
.parallax {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #B08B57;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #B08B57;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F6F3;
}

::-webkit-scrollbar-thumb {
    background: #B08B57;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B6B3F;
}

/* Selection Color */
::selection {
    background: #B08B57;
    color: white;
}

::-moz-selection {
    background: #B08B57;
    color: white;
}

/* Responsive Fixes */
@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    .rules-card {
        padding: 2rem;
    }
    
    .timeline-step {
        padding: 1rem 0;
    }
}

/* Ensure no text overflow */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for long text in timeline */
.timeline-text {
    word-break: keep-word;
    hyphens: auto;
}

/* Grid fixes */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 2rem;
    }
}

/* Timeline spacing fixes */
@media (min-width: 1024px) {
    .timeline-step {
        padding: 1.25rem 0;
    }
    
    .timeline-text {
        font-size: 1.6rem;
    }
}
