/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #0099a8;
    --accent-color: #ffa41b;
    --text-color: #2f2f2f;
    --gradient-start: #fffce8;
    --gradient-end: #e6f9f8;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
    --border-radius-xl: 2rem;
    --transition: all 0.3s ease;
    --max-width: 1140px;
    --header-height: 80px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Smooth scrolling with offset for fixed header */
html:focus-within {
    scroll-behavior: smooth;
}

/* Ensure proper offset for anchor links */
section[id], div[id] {
    scroll-margin-top: calc(var(--header-height) + 40px);
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 400;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' fill='%23ffffff10'%3E%3Cpath d='M0,0v46c27.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0v54H0V0z'/%3E%3C/svg%3E") repeat-x bottom;
    opacity: 0.1;
    z-index: -1;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' fill='%23ffffff15'%3E%3Ccircle cx='200' cy='100' r='80'/%3E%3Ccircle cx='600' cy='150' r='60'/%3E%3Ccircle cx='800' cy='50' r='40'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    -webkit-text-fill-color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 153, 168, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    transform: scale(1.2);
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' fill='%23ffffff05'%3E%3Cpath d='M0,0v46c27.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0c26.3,0,53.7,0,80,0v54H0V0z'/%3E%3C/svg%3E") repeat-x;
    opacity: 0.1;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(47, 47, 47, 0.95);
    color: var(--white);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: #ff8c00;
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-btn-decline:hover {
    background: var(--white);
    color: var(--text-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Auto-animate elements on page load with CSS only */
.card, .feature, .benefit-card, .testimonial {
    animation: fadeInUp 0.8s ease-out;
}

.section-header {
    animation: fadeIn 0.6s ease-out;
}

/* Stagger animations for multiple elements */
.grid-3 .card:nth-child(1) { animation-delay: 0.1s; }
.grid-3 .card:nth-child(2) { animation-delay: 0.2s; }
.grid-3 .card:nth-child(3) { animation-delay: 0.3s; }

.grid-4 .benefit-card:nth-child(1) { animation-delay: 0.1s; }
.grid-4 .benefit-card:nth-child(2) { animation-delay: 0.2s; }
.grid-4 .benefit-card:nth-child(3) { animation-delay: 0.3s; }
.grid-4 .benefit-card:nth-child(4) { animation-delay: 0.4s; }

.about-features .feature:nth-child(1) { animation-delay: 0.1s; }
.about-features .feature:nth-child(2) { animation-delay: 0.2s; }
.about-features .feature:nth-child(3) { animation-delay: 0.3s; }

.grid-2 .testimonial:nth-child(1) { animation-delay: 0.1s; }
.grid-2 .testimonial:nth-child(2) { animation-delay: 0.2s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    body {
        padding-top: var(--header-height);
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 50px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo svg {
        width: 28px;
        height: 28px;
    }
    
    .nav a {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 120px;
    }
    
    .service-content {
        padding: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ADDITIONAL STYLES FOR COMPONENTS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    opacity: 0.7;
    transition: var(--transition);
}

.trust-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.trust-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: grayscale(1);
    transition: var(--transition);
}

.trust-item:hover .trust-logo {
    filter: grayscale(0);
}



.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1rem;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: #666;
    margin: 0;
}

.btn-full {
    width: 100%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FORM VALIDATION STYLES ===== */
/* Initially hide validation styles until interaction */
.form-control:not(:focus):not(:placeholder-shown):invalid {
    border-color: #e0e0e0;
    box-shadow: none;
}

/* Show invalid field styling after interaction */
.form-control:focus:invalid,
.form-control:not(:placeholder-shown):invalid:not(:focus) {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Valid field styling */
.form-control:not(:placeholder-shown):valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Select field validation */
select.form-control:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

select.form-control:valid {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Checkbox validation styling */
input[type="checkbox"]:invalid {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

input[type="checkbox"]:valid {
    outline: none;
}

/* ===== SERVICE CARDS WITH IMAGES ===== */
.service-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1rem;
}

.service-features {
    margin-top: auto;
}

.service-content .card-icon {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .service-image {
        height: 150px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .cookie-banner {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero {
        background: none;
        color: var(--text-color);
    }
    
    .hero h1 {
        -webkit-text-fill-color: var(--text-color);
    }
} 