/* index.css */

:root {
    --primary: #4A3A32;
    --primary-light: #6b574d;
    --bg-color: #EADFD4;
    --bg-light: #f5f0eb;
    --white: #ffffff;
    --text-main: #332822;
    --text-muted: #665b55;
    --accent: #2c9343; /* Adding a subtle green for savings/success */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --radius: 8px;
    --shadow: 0 10px 30px rgba(74, 58, 50, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.section-padding {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.alt-btn {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    margin-top: 1.5rem;
}

.alt-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    color: var(--bg-color);
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: var(--bg-color);
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(234, 223, 212, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar:not(.scrolled) .logo-text,
.navbar:not(.scrolled) .nav-links a {
    color: var(--white);
}

.nav-links {
    display: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.navbar:not(.scrolled) .menu-toggle {
    color: var(--white);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    padding: 100px 40px 40px;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-size: 2rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* for parallax */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(74, 58, 50, 0.7), rgba(74, 58, 50, 0.9));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--bg-color);
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-ctas .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-ctas .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.hero-rating i {
    color: #ffd700;
}

/* Trust Strip */
.trust-strip {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 0;
}

.trust-strip-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Services */
.service-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-name {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

.other-services {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 58, 50, 0.1);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tax Calculator */
.tax-calc-wrapper {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 40px 20px;
    box-shadow: var(--shadow);
}

.tax-calc-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
}

.salary-control {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#salary-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    outline: none;
    color: var(--primary);
    font-weight: 600;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -8px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #d1c7bd;
    border-radius: 4px;
}

.deductions-box {
    margin-top: 30px;
}
.deductions-box h4 {
    margin-bottom: 15px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
    border: 1px solid #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.result-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.result-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid transparent;
}

.result-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tax-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.tax-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tax-recommendation {
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.rec-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-color);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.savings-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.winner {
    border-color: var(--accent);
    background-color: #f0fdf4;
}

/* Testimonials */
.testimonial-carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-carousel {
    display: flex;
    gap: 30px;
    width: max-content;
}

.testimonial-card {
    width: 350px;
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.test-rating {
    color: #ffd700;
    margin-bottom: 20px;
}

.test-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-main);
}

.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.test-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h6 {
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.author-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About / Why Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.why-us-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--primary);
    color: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Location / Contact */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.info-list {
    margin-top: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-item.copyable {
    cursor: pointer;
}

.info-item.copyable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
}

.location-map {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: var(--bg-color);
    margin-bottom: 5px;
}

.footer-brand .footer-desc {
    margin-top: 20px;
    opacity: 0.8;
}

.footer-links h4 {
    color: var(--bg-color);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--bg-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Media Queries (Desktop First adjustment for clarity) */
/* Actually, making it mobile first per prompt */

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .nav-links {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tax-calc-body {
        grid-template-columns: 1fr 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .trust-strip-content {
        justify-content: space-around;
    }
    
    .tax-calc-wrapper {
        padding: 60px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
