/* ========================================
   R.K. SRIVASTAVA & ASSOCIATES
   Income Tax Services Page Specific Styles
   Tax Consultancy & Legal Services
   ======================================== */

/* Root Variables - Matching Global Styles */
:root {
    --navy: #0B1F3A;
    --navy-dark: #061429;
    --navy-light: #1a3a5f;
    --gold: #C9992B;
    --gold-dark: #A67C1E;
    --gold-light: #D9B45B;
    --gold-pale: #FFF8F0;
    --white: #FFFFFF;
    --cream: #F9F7F4;
    --text-dark: #1A202C;
    --text-mid: #4A5568;
    --text-muted: #718096;
    --border: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'DM Sans', sans-serif;
}

/* ========================================
   BASE & UTILITY CLASSES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-mid);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

/* Typography */
h1, h2, h3, h4, .firm-name {
    font-family: var(--font-serif);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(201,153,43,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,153,43,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

/* Section Label */
.section-label {
    display: inline-block;
    background: rgba(201,153,43,0.1);
    color: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Two Column Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

@media (max-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text .firm-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    display: block;
}

.logo-text .since {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--gold);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }
    
    .has-dropdown:hover .dropdown {
        display: block;
    }
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    background: var(--white);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs .current {
    color: var(--gold);
}

/* ========================================
   SERVICE HERO
   ======================================== */
.service-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,153,43,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s infinite ease-in-out;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,153,43,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s infinite ease-in-out reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.gold-light {
    color: var(--gold-light);
}

/* Service Icon */
.service-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gold-pale);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-icon-large svg {
    width: 45px;
    height: 45px;
    fill: var(--gold);
}

/* ========================================
   SERVICE CONTENT
   ======================================== */
.service-content {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-content:hover {
    box-shadow: var(--shadow-md);
}

.service-content h2,
.service-content h3 {
    color: var(--navy);
}

.service-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--gold);
}

.service-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .service-content {
        padding: 1.25rem;
    }
    
    .service-content h2 {
        font-size: 1.4rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   INFO BOX
   ======================================== */
.info-box {
    background: var(--gold-pale);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.info-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 700;
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-mid);
}

/* ========================================
   DOCUMENT LIST
   ======================================== */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px dashed var(--border);
    transition: var(--transition);
    color: var(--text-mid);
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-list li:hover {
    transform: translateX(6px);
    color: var(--gold);
}

.doc-list li::before {
    content: "✓";
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    border-radius: 50%;
    transition: var(--transition);
}

.doc-list li:hover::before {
    background: var(--gold);
    color: var(--white);
}

/* ========================================
   BENEFIT CARDS
   ======================================== */
.benefit-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-pale) 100%);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.benefit-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.benefit-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   PROCESS STEPS
   ======================================== */
.process-step-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.process-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 auto 0.75rem;
}

.process-step-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.process-step-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   PRICE TABLE
   ======================================== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    font-weight: 600;
}

.price-table tr:hover {
    background: var(--gold-pale);
}

@media (max-width: 768px) {
    .price-table th,
    .price-table td {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-item-simple {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item-simple:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.faq-question-simple {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--navy);
}

.faq-question-simple:hover {
    background: var(--gold-pale);
}

.faq-question-simple span:last-child {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item-simple.active .faq-question-simple span:last-child {
    transform: rotate(180deg);
}

.faq-answer-simple {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    color: var(--text-mid);
    font-size: 0.85rem;
    line-height: 1.7;
}

.faq-item-simple.active .faq-answer-simple {
    padding: 0 1.25rem 1.25rem;
    max-height: 300px;
}

@media (max-width: 768px) {
    .faq-question-simple {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
    
    .faq-answer-simple {
        font-size: 0.8rem;
    }
}

/* ========================================
   SIDEBAR
   ======================================== */
.service-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .service-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT BAR
   ======================================== */
.contact-bar {
    background: var(--white);
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
}

.contact-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-info-item {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.contact-info-item:hover {
    color: var(--gold);
}

.contact-info-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .contact-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-items {
        justify-content: center;
    }
}

/* ========================================
   WHATSAPP & CALL FLOATS
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 90px;
    }
}

.whatsapp-btn,
.call-float {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-btn:hover,
.call-float:hover {
    transform: scale(1.05);
}

.whatsapp-btn {
    background: #25D366;
}

.call-float {
    background: var(--gold);
}

.whatsapp-btn svg,
.call-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Sticky CTA - Mobile Only */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 999;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */
@media (max-width: 768px) {
    .process-steps-grid {
        grid-template-columns: 1fr !important;
    }
    
    .two-col-layout {
        gap: 1.5rem !important;
    }
    
    .service-hero {
        padding: 2.5rem 0;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .service-icon-large svg {
        width: 30px;
        height: 30px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal.active {
    animation: slideInUp 0.6s ease forwards;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .sticky-cta,
    .whatsapp-float,
    .contact-bar,
    .cta-section,
    .service-sidebar,
    .navbar {
        display: none;
    }
    
    .service-content {
        box-shadow: none;
        padding: 0;
    }
    
    .process-step-card,
    .benefit-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    .price-table {
        break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}