/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --success: #28a745;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

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

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

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero .logo {
    max-width: 100px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.4em;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1em;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* === SERVICES SECTION === */
.services {
    padding: 80px 20px;
    background: var(--bg-white);
}

.services h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 50px;
    color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    font-size: 0.95em;
    color: var(--text-light);
}

/* === ABOUT SECTION === */
.about {
    padding: 80px 20px;
    background: var(--bg);
}

.about h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--dark);
}

.about p {
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1em;
}

/* === NEWSLETTER SECTION === */
.newsletter {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.newsletter > .container > p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.mailerlite-form {
    max-width: 500px;
    margin: 0 auto;
}

.mailerlite-form form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mailerlite-form input[type="email"] {
    padding: 14px 18px;
    width: 100%;
    max-width: 300px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}

.mailerlite-form input[type="email"]:focus {
    outline: 2px solid var(--primary);
}

.mailerlite-form button {
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
}

.mailerlite-form button:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.mailerlite-form button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.consent-checkbox {
    margin-top: 20px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.consent-checkbox label {
    margin-left: 10px;
}

.consent-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 20px 30px;
    margin-top: auto;
}

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

.footer-brand .footer-logo {
    width: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9em;
}

.footer h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1em;
}

.footer-contact a {
    color: var(--primary);
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.footer .social-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

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

.footer .social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85em;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* === COOKIE BANNER === */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center;
}

#cookie-banner p { 
    margin: 0; 
    display: inline; 
    font-size: 0.9em; 
}

#cookie-banner a { 
    color: var(--primary); 
    text-decoration: underline; 
}

#cookie-banner button { 
    margin-left: 20px; 
    padding: 10px 20px; 
    background-color: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600;
    transition: background-color 0.3s;
}

#cookie-banner button:hover {
    background-color: var(--primary-dark);
}

/* === FORM AJAX STYLES === */
.form-loader {
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-success {
    padding: 20px;
    text-align: center;
}

.form-success h4 {
    font-size: 1.5em;
    color: var(--success);
    margin: 10px 0 5px 0;
}

.form-success p {
    font-size: 1.1em;
    color: rgba(255,255,255,0.9);
}

.checkmark {
    width: 60px;
    height: 60px;
    display: block;
    margin: 10px auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke-linecap: round;
    stroke: var(--success);
    fill: none;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero .tagline {
        font-size: 1.2em;
    }
    
    .services, .about, .newsletter {
        padding: 60px 20px;
    }
    
    .services h2, .about h2, .newsletter h2 {
        font-size: 1.6em;
    }
    
    .mailerlite-form form {
        flex-direction: column;
        align-items: center;
    }
    
    .mailerlite-form input[type="email"] {
        max-width: 100%;
    }
    
    .mailerlite-form button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
    }
    
    #cookie-banner {
        flex-direction: column;
        gap: 15px;
    }
    
    #cookie-banner button {
        margin-left: 0;
        margin-top: 10px;
    }
}