/* 
 * Accounting Services ZA - Main Stylesheet
 * Modern, animated, fully responsive design
 * Colors:
 * - Electric Blue: #3A86FF
 * - Deep Coral: #FF595E
 * - Mint Green: #8AC926
 * - Soft Violet: #B388EB
 * - Almost White: #F9F9F9
 * - Graphite Black: #1E1E1E
 */

/* ===== BASE STYLES ===== */
:root {
    --blue: #3A86FF;
    --coral: #FF595E;
    --mint: #8AC926;
    --violet: #B388EB;
    --white: #F9F9F9;
    --black: #1E1E1E;
    --gray: #707070;
    --light-gray: #D9D9D9;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --gradient-blue: linear-gradient(135deg, #3A86FF 0%, #65A3FF 100%);
    --gradient-coral: linear-gradient(135deg, #FF595E 0%, #FF7A7E 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 4px;
    width: 80px;
    background: var(--coral);
    transition: var(--transition);
}

h2:hover::after {
    width: 100%;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--coral);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-coral);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 89, 94, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(255, 89, 94, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-accent {
    background-color: var(--mint);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(138, 201, 38, 0.3);
}

.btn-accent:hover {
    background-color: #75B21E;
    box-shadow: 0 6px 20px rgba(138, 201, 38, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

/* ===== HEADER STYLES ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: block;
}

.main-nav {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    color: var(--black);
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--coral);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.phone-link {
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
}

.phone-link::before {
    content: '📞';
    margin-right: 0.5rem;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--black);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(179, 136, 235, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 89, 94, 0.1) 0%, rgba(255, 89, 94, 0) 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 201, 38, 0.1) 0%, rgba(138, 201, 38, 0) 70%);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    display: block;
    color: var(--blue);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--coral);
    border-radius: 10px;
    z-index: -1;
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--blue);
    border-radius: 10px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--white);
    position: relative;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--blue);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    width: 100%;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(255, 89, 94, 0.05) 100%);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--blue);
    font-size: 2rem;
    transition: var(--transition);
    border: 2px solid var(--light-gray);
}

.service-card:hover .service-icon {
    color: var(--coral);
    border-color: var(--coral);
}

.service-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover::after {
    margin-left: 1rem;
}

/* ===== WHY US SECTION ===== */
.why-us {
    background-color: var(--white);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--coral);
}

.benefit-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.benefit-description {
    color: var(--gray);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(179, 136, 235, 0.1) 100%);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 2rem;
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-item {
    flex: 0 0 calc(33.333% - 1.33rem);
    scroll-snap-align: start;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    font-family: serif;
    font-size: 4rem;
    color: var(--blue);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--black);
}

.author-position {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #FFD700;
    margin-left: auto;
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-item:hover .accordion-header {
    background-color: rgba(58, 134, 255, 0.05);
}

.accordion-title {
    font-weight: 500;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--black);
    transition: var(--transition);
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--black);
}

.accordion-icon::before {
    width: 2px;
    height: 10px;
    transition: var(--transition);
}

.accordion-icon::after {
    width: 10px;
    height: 2px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-text {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked ~ .accordion-content {
    max-height: 300px;
}

input[type="radio"]:checked ~ .accordion-header .accordion-icon::before {
    transform: rotate(90deg);
    opacity: 0;
}

input[type="radio"]:checked ~ .accordion-header {
    background-color: rgba(58, 134, 255, 0.05);
}

/* ===== CONTACT FORM SECTION ===== */
.contact {
    position: relative;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background-color: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
    min-width: 120px;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 50%;
}

.radio-label:hover input ~ .checkmark {
    background-color: var(--light-gray);
}

.radio-label input:checked ~ .checkmark {
    background-color: var(--blue);
    border-color: var(--blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked ~ .checkmark:after {
    display: block;
}

.radio-label .checkmark:after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.checkbox-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
}

.checkbox-label:hover input ~ .checkbox-custom {
    background-color: var(--light-gray);
}

.checkbox-label input:checked ~ .checkbox-custom {
    background-color: var(--blue);
    border-color: var(--blue);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-label .checkbox-custom:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.error-message {
    color: var(--coral);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.map-container {
    margin-top: 3rem;
}

.map-container img {
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.company-description {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact h3,
.footer-links h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-contact h3::after,
.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--coral);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: var(--coral);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--coral);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-content {
    padding: 1.5rem;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-text {
    animation: slideInLeft 1s ease;
}

.hero-image {
    animation: slideInRight 1s ease;
}

.service-card,
.benefit-item,
.testimonial-item {
    animation: fadeIn 0.6s ease both;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text,
    .hero-image {
        max-width: 100%;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .testimonial-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .header-content {
        height: 70px;
    }
    
    .contact-info {
        display: none;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: white;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
        transition: clip-path 0.3s ease;
        z-index: 1000;
    }
    
    .nav-list li {
        margin: 0;
    }
    
    .nav-list a {
        display: block;
        padding: 0.75rem 2rem;
    }
    
    .menu-toggle:checked ~ .nav-list {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
    
    .menu-icon {
        display: block;
    }
    
    .testimonial-item {
        flex: 0 0 calc(100% - 2rem);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

/* ===== LEGAL PAGES STYLES ===== */
.legal-page {
    padding: 8rem 0 5rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul, 
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
    padding: 10rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    animation: scaleIn 0.5s ease;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--mint);
    margin-bottom: 2rem;
} 