/* ============================================
   SHARED STYLES — Avinash Singh & Co.
   Used across all pages except index.html (self-contained)
============================================ */

:root {
    --primary: #E8742A;
    --primary-dark: #D0621E;
    --primary-light: #F5A66B;
    --secondary: #2C3E50;
    --secondary-light: #34495E;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-light: #7F8C8D;
    --text-muted: #95a5a6;
    --bg-white: #FFFFFF;
    --bg-off: #FAFAFA;
    --bg-light: #F4F5F7;
    --bg-dark: #1a1a2e;
    --bg-dark-alt: #16162a;
    --border-light: #E8ECF1;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 600;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-subtitle { margin: 0 auto; }

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.8;
}

/* ============================================
   NAVBAR (Static / Scrolled for inner pages)
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.nav-brand-text { display: flex; flex-direction: column; }

.nav-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.nav-brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

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

.nav-links a {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

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

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

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

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,116,42,0.08) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 2; max-width: 700px; }

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    max-width: 560px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(232,116,42,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232,116,42,0.4);
}

.btn-full { width: 100%; justify-content: center; padding: 1rem 2rem; }

/* ============================================
   CTA SECTION
============================================ */
.cta-section { background: var(--bg-off); text-align: center; }

.cta-box {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
    border-radius: 20px;
    padding: 4.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,116,42,0.1) 0%, transparent 70%);
}

/* ============================================
   THE FIRM PAGE — Specific Styles
============================================ */
.firm-text {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.firm-legacy-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.firm-legacy-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.firm-stat-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.firm-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.firm-stat-icon {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.firm-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.firm-stat-number span { color: var(--primary); }

.firm-stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.philosophy-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 2.25rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.philosophy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.philosophy-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(232,116,42,0.12);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.philosophy-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.philosophy-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* Approach Section */
.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.approach-steps { position: relative; }

.approach-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.approach-step:last-child { margin-bottom: 0; }

.approach-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.approach-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.approach-step-line {
    width: 2px;
    flex: 1;
    background: rgba(232,116,42,0.15);
    margin-top: 0.5rem;
    min-height: 50px;
}

.approach-step-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.approach-step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* Credentials Grid */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.credential-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.credential-card:hover {
    background: rgba(232,116,42,0.06);
    border-color: rgba(232,116,42,0.15);
    transform: translateY(-3px);
}

.credential-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.credential-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.credential-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
}

/* ============================================
   CONTACT PAGE — Specific Styles
============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

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

.form-group label .required { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,116,42,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8C8D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-info-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border-light);
}

.contact-info-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.95rem;
    width: 18px;
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.contact-info-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.contact-info-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-item a:hover { text-decoration: underline; }

.expect-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.expect-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* ============================================
   PRACTICE AREAS PAGE — Specific Styles
============================================ */
.practice-detail {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.practice-detail:last-child { border-bottom: none; }

.practice-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.practice-detail-left { position: sticky; top: 100px; }

.practice-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(232,116,42,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.practice-detail-left h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.practice-detail-left .tagline {
    font-size: 0.92rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

.practice-detail-right p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.practice-detail-right p:last-child { margin-bottom: 0; }

.practice-scope-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.practice-scope-list li {
    font-size: 0.88rem;
    color: var(--text-body);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.practice-scope-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--bg-dark);
    padding: 4rem 0 2rem;
    color: rgba(255,255,255,0.5);
}

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

.footer h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); }

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-icai {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   FLOATING ELEMENTS
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 44px;
    height: 44px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary); transform: translateY(-3px); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .firm-legacy-grid { grid-template-columns: 1fr; gap: 3rem; }
    .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .practice-detail-grid { grid-template-columns: 1fr; }
    .practice-detail-left { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: var(--text-body) !important; }
    .nav-toggle { display: flex; }
    .section { padding: 70px 0; }
    .page-hero { padding-top: 100px; padding-bottom: 60px; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .practice-scope-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 3rem 1.5rem; }
    .firm-legacy-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .page-hero-title { font-size: 2rem; }
    .firm-legacy-stats { grid-template-columns: 1fr; }
}
