/* ==========================================
   CA Rupa Sahni & Associates CSS stylesheet
   Modern Professional Corporate Theme (Navy & Gold)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    /* Color Palette */
    --primary: #0f172a;        /* Deep Slate Navy */
    --primary-light: #1e293b;  /* Slate Navy */
    --primary-dark: #090d16;   /* Rich Dark Navy */
    --accent: #d4af37;         /* Luxury Gold */
    --accent-hover: #c5a880;   /* Muted Gold */
    --text-dark: #0f172a;      /* Dark body text */
    --text-light: #f8fafc;     /* White/Light gray text */
    --text-muted: #64748b;     /* Slate gray text */
    --bg-light: #f8fafc;       /* Soft white-gray */
    --bg-white: #ffffff;       /* Pure white */
    --border-color: #e2e8f0;   /* Clean border */
    
    /* Layout Details */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --box-shadow-hover: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    --gold-glow: 0 10px 25px -10px rgba(212, 175, 55, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* Header & Sticky Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 70px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    border-radius: 4px;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 38px;
}

/* Navigation Links */
nav.desktop-menu {
    display: flex;
    align-items: center;
}

nav.desktop-menu a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 30px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

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

nav.desktop-menu a:hover {
    color: var(--accent);
}

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

nav.desktop-menu a.active {
    color: var(--accent);
}

/* Mobile Toggle & Menu */
#menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sidebar-menu {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)),
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 100px 5% 0;
}

.hero-text {
    max-width: 900px;
    animation: fadeInUp 1s var(--transition-smooth);
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 25px;
    color: white;
}

.hero-text p {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent);
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--gold-glow);
    transition: var(--transition-smooth);
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(212, 175, 55, 0.5);
}

/* Hero Inner Pages */
.hero-inner {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)),
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070') no-repeat center center/cover;
}

.hero-inner .hero-text h1 {
    font-size: 44px;
}

.hero-inner .hero-text p {
    font-size: 18px;
    margin-bottom: 0;
}

/* Section Styling */
section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Home Links grid */
.home-links {
    background: var(--bg-white);
}

.home-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-link-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent);
}

.home-link-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.home-link-card:hover i {
    background: var(--accent);
    color: var(--primary);
    transform: rotateY(360deg);
}

.home-link-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.home-link-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* GST Calculator Section */
.calculator-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.calc-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-title h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.calc-title p {
    color: var(--text-muted);
    font-size: 14px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.calc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-prefix {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

.calc-group input,
.calc-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    background: var(--bg-light);
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.calc-group input.with-prefix {
    padding-left: 35px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    flex: 1;
}

.radio-option input {
    display: none;
}

.radio-label {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: var(--bg-light);
}

.radio-option input:checked + .radio-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.calc-results {
    background: var(--primary);
    color: white;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.results-header h4 {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.result-row.total {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 15px;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.result-val {
    font-family: inherit;
    font-weight: 600;
}

.result-row.total .result-val {
    color: var(--accent);
    font-size: 22px;
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-full-width {
    max-width: 850px;
    margin: 0 auto;
}

.about-badge-inline {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: var(--gold-glow);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-bullets {
    margin-top: 30px;
}

.about-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.about-bullet-item i {
    color: var(--accent);
    font-size: 20px;
    margin-top: 3px;
}

.about-bullet-text h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
}

.about-bullet-text p {
    font-size: 14px;
    margin-bottom: 0;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
    border: 3px solid white;
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--accent);
    color: var(--primary);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--gold-glow);
    text-align: center;
    z-index: 10;
}

.about-badge .number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.about-badge .label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Choose Us Section */
.why-us {
    background: var(--primary);
    color: white;
}

.why-us .section-title h2 {
    color: white;
}

.why-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-smooth);
}

.why-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.why-box i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 20px;
}

.why-box h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.why-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-box {
    background: var(--bg-white);
    padding: 40px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-box::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 80px;
    color: rgba(212, 175, 55, 0.15);
    font-family: serif;
    line-height: 1;
}

.testimonial-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent);
}

.testimonial-box p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--accent);
}

.testimonial-meta h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: var(--primary);
}

.testimonial-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Services Filter Tab system */
.services-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(15, 23, 72, 0.2);
}

.service-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 45px 35px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

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

.card:hover::after {
    transform: scaleX(1);
}

.card.hidden {
    display: none;
}

.card i {
    font-size: 38px;
    color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.card:hover i {
    background: var(--accent);
    color: var(--primary);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 18px;
}

.card .service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card .service-list li {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card .service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--accent);
}

/* Contact Page Split Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-info-panel {
    background: var(--primary);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
}

.contact-info-header h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 12px;
}

.contact-info-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 20px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item-text h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    font-size: 15px;
    margin-bottom: 5px;
}

.contact-item-text p,
.contact-item-text a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.contact-item-text a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 15px;
    z-index: 2;
}

.contact-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition-smooth);
}

.contact-socials a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-panel {
    padding: 50px;
}

.contact-form-panel h3 {
    font-size: 26px;
    margin-bottom: 25px;
}

/* Floating label form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field-full {
    grid-column: span 2;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-group textarea {
    height: 130px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 14px;
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Float label logic when input is focused or filled */
.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: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-white);
    padding: 0 5px;
}

.contact-form-panel button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-form-panel button:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: var(--gold-glow);
}

/* Success Modal Notification */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-card i {
    font-size: 55px;
    color: #25d366;
    margin-bottom: 20px;
}

.modal-card h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

.modal-close-btn {
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Map Section Styles */
.map-section {
    padding: 0 8% 80px;
    background: var(--bg-light);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Call to Action Banner */
.contact-cta {
    background: var(--bg-light);
    padding: 80px 8%;
    border-top: 1px solid var(--border-color);
}

.contact-cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.contact-cta-inner h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-cta-inner p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Footer Section */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 8% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-about h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

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

.footer-contact-item a {
    transition: var(--transition-smooth);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1024px) {
    header {
        padding: 0 5%;
    }
    
    section {
        padding: 80px 5%;
    }

    .calculator-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        grid-row: 1;
    }

    .about-badge {
        bottom: 10px;
        left: 10px;
    }

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

    .contact-info-panel {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    
    .desktop-menu {
        display: none !important;
    }
    
    .hamburger {
        display: block;
        z-index: 1002;
    }
    
    /* Mobile Overlay Sidebar */
    .sidebar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        z-index: 1001;
        padding: 90px 30px 40px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        visibility: hidden;
    }
    
    .sidebar-menu a {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        font-weight: 500;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .sidebar-menu a:hover,
    .sidebar-menu a.active {
        color: var(--accent);
        padding-left: 10px;
    }
    
    .sidebar-menu .menu-contact {
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 25px;
    }
    
    .sidebar-menu .menu-contact p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .sidebar-menu .menu-contact i {
        color: var(--accent);
    }
    
    /* Checked toggle triggers menu */
    #menu-toggle:checked ~ .sidebar-menu {
        right: 0;
        visibility: visible;
    }

    #menu-toggle:checked ~ .hamburger i {
        content: "\f00d"; /* fontawesome Xmark */
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 30px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    .form-field-full {
        grid-column: span 1;
    }

    .contact-form-panel {
        padding: 40px 30px;
    }
}