/* 
 * ContaPro - Accounting Services
 * Custom CSS with animations and responsive design
 */

/* === Base Styles === */
:root {
    /* Main Colors */
    --color-lavender: #b191f6;
    --color-mint: #7cf8ca;
    --color-coral: #ff705c;
    --color-indigo: #2e2a5e;
    --color-light: #f0f0f0;
    --color-ultraviolet: #5f42c8;
    
    /* Gradient */
    --gradient-main: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-mint) 100%);
    
    /* Sizes */
    --border-radius: 12px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Add padding for anchor links to account for fixed header */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-indigo);
    background-image: var(--gradient-main);
    background-attachment: fixed;
    position: relative;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%);
    background-size: 30px 30px;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-indigo);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-coral);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

section {
    padding: 80px 0;
}

/* Adjust section that have ID for anchors */
section[id] {
    padding-top: 100px;
    margin-top: -20px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-indigo);
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-coral);
    border-radius: 2px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

/* === Button Styles === */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-coral);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-indigo);
    color: var(--color-light);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-indigo);
    color: var(--color-indigo);
}

.btn-outline:hover {
    background-color: var(--color-indigo);
    color: var(--color-light);
    transform: translateY(-3px);
}

/* === Header === */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-coral);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* === Hero Section === */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
}

/* === About Section === */
.about {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 80px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* === Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-ultraviolet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* === Services Section === */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-content {
    padding: 30px;
}

.service-price {
    color: var(--color-coral);
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
}

.service-features {
    margin-bottom: 20px;
}

.service-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    color: var(--color-ultraviolet);
    position: absolute;
    left: 0;
}

/* === Process Section === */
.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.process-step {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background-color: var(--color-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-weight: 700;
    font-size: 20px;
}

/* === Testimonials Section === */
.testimonials {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: rgba(95, 66, 200, 0.1);
    font-family: Georgia, serif;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.client-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

/* === Contact Form Section === */
.contact-form-section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(95, 66, 200, 0.2);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-ultraviolet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 66, 200, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232e2a5e' d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid rgba(95, 66, 200, 0.2);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-ultraviolet);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-ultraviolet);
    border-color: var(--color-ultraviolet);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Form Error Messages */
.form-error {
    color: var(--color-coral);
    font-size: 14px;
    margin-top: 5px;
}

/* === Footer === */
.site-footer {
    background-color: var(--color-indigo);
    color: var(--color-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-about p {
    margin-top: 15px;
    max-width: 350px;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--color-light);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-mint);
}

/* Footer contact information */
.footer-contact a {
    color: var(--color-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--color-mint);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
}

/* === Cookie Banner === */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* === Thank You Page === */
.thank-you-container {
    text-align: center;
    padding: 60px 0;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thank-you-container h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--color-indigo);
}

.check-icon {
    width: 100px;
    height: 100px;
    background-color: var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.check-icon svg {
    width: 50px;
    height: 50px;
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* PHP-based animations - elements start visible immediately */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add class for feature items, service cards, process steps and testimonial items */
.feature-item, .service-card, .process-step, .testimonial-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .hero-image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-image {
        position: static;
        transform: none;
        width: 80%;
        margin: 40px auto 0;
    }
    
    .about-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-hidden {
        display: none;
    }
    
    /* Mobile Navigation */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li {
        margin: 0 10px 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .services-container,
    .features-grid,
    .process-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
} 