/* ===================================
   The Accountant Plus - Styles
   =================================== */

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --white: #ffffff;
    --success-color: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-3d: 0 1px 1px rgba(15,23,42,.04), 0 6px 12px rgba(15,23,42,.06), 0 20px 40px -12px rgba(15,23,42,.14);
    --shadow-3d-hover: 0 2px 2px rgba(15,23,42,.05), 0 10px 20px rgba(15,23,42,.09), 0 34px 60px -14px rgba(15,23,42,.24);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

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

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(180deg, #3b82f6, var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 0 var(--secondary-color), 0 8px 16px -4px rgba(37,99,235,.45);
    transform: translateY(0);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #4f8ffa, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--secondary-color), 0 16px 28px -6px rgba(37,99,235,.55);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--secondary-color), 0 6px 12px -4px rgba(37,99,235,.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 1px 0 rgba(37,99,235,.15);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -6px rgba(37,99,235,.4);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 150px 0 100px;
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-highlight {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-highlight strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.hero-image {
    position: relative;
    perspective: 1200px;
}

.hero-image::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 65%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.4), transparent 70%);
    transform: translateX(-50%);
    filter: blur(6px);
    z-index: -1;
    animation: floatShadow 5s ease-in-out infinite;
}

.hero-card {
    background-color: var(--white);
    color: var(--dark-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 30px 60px -18px rgba(15,23,42,.4), inset 0 1px 0 rgba(255,255,255,.7);
    text-align: center;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform .4s ease;
    animation: floatCard 5s ease-in-out infinite;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    animation-play-state: paused;
}

@keyframes floatCard {
    0%, 100% { transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(-14px); }
}

@keyframes floatShadow {
    0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
    50% { opacity: .25; transform: translateX(-50%) scale(.85); }
}

.card-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #eef2ff, #dbeafe);
    box-shadow: 6px 6px 14px rgba(148,163,184,.35), -6px -6px 14px rgba(255,255,255,.9), inset 0 1px 0 rgba(255,255,255,.8);
}

.hero-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
    text-align: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-3d-hover);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 20px -6px rgba(37,99,235,.5), inset 0 2px 1px rgba(255,255,255,.4), inset 0 -3px 6px rgba(0,0,0,.15);
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    box-shadow: var(--shadow-3d-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #eef2ff);
    box-shadow: 6px 6px 14px rgba(148,163,184,.35), -6px -6px 14px rgba(255,255,255,.85), inset 0 1px 0 rgba(255,255,255,.6);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* USA Services Section */
.usa-services {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.usa-services .section-title,
.usa-services .section-subtitle {
    color: var(--white);
}

.usa-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 30px -14px rgba(0,0,0,.35);
    transition: background-color .3s ease, box-shadow .3s ease;
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 24px 44px -14px rgba(0,0,0,.45);
}

.benefit-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx,50%) var(--my,20%), rgba(255,255,255,.25), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.benefit-item.is-hot::after {
    opacity: 1;
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.benefit-item p {
    opacity: 0.95;
}

/* Industries Section */
.industries-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -8px rgba(37,99,235,.4);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px -6px rgba(37,99,235,.45), inset 0 2px 0 rgba(255,255,255,.2);
}

.tab-btn:active {
    transform: translateY(1px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.industry-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
}

.industry-card:hover {
    box-shadow: var(--shadow-3d-hover);
}

.industry-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.industry-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Locations Section */
.locations-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
    border-left: 4px solid var(--primary-color);
}

.location-box:hover {
    box-shadow: var(--shadow-3d-hover);
}

.location-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.location-box p {
    color: var(--gray-color);
    line-height: 1.7;
}

.locations-list {
    text-align: center;
    margin-top: 3rem;
}

.locations-list h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.cities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cities-grid span {
    background-color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--dark-color);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
    transition: var(--transition);
}

.cities-grid span:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px -6px rgba(37,99,235,.4);
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--white);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-color);
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray-color);
}

.pricing-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 24px 44px -16px rgba(102,126,234,.5), inset 0 1px 0 rgba(255,255,255,.25);
}

.pricing-highlight h4 {
    margin-bottom: 1rem;
}

.pricing-highlight .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.contact-form-wrapper {
    background-color: var(--light-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   3D Tilt & Reveal (shared)
   =================================== */
.tilt-card {
    opacity: 0;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(24px);
    transition: opacity .6s ease, transform .6s ease, box-shadow .35s ease;
    will-change: transform;
}

.tilt-card.in-view {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
}

.reveal-init {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-init.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card,
.service-card,
.industry-card,
.location-box {
    position: relative;
    overflow: hidden;
}

.feature-card::after,
.service-card::after,
.industry-card::after,
.location-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx,50%) var(--my,20%), rgba(37,99,235,.10), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.feature-card.is-hot::after,
.service-card.is-hot::after,
.industry-card.is-hot::after,
.location-box.is-hot::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .industry-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .industries-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
