/*
  Finor Fintax LLP - Shared Styles
*/

/* --- CSS Variables --- */
:root {
    --primary-color: #0F3D3A; /* Dark Teal */
    --secondary-color: #C8F8A9; /* Light Green Accent */
    --accent-color: #00d084; /* Vibrant Green */
    --accent-hover: #00b370;
    --text-dark: #32373c;
    --text-light: #F2F5F1;
    --bg-light: #ffffff;
    --bg-gray: #F2F5F1;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Resets & Basics --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 61, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(15, 61, 58, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-light);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-buttons .btn {
    margin-left: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bg-light);
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 61, 58, 0.2);
}

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

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-col h3 {
    color: var(--bg-light);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    color: #a0aec0;
    margin-bottom: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a0aec0;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #a0aec0;
    margin-bottom: 16px;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718096;
    font-size: 0.875rem;
}

/* --- Section Utilities --- */
.section {
    padding: 100px 0;
}

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

.section-bg-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section-bg-dark h2,
.section-bg-dark h3 {
    color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

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

.section-desc {
    color: #666;
    font-size: 1.125rem;
}

/* --- Home Page Specific Styles --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 80%);
    opacity: 0.1;
    transform: rotate(15deg);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    color: var(--text-light);
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(0, 208, 132, 0.2);
    color: var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    font-size: 4rem;
    color: var(--bg-light);
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.25rem;
    color: #a0aec0;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-features {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.hero-feature i {
    color: var(--accent-color);
}

/* About Section Snippet */
.about-snippet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    z-index: 1;
}

.about-image img {
    position: relative;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 208, 132, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--accent-color);
    color: var(--bg-light);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.service-card p {
    color: #666;
    margin-bottom: 24px;
}

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

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--accent-color);
}

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

/* Global Presence */
.global-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
    margin-bottom: 48px;
}

.global-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.global-card:hover {
    background-color: rgba(0, 208, 132, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.global-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.global-card h3 {
    font-size: 1.5rem;
    color: var(--bg-light);
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.why-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-text h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.why-text p {
    color: #666;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--accent-color);
    padding: 80px 0;
    text-align: center;
    color: var(--bg-light);
}

.cta-section h2 {
    color: var(--bg-light);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-section .btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.cta-section .btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .about-snippet-grid,
    .why-grid,
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .global-grid {
        grid-template-columns: 1fr;
    }
}

.page-header {
    padding: 180px 0 100px;
    background-color: var(--primary-color);
    color: var(--bg-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 61, 58, 0.9) 0%, rgba(20, 75, 71, 0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--bg-light);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease forwards;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: #a0aec0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.breadcrumb a {
    color: var(--bg-light);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    color: var(--accent-color);
}

/* Animations Trigger Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- About Page Specific Styles --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background-color: var(--bg-light);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.25rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.team-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: var(--bg-gray);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-info .team-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: block;
}

.team-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Services Page Detail Specific Styles --- */
.service-detail-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-detail-section:nth-child(even) {
    background-color: var(--bg-gray);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-detail-grid.reverse > .service-detail-text {
    order: -1;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.service-detail-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 24px;
}

.service-detail-list {
    margin-bottom: 32px;
}

.service-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #444;
}

.service-detail-list li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.service-detail-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail-grid.reverse > .service-detail-text {
        order: 0;
    }
}

/* --- Clients & Industries Specific Styles --- */
.client-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.client-item {
    background-color: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
    border-color: rgba(0, 208, 132, 0.3);
}

.client-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.client-item span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.industry-card {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 40px 24px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-5px);
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.industry-card h3 {
    color: var(--bg-light);
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(0, 208, 132, 0.2);
    position: absolute;
    top: -10px;
    left: 30px;
    line-height: 1;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.testimonial-author-info h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.testimonial-author-info span {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Consultation Form Specific Styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}
