/* 
==============================================
Dandapani Associates - Premium Law Firm Website
Base Stylesheet
==============================================
*/

/* --- CSS Variables / Color Palette --- */
:root {
    --primary: #0B132B;
    --dark: #111827;
    --accent-gold: #C8A45D;
    --light-gold: #E6D3A3;
    --bg-color: #D0EFED;
    --white: #FFFFFF;
    --text: #111827;
    --secondary-text: #6B7280;
    --light-gray: #F8FAFC;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* --- Resets --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

h1 { font-size: clamp(3rem, 5vw, 5rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 500;}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

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

ul {
    list-style: none;
}

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

/* --- Layout & Utilities --- */
.container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: #A1A1AA; }

.text-white { color: var(--white); }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.full-width { width: 100%; }

/* --- Section Headings --- */
.section-heading {
    margin-bottom: 3rem;
}
.section-heading.center {
    text-align: center;
}
.section-heading .subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.section-heading.light .subtitle {
    color: var(--light-gold);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(200, 164, 93, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

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

/* Button Ripple Effect */
.ripple::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

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

.navbar.scrolled {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-dandapani {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: 1px;
}

.logo-associates {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-bottom: 4px;
}

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

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

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

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

/* --- 2. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 19, 43, 0.7), rgba(11, 19, 43, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subheading {
    font-family: var(--font-body);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-headline {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* --- 3. About Section --- */
.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--accent-gold);
    color: var(--primary);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge .counter {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge p {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.about-highlights {
    margin: 2rem 0;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text);
}

.about-highlights i {
    color: var(--accent-gold);
}

/* --- 4. Legacy Timeline --- */
.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    margin-top: 50px;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E5E7EB;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 15px;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background-color: var(--accent-gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--primary);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.875rem;
}

/* --- 5. Founders & 10. Team --- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-content: center;
}

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

.founder-card, .team-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.founder-card:hover, .team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.founder-img-wrapper, .team-img-wrapper {
    overflow: hidden;
    aspect-ratio: 3/4;
}

.founder-img, .team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.founder-info, .team-info {
    padding: 2rem;
    text-align: center;
}

.founder-info h3, .team-info h3 {
    margin-bottom: 0.25rem;
}

.designation, .position {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-info .area {
    font-size: 0.875rem;
    color: var(--secondary-text);
}

/* --- 6. Managing Partner --- */
.achievements-list {
    margin-top: 1.5rem;
}

.achievements-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.achievements-list i {
    color: var(--accent-gold);
}

.partner-img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

/* --- 7. Practice Areas --- */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.practice-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
    transition: var(--transition-smooth);
    text-align: center;
}

.practice-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.practice-card h3 {
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.practice-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.practice-card:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.practice-card:hover i, .practice-card:hover h3 {
    color: var(--accent-gold);
}

.practice-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- 8. Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: rotateY(180deg);
}

/* --- 9. Clients --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    padding: 2rem;
    text-align: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 11. Testimonials --- */
.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeEffect 0.8s;
}

.testimonial-slide.active {
    display: block;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(200, 164, 93, 0.2);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.testimonial-author h4 {
    color: var(--accent-gold);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active, .dot:hover {
    background-color: var(--accent-gold);
}

/* --- 12. Legal Insights --- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.insight-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.insight-img-wrapper {
    height: 200px;
    overflow: hidden;
}

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

.insight-card:hover .insight-img-wrapper img {
    transform: scale(1.1);
}

.insight-content {
    padding: 2rem;
}

.insight-content .date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.read-more i {
    transition: transform 0.2s;
}

.read-more:hover {
    color: var(--accent-gold);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* --- 13. FAQ --- */
.accordion-item {
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.accordion-header:hover {
    color: var(--accent-gold);
}

.accordion-header i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding-bottom: 1.5rem;
}

/* --- 14. Contact --- */
.contact-info .info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: transparent;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--secondary-text);
    transition: 0.2s ease all;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--white);
    padding: 0 5px;
    color: var(--accent-gold);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-gold);
}

.footer-bottom {
    background-color: var(--dark);
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
}

.legal-links a:hover {
    color: var(--white);
}

.separator {
    margin: 0 10px;
}

/* --- Floating Elements --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-gold);
}

/* --- Animations --- */
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reveal Classes (Triggered by JS) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards;
}

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}
.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}
.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}
