/* ============================================
   S.N. Dwivedi & Co. - Premium CA Firm Website
   Design System: Copper & Slate
   Typography: Cormorant Garamond + Manrope
   ============================================ */

/* CSS Variables */
:root {
    /* Copper & Slate Palette */
    --color-copper: #B87333;
    --color-copper-light: #D4A574;
    --color-copper-dark: #8B5A2B;
    --color-slate: #2F3640;
    --color-slate-light: #4A5568;
    --color-slate-dark: #1A202C;
    --color-cream: #F5F0EB;
    --color-cream-dark: #E8E0D5;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-slate);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-md);
}

.accent {
    color: var(--color-copper);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-copper);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-copper-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-slate);
    border: 2px solid var(--color-slate);
}

.btn-secondary:hover {
    background-color: var(--color-slate);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 115, 51, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-copper), var(--color-copper-dark));
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-slate-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-slate-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-copper);
    transition: var(--transition-base);
}

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

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

.nav-cta {
    display: inline-flex;
    padding: 0.625rem 1.25rem;
    background-color: var(--color-copper);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-cta:hover {
    background-color: var(--color-copper-dark);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-slate);
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(184, 115, 51, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47, 54, 64, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.badge-line {
    width: 40px;
    height: 1px;
    background-color: var(--color-copper);
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-copper);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--color-copper);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-slate-light);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-copper);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-slate-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(184, 115, 51, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-slate-light);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-copper), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header.center {
    text-align: center;
}

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

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-slate-light);
    max-width: 600px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* About Section */
.about {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-slate-light);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(184, 115, 51, 0.1);
    color: var(--color-copper);
    border-radius: var(--radius-md);
}

.feature span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-slate-dark);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    background-color: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    max-width: 380px;
    box-shadow: var(--shadow-xl);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-copper), var(--color-copper-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-content {
    text-align: center;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-copper);
    margin-bottom: var(--space-sm);
}

.card-name {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.card-title {
    font-size: 0.9375rem;
    color: var(--color-slate-light);
    margin-bottom: var(--space-md);
}

.card-divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-copper);
    margin: var(--space-md) auto;
}

.card-bio {
    font-size: 0.9375rem;
    color: var(--color-slate-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(184, 115, 51, 0.1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 115, 51, 0.2);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(184, 115, 51, 0.1);
    color: var(--color-copper);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--color-slate-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-copper);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.service-link:hover {
    gap: var(--space-sm);
}

/* Why Us Section */
.why-us {
    padding: var(--space-3xl) 0;
    background-color: var(--color-slate-dark);
    color: var(--color-cream);
}

.why-us .section-title {
    color: var(--color-white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.why-item {
    display: flex;
    gap: var(--space-lg);
}

.why-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-copper);
    line-height: 1;
    flex-shrink: 0;
}

.why-text h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.why-text p {
    color: rgba(245, 240, 235, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.why-visual {
    display: flex;
    justify-content: center;
}

.visual-quote {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--color-copper);
    line-height: 1;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: var(--space-md);
}

.quote-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-white);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-copper);
}

/* Contact Section */
.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(184, 115, 51, 0.1);
    color: var(--color-copper);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-copper);
    margin-bottom: var(--space-xs);
}

.contact-text p {
    font-size: 1rem;
    color: var(--color-slate-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-slate-dark);
}

.contact-link:hover {
    color: var(--color-copper);
}

.contact-cta {
    margin-top: var(--space-xl);
}

.contact-form-wrapper {
    background-color: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(47, 54, 64, 0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

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

/* Footer */
.footer {
    background-color: var(--color-slate-dark);
    color: var(--color-cream);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
}

.footer-logo .logo-text {
    color: var(--color-white);
    font-size: 1.125rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-copper);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.7);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.7);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-phone {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-white);
}

.footer-phone:hover {
    color: var(--color-copper);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(245, 240, 235, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(245, 240, 235, 0.5);
    margin-bottom: 0;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .why-item {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }
    
    .visual-card {
        padding: var(--space-lg);
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}