/* ==========================================================================
   Carol Oliveira - Link Bio Premium Stylesheet (Reference Aligned & Balanced)
   Design System: Deep Dark Chocolate, Warm Cozy Cream, Terracotta & Gold
   ========================================================================== */

/* 1. Design Tokens & Variables */
:root {
    --bg-dark: #19100B;          /* Very deep dark espresso (Header & Footer) */
    --bg-light: #E2D3C4;         /* Warm cozy milk-cream / beige (Main Body) */
    
    /* Card design tokens (Gold-framed Premium Business Card style) */
    --bg-card-dark-gold: #2C1A0E;/* Solid dark brown for cards */
    --border-gold-card: #C9A96E; /* Elegant gold border color */
    --border-gold-bright: #F5D59E;/* Brighter gold border on hover */
    --text-cream-card: #F5EFE6;  /* Elegant light cream for card text */
    
    --bg-button: #2C1A0E;        /* Dark brown for buttons */
    --bg-button-hover: #4A2E1C;  /* Lighter brown for button hover */
    
    --color-cream: #EAD7C3;      /* Milky soft cream */
    --color-cream-light: #FDFBF7;/* Elegant off-white */
    --color-gold: #B59570;       /* Muted luxury gold / bronze */
    --color-gold-light: #D4AF37;  /* Bright gold accent */
    
    --text-dark-body: #2C1A0E;   /* Dark brown for body text */
    --text-light-body: #FDFBF7;  /* Light text on dark background */
    --text-muted-light: #A89A91; /* Muted text for dark sections */
    --text-muted-dark: #7D6F66;  /* Muted text for light sections */
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --border-light: rgba(253, 251, 247, 0.1);
    --border-dark: rgba(44, 26, 14, 0.12);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    --shadow-soft: 0 8px 20px rgba(44, 26, 14, 0.05);
    --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* 2. Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0F0906; /* Dark background behind the mobile container on desktop */
    color: var(--text-dark-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0F0906;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-button);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Container limits viewport width for a sleek mobile-app look on desktop */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    min-height: 100vh;
}

/* Typography elements */
h1, h2, h3, .section-title {
    font-family: var(--font-serif);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
}

/* 3. Hero Section (Topo Escuro) */
.hero-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid rgba(25, 16, 11, 0.3);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5.1;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    filter: brightness(0.92) contrast(1.02);
    /* Extra scale to support parallax scroll movement without showing container borders */
    transform: scale(1.05); 
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(25, 16, 11, 0.4) 70%, transparent 100%);
    z-index: 1;
}

.hero-info {
    position: relative;
    width: 100%;
    padding: 0 24px 35px 24px;
    margin-top: -55px; /* Overlap content on top of image fade */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

/* Script Overlay Behind Name - Ref. Style */
.name-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.script-bg {
    position: absolute;
    top: -24px;
    font-family: 'Pinyon Script', cursive;
    font-size: 5.5rem;
    color: rgba(253, 251, 247, 0.05);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    letter-spacing: 2px;
}

.hero-name {
    position: relative;
    font-size: 2.7rem;
    line-height: 1.1;
    color: var(--color-cream-light);
    font-weight: 300;
    z-index: 2;
    letter-spacing: -0.5px;
}

.hero-name::first-letter {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--color-cream);
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 90%;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
}

/* Dual Stats Layout - Ref. Style */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(253, 251, 247, 0.08);
    border-bottom: 1px solid rgba(253, 251, 247, 0.08);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-cream-light);
    line-height: 1.1;
    font-weight: 400;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    font-weight: 400;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(253, 251, 247, 0.15);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(253, 251, 247, 0.05);
    border: 1px solid var(--border-light);
    color: var(--color-cream);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: var(--color-cream-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(253, 251, 247, 0.1);
}

/* 4. Content Body (Fundo Claro Creme) */
.content-body {
    background-color: var(--bg-light);
    padding: 35px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Services Grid & Dark Textured Business Cards (Gold Frame Style) */
.services-section {
    width: 100%;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-card {
    position: relative;
    width: 100%;
    height: 95px;
    border-radius: 14px;
    background-color: var(--bg-card-dark-gold); /* Solid dark brown #2C1A0E */
    border: 1px solid var(--border-gold-card); /* Thin gold border #C9A96E */
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-dark);
    overflow: hidden; /* Crop pseudo-element noise background */
    /* Optimized transition values - 0.3s duration as requested */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    will-change: transform, border-color, box-shadow;
}

/* Pseudo-element for grain noise texture (15% to 20% opacity SVG data uri) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0%200%20200%20200'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter%20id='noiseFilter'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.16; /* 16% opacity */
    mix-blend-mode: overlay; /* blend smoothly with base color */
    pointer-events: none;
    z-index: 1;
}

/* Elegant card hover interaction (translateY -4px, border gets brighter, sutil gold shadow) */
.service-card:hover {
    transform: translateY(-4px); /* rises 4px smoothly */
    border-color: var(--border-gold-bright); /* gold border gets slightly brighter */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(245, 213, 158, 0.22); /* soft gold shadow glow */
}

.card-content {
    position: relative;
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2; /* Make sure text remains on top of background noise */
}

.card-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Alternating text alignments */
.service-card.align-right .card-text-wrapper {
    text-align: right;
}

.service-card.align-left .card-text-wrapper {
    text-align: left;
}

.card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px; /* Generous letter spacing */
    color: var(--border-gold-card); /* Gold tag */
}

.card-tag.gold-tag {
    color: var(--border-gold-card);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--text-cream-card); /* Elegant light cream text */
    font-weight: 400;
    line-height: 1.1;
}

.card-icon {
    font-size: 1.6rem; /* Discreet size */
    color: var(--border-gold-card); /* Gold icon */
    opacity: 0.9;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.service-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.08);
    color: var(--border-gold-bright); /* Brighter gold on hover */
}

/* 5. About Section (Reverted back to dark brown #2C1A0E) */
.about-section {
    width: 100%;
    position: relative;
    margin-top: 60px; /* Generous spacing (min 60px) between cards & about section */
}

.about-header-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -15px; /* overlap with card */
    z-index: 3;
}

.script-bg-section {
    font-family: 'Pinyon Script', cursive;
    font-size: 4.8rem;
    color: rgba(44, 26, 14, 0.08);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 1.5px;
}

.about-card {
    background: #2C1A0E; /* Dark brown background reverted */
    border: 1px solid rgba(253, 251, 247, 0.06);
    border-radius: 18px;
    padding: 35px 26px;
    box-shadow: var(--shadow-dark);
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: 1.8rem;
    color: var(--color-cream-light); /* Cream text */
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.95rem;
    color: #E6D7CB; /* Cream text */
    font-weight: 300;
    line-height: 1.6;
}

.about-content strong {
    color: var(--color-cream-light); /* Highlight in off-white cream */
    font-weight: 600;
}

.about-highlight {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-cream-light);
    line-height: 1.4;
    border-left: 2px solid var(--color-gold);
    padding-left: 14px;
    margin-top: 6px;
    font-style: italic;
}

/* 6. CTA Section */
.cta-section {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.cta-title {
    font-size: 1.8rem;
    color: var(--text-dark-body);
    font-weight: 400;
    line-height: 1.2;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 16px 32px;
    background-color: var(--bg-button);
    color: var(--color-cream-light);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(44, 26, 14, 0.15);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background-color: var(--bg-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(44, 26, 14, 0.22);
}

/* 7. FAQ & Footer Section (Fundo Escuro) */
.faq-footer-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-light-body);
    padding: 45px 24px 30px 24px;
    border-top: 1px solid rgba(253, 251, 247, 0.05);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-title {
    font-size: 1.8rem;
    color: var(--color-cream-light);
    font-weight: 300;
    text-align: center;
    margin-bottom: 15px;
}

.accordion-item {
    border-bottom: 1px solid rgba(253, 251, 247, 0.08);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
}

/* Question Header Typography - Cormorant Garamond Serif Accent */
.accordion-header span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-cream);
    font-weight: 400;
    transition: var(--transition-fast);
}

.accordion-item:hover .accordion-header span {
    color: var(--color-cream-light);
}

.accordion-icon {
    font-size: 0.85rem;
    color: var(--color-gold);
    transition: var(--transition-smooth);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
    font-size: 0.88rem;
    color: var(--text-muted-light);
    line-height: 1.6;
    padding-bottom: 18px;
    font-weight: 300;
}

/* Accordion Active States */
.accordion-item.active .accordion-content {
    max-height: 250px; /* adjusted slightly for longer texts */
    opacity: 1;
}

.accordion-item.active .accordion-header span {
    color: var(--color-cream-light);
}

/* Footer Section */
.footer-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(253, 251, 247, 0.05);
    padding-top: 24px;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

.developer-tag {
    font-size: 0.68rem;
    color: var(--text-muted-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.accent-heart {
    color: #a33838;
    font-size: 0.65rem;
    display: inline-block;
    animation: heartPulse 1.6s infinite ease;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 8. Scroll Reveal Animations (IntersectionObserver triggers .active) */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 9. Media Queries for adjustments */
@media (max-width: 380px) {
    .hero-name {
        font-size: 2.3rem;
    }
    
    .card-title {
        font-size: 1.35rem;
    }
    
    .service-card {
        height: 85px;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}
