/* Stativio.com - Market Analytics Website Styles */
/* Based on Dental Medical Webflow Template Design */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #F5F5F0;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #8B4513;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A0522D;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #F0F8E8;
}

.section-dark {
    background-color: #2C2C2C;
    color: white;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: white;
}

.section-dark a {
    color: #F0F8E8;
}

/* Header Styles */
.header {
    background-color: #F5F5F0;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    color: #A0522D;
}


/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-list a:hover {
    color: #8B4513;
}

.cta-button {
    background-color: #8B4513;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #A0522D;
    color: white;
    transform: translateY(-2px);
}

.cta-button-secondary {
    background-color: white;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.cta-button-secondary:hover {
    background-color: #8B4513;
    color: white;
}

/* Hero Section */
.hero {
    background-color: #8B4513;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .cta-button {
    background-color: white;
    color: #8B4513;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.hero .cta-button:hover {
    background-color: #F0F8E8;
    color: #8B4513;
}

.hero .cta-button-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero .cta-button-secondary:hover {
    background-color: white;
    color: #8B4513;
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F8E8;
}

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

.card-dark {
    background-color: #2C2C2C;
    color: white;
}

.card-dark h3,
.card-dark h4,
.card-dark h5,
.card-dark h6 {
    color: white;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card-placeholder {
    width: 100%;
    height: 200px;
    background-color: #F0F8E8;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    font-weight: 500;
}

/* Feature Sections */
.feature-section {
    text-align: center;
    margin-bottom: 4rem;
}

.feature-section h2 {
    margin-bottom: 1rem;
}

.feature-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Course Cards */
.course-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.course-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.course-content {
    padding: 2rem;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8B4513;
}

.course-description {
    margin-bottom: 1.5rem;
    color: #666;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.course-duration {
    background-color: #F0F8E8;
    color: #8B4513;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #2C2C2C;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #8B4513;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #F0F8E8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B4513;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.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: 3rem; }

.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: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #F5F5F0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav li {
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .course-content {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .course-content {
        padding: 1.5rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .card {
        padding: 1rem;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .hero-buttons .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .nav {
        padding: 0.5rem;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* Loading and Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-list a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        color: #333;
    }
    
    .nav-list a:hover {
        color: #8B4513;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    
    .nav {
        padding: 1rem;
        gap: 2rem;
    }
    
    .nav-list a {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}


@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .header-scrolled {
        background-color: rgba(245, 245, 240, 0.95);
        backdrop-filter: blur(10px);
    }
    
    
    .hero {
        padding-top: 120px;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .course-duration {
        align-self: flex-start;
    }
    
    .grid-2 .card,
    .grid-3 .card,
    .grid-4 .card {
        margin-bottom: 1rem;
    }
    
    .feature-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .feature-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .cta-button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav a {
        padding: 0.75rem 1rem;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
    }
    
    .card-placeholder {
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2C2C2C;
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-banner-text p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    background-color: #A0522D;
}

.cookie-banner-btn.secondary {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #666;
}

.cookie-banner-btn.secondary:hover {
    background-color: #666;
    color: white;
}

.cookie-banner-link {
    color: #8B4513;
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-banner-link:hover {
    color: #A0522D;
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-banner-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-banner-btn {
        width: 100%;
        padding: 12px 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .cookie-banner {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .section {
        padding: 20px 0;
    }
}
