/* 
* RecetCyclo - Main Stylesheet
* A minimalistic professional design for a financial advice website
* Author: RecetCyclo Team
* Version: 1.0
*/

/* ======================================================
   TABLE OF CONTENTS
   ====================================================== 
   1. GLOBAL STYLES & RESET
   2. TYPOGRAPHY
   3. LAYOUT & GRID
   4. HEADER & NAVIGATION
   5. HERO SECTION
   6. SERVICES SECTION
   7. ABOUT SECTION
   8. TESTIMONIALS SECTION
   9. BLOG SECTION
   10. CONTACT SECTION
   11. SUBSCRIPTION FORM
   12. FOOTER
   13. BUTTONS & FORM ELEMENTS
   14. COOKIE CONSENT BANNER
   15. ARTICLE STYLES
   16. LEGAL PAGES
   17. UTILITY CLASSES
   18. MEDIA QUERIES
*/

/* ======================================================
   1. GLOBAL STYLES & RESET
   ====================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c5282;
    --primary-dark: #1a365d;
    --primary-light: #4a6fa0;
    --secondary-color: #e2e8f0;
    --accent-color: #f6ad55;
    --text-color: #2d3748;
    --text-light: #718096;
    --text-dark: #1a202c;
    --background-color: #ffffff;
    --background-alt: #f7fafc;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --error-color: #e53e3e;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    
    --font-heading: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
}



/* ======================================================
   2. TYPOGRAPHY
   ====================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

/* ======================================================
   3. LAYOUT & GRID
   ====================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.services-grid, 
.blog-grid, 
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ======================================================
   4. HEADER & NAVIGATION
   ====================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 0.75rem;
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 0 0 1.5rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ======================================================
   5. HERO SECTION
   ====================================================== */
.hero {
    padding: 8rem 0 5rem;
    background-color: var(--background-alt);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 2.75rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ======================================================
   6. SERVICES SECTION
   ====================================================== */
.services {
    background-color: var(--background-color);
}

.service-card {
    background-color: var(--background-alt);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ======================================================
   7. ABOUT SECTION
   ====================================================== */
.about {
    background-color: var(--background-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-light);
}

/* ======================================================
   8. TESTIMONIALS SECTION
   ====================================================== */
.testimonials {
    background-color: var(--background-color);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial {
    background-color: var(--background-alt);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 350px;
    position: relative;
}

.testimonial-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author .name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author .position {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ======================================================
   9. BLOG SECTION
   ====================================================== */
.blog-preview {
    background-color: var(--background-alt);
}

.blog-header {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 8rem 0 3rem;
    text-align: center;
}

.blog-header h1 {
    color: var(--background-color);
}

.blog-header p {
    max-width: 700px;
    margin: 0 auto;
}

.blog-articles {
    padding: 4rem 0;
}

.blog-card {
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h2, 
.blog-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

.blog-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.newsletter-signup {
    margin-top: 4rem;
    background-color: var(--primary-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    color: var(--background-color);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.newsletter-content h3 {
    color: var(--background-color);
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
}

/* ======================================================
   10. CONTACT SECTION
   ====================================================== */
.contact {
    background-color: var(--background-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info, 
.subscription-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-item p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-alt);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ======================================================
   11. SUBSCRIPTION FORM
   ====================================================== */
.subscription-form h3 {
    margin-bottom: 1rem;
}

.subscription-form p {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--background-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-group.inline {
    display: flex;
}

.form-group.inline input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.form-group.inline button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ======================================================
   12. FOOTER
   ====================================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--secondary-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 250px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-links-column h4 {
    color: var(--background-color);
    margin-bottom: 1.25rem;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column li {
    margin-bottom: 0.75rem;
}

.footer-links-column a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-links-column a:hover,
.footer-links-column a.active {
    color: var(--background-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ======================================================
   13. BUTTONS & FORM ELEMENTS
   ====================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--background-color);
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* ======================================================
   14. COOKIE CONSENT BANNER
   ====================================================== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    z-index: 9999;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 0.75rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.cookie-settings {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cookie-option {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cookie-option label {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

/* ======================================================
   15. ARTICLE STYLES
   ====================================================== */
.article-content {
    padding: 8rem 0 4rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.article-intro {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2rem;
}

.article-body h2 {
    margin-top: 2.5rem;
}

.article-body h3 {
    margin-top: 2rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.article-cta {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 3rem 0;
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-share {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.article-share p {
    margin-right: 1rem;
    margin-bottom: 0;
    font-weight: 600;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
}

.related-article {
    background-color: var(--background-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: block;
    color: var(--text-dark);
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    color: var(--text-dark);
}

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article h4 {
    padding: 1rem;
    margin-bottom: 0;
    font-size: 1rem;
}

.newsletter-section {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 4rem 0;
}

.newsletter-section h2,
.newsletter-section p {
    color: var(--background-color);
    text-align: center;
}

.newsletter-section .form-group.inline {
    max-width: 500px;
    margin: 0 auto;
}

/* ======================================================
   16. LEGAL PAGES
   ====================================================== */
.legal-content {
    padding: 8rem 0 4rem;
}

.legal-content h1 {
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

.cookie-control-section {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 3rem;
    text-align: center;
}

/* ======================================================
   17. UTILITY CLASSES
   ====================================================== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 2.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 2.5rem;
}

/* ======================================================
   18. MEDIA QUERIES
   ====================================================== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image {
        max-width: 100%;
        margin-left: 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: var(--shadow);
        padding: 1rem 0;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0.75rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .blog-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.inline {
        flex-direction: column;
    }
    
    .form-group.inline input {
        border-radius: var(--radius);
        margin-bottom: 0.75rem;
    }
    
    .form-group.inline button {
        border-radius: var(--radius);
        width: 100%;
    }
    
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share p {
        margin-bottom: 0.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
