/* 
   VID WORKS - Premium Design System 
   Theme: Red + Charcoal + White
   Fonts: Inter, DM Sans, Plus Jakarta Sans
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;700&family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root {
    /* Color Palette - Hanuman Theme */
    --primary-red: #FF5722;
    /* Saffron/Deep Orange */
    --primary-charcoal: #1D3557;
    --secondary-blue: #457B9D;
    --light-blue: #FFE0B2;
    /* Light Orange/Cream */
    --off-white: #FFF3E0;
    /* Warm White */
    --pure-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-grey: #4A4A4A;
    --border-light: #E5E5E5;

    /* Gradients */
    --gradient-red: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    --gradient-dark: linear-gradient(135deg, #1D3557 0%, #16263D 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(29, 53, 87, 0.12);
    --shadow-hover: 0 20px 40px rgba(255, 87, 34, 0.25);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
    --section-spacing: 120px;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-charcoal);
}

p {
    font-family: 'Inter', sans-serif;
    color: var(--text-grey);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

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

.justify-between {
    justify-content: space-between;
}

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

.text-red {
    color: var(--primary-red);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Premium Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--pure-white);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-charcoal);
    border: 2px solid var(--primary-charcoal);
}

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

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Typography Scale */
.display-text {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.h1 {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
}

.h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-charcoal);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-charcoal);
    position: relative;
    font-size: 0.95rem;
    cursor: pointer;
}

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-charcoal);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    padding-bottom: 10px;
    top: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: white;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    z-index: 1001;
    overflow: hidden;
    padding: 8px 0;
    border: 1px solid var(--border-light);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--primary-charcoal);
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-transform: capitalize;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #FFF0F1;
    color: var(--primary-red);
    padding-left: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(29, 53, 87, 0.05), rgba(29, 53, 87, 0.05)),
        url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

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

/* Glass Cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 24px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 2;
}

.service-title {
    color: white;
    margin-bottom: 8px;
}

/* Service Detail Page Styles */
.service-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: var(--header-height);
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.7);
}

.detail-content {
    padding: 80px 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.spec-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

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

.spec-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 16px;
    display: block;
}

/* Footer & Contact */
.footer {
    background: var(--primary-charcoal);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo {
    color: white;
    margin-bottom: 24px;
    display: inline-block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-heading {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '\f054';
    /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--primary-red);
    opacity: 0.7;
}

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

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1002;
    transition: all 0.3s ease;
}

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

/* Calculator Styles */
.calculator-wrap {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.calc-header {
    background: var(--primary-charcoal);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.calc-body {
    padding: 40px;
    flex-grow: 1;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.option-card {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.05);
}

.option-card.active {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.1);
}

.option-icon {
    font-size: 2rem;
    color: var(--primary-charcoal);
    margin-bottom: 16px;
}

.calc-actions {
    padding: 30px 40px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    background: #FAFAFA;
}

/* Enhanced Calculator UI (New) */
.category-header {
    background: var(--primary-charcoal);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.calc-item-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calc-item-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #ddd;
    transform: translateY(-2px);
}

.calc-item-card.selected {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 1px var(--primary-red), 0 10px 25px rgba(230, 57, 70, 0.1);
}

.item-header {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex-grow: 1;
    background: white;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.calc-item-card.selected .custom-checkbox {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.item-title {
    font-weight: 600;
    color: var(--primary-charcoal);
    font-size: 1rem;
    margin-bottom: 4px;
}

.item-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.item-inputs {
    background: #FAFAFA;
    border-top: 1px solid var(--border-light);
    padding: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-full {
    grid-column: 1 / -1;
}

.mini-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.mini-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: white;
}

.mini-input:focus {
    border-color: var(--primary-charcoal);
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 53, 87, 0.05);
}

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

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile & Responsive */
@media (max-width: 900px) {
    .display-text {
        font-size: 3rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .dropdown {
        width: 100%;
        text-align: center;
        padding-bottom: 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        margin-top: 10px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Premium Form Styles */
.premium-input-group {
    margin-bottom: 24px;
    text-align: left;
}

.premium-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-charcoal);
    font-size: 0.95rem;
}

.premium-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--primary-charcoal);
    background: #f8f9fa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.1);
}

.premium-input::placeholder {
    color: #aaa;
}

/* Reviews Page Styles */
.reviews-hero {
    background: var(--primary-charcoal);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 87, 34, 0.1), transparent 70%);
}

.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.big-star {
    color: #FFB400;
    font-size: 1.5rem;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 87, 34, 0.3);
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF5722, #FF8A65);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-charcoal);
}

.reviewer-loc {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-rating {
    color: #FFB400;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.review-text {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 24px;
}

.review-meta {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.work-tag {
    background: #FFF3E0;
    color: var(--primary-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* --- Print / PDF Stylings --- */
.print-container {
    display: none;
    /* Hidden on screen */
}

@media print {

    /* Hide everything else */
    .navbar,
    .footer,
    .section,
    .whatsapp-float,
    .mobile-menu-btn,
    .calc-actions,
    .step-bar,
    .calc-header,
    .text-center,
    .animate-fade-up>div:not(.print-container) {
        display: none !important;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .calculator-wrap {
        box-shadow: none;
        border: none;
        overflow: visible;
        min-height: auto;
    }

    .print-container {
        display: block !important;
        width: 100%;
        max-width: 210mm;
        /* A4 width */
        margin: 0 auto;
        font-family: Arial, sans-serif;
    }

    .quote-table-detailed {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid #000;
        margin-top: 0;
        font-size: 10pt;
    }

    .quote-table-detailed th {
        background: #ddd !important;
        border: 1px solid #000;
        padding: 8px;
        text-align: center;
        font-weight: bold;
    }

    .quote-table-detailed td {
        border: 1px solid #000;
        padding: 6px 8px;
        vertical-align: middle;
        text-align: center;
    }

    .quote-table-detailed td:nth-child(2) {
        text-align: left;
        /* Item Name left align */
    }

    .quote-table-detailed td:nth-child(3) {
        text-align: left;
        /* Specs left align */
        font-size: 9pt;
    }

    /* Ensure backgrounds print */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}