/* Main stylesheet for domain.com - Accounting services in Malaysia */

/* Base styles and variables */
:root {
    --emerald: #034C3C;
    --lime: #D7F205;
    --coral: #FF6B4A;
    --light-gray: #F5F5F5;
    --dark: #222222;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--coral);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--lime);
    color: var(--emerald);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--coral);
    color: var(--white);
    transform: translateY(-2px);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--emerald);
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--lime);
}

/* Header styles */
header {
    background-color: var(--emerald);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: lowercase;
}

.logo a span {
    color: var(--lime);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle-label span,
.menu-toggle-label span:before,
.menu-toggle-label span:after {
    display: block;
    background: var(--white);
    height: 2px;
    width: 24px;
    transition: var(--transition);
    position: relative;
}

.menu-toggle-label span:before,
.menu-toggle-label span:after {
    content: '';
    position: absolute;
}

.menu-toggle-label span:before {
    top: -8px;
}

.menu-toggle-label span:after {
    bottom: -8px;
}

/* Menu styles */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--lime);
    transition: var(--transition);
}

.main-nav a:hover:before {
    width: 100%;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 76, 60, 0.7);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Us Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-text h2 {
    color: var(--emerald);
}

.about-text p {
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--emerald);
    margin-bottom: 10px;
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--emerald);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.why-us-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.why-us-icon {
    font-size: 2.5rem;
    color: var(--lime);
    margin-bottom: 20px;
}

/* Steps Section */
.steps {
    background-color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--emerald);
    color: var(--white);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--emerald);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin-bottom: 0;
    color: var(--emerald);
}

.testimonial-author-info p {
    font-size: 0.9rem;
    color: #777;
}

/* Form Section */
.form-section {
    background-color: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 2px rgba(3, 76, 60, 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 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    background-color: var(--white);
}

option {
    background-color: var(--white);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

/* FAQ Section */
.faq {
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.faq-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-question label {
    display: block;
    font-weight: 600;
    cursor: pointer;
    padding-right: 30px;
    position: relative;
    color: var(--emerald);
}

.faq-question label::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--emerald);
    transition: var(--transition);
}

.faq-item input[type="checkbox"]:checked ~ .faq-question label::after {
    content: '−';
}

.faq-answer {
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: var(--transition);
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--emerald);
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--emerald);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo span {
    color: var(--lime);
}

.footer-about p {
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--lime);
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--lime);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--lime);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Thank You Page */
.thank-you {
    margin: 8rem auto 5rem;
    max-width: 600px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.thank-you h2 {
    color: var(--emerald);
    margin-bottom: 20px;
}

.thank-you .icon {
    font-size: 4rem;
    color: var(--lime);
    margin-bottom: 20px;
    display: block;
}

/* Policy Pages */
.policy-page {
    margin: 40px auto;
    max-width: 800px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.policy-page h1 {
    color: var(--emerald);
    margin-bottom: 30px;
    text-align: center;
}

.policy-page h2 {
    color: var(--emerald);
    margin-top: 40px;
    margin-bottom: 15px;
}

.policy-page p, .policy-page ul {
    margin-bottom: 20px;
}

.policy-page ul {
    padding-left: 20px;
}

.policy-page ul li {
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .menu-toggle-label {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--emerald);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-toggle:checked ~ .main-nav {
        max-height: 300px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cookie-consent {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-text {
        margin-bottom: 15px;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .policy-page {
        padding: 20px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}
