/* ==========================================
   SARVAM PIPES - CSS STYLE SHEET
   ========================================== */

/* Design Tokens & Variables */
:root {
    --primary-color: #0a2240;      /* Deep Trust Blue */
    --primary-dark: #06152b;       /* Darker Navy */
    --primary-light: #153860;      /* Lighter Navy */
    --secondary-color: #e87a24;    /* Vivid Brand Orange */
    --secondary-hover: #cf6615;    /* Darker Orange */
    --neutral-bg: #f4f6f9;         /* Warm Light Grey */
    --neutral-white: #ffffff;
    --text-main: #2d3748;          /* Charcoal Dark */
    --text-muted: #5a6e85;         /* Muted Slate */
    --text-light: #cbd5e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(10, 34, 64, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 34, 64, 0.15);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --max-width: 1200px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-accent {
    color: var(--secondary-color);
}

.text-white {
    color: var(--neutral-white) !important;
}

.text-light {
    color: var(--text-light) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 122, 36, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 34, 64, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--neutral-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--secondary-color);
    color: var(--neutral-white);
    border: none;
}

.btn-accent:hover {
    background-color: var(--secondary-hover);
    transform: scale(1.03);
}

.btn-block {
    width: 100%;
}

/* Section Common Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.title-underline.left-aligned {
    margin: 0;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--neutral-white);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.top-info a {
    color: var(--text-light);
}

.top-info a:hover {
    color: var(--secondary-color);
}

.top-socials {
    display: flex;
    gap: 16px;
}

.top-socials a {
    color: var(--text-light);
    opacity: 0.8;
}

.top-socials a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/* Header & Navigation */
.main-header {
    background-color: var(--neutral-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    padding: 16px 0;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo-img {
    height: 48px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width var(--transition-speed) ease;
}

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

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

.mobile-nav-toggle .close-icon {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 160px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--neutral-white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Custom Hero Curve Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-accent-orange {
    fill: var(--secondary-color);
    opacity: 0.3;
}

.wave-bg-white {
    fill: var(--neutral-white);
}

/* Products Section */
.products-section {
    background-color: var(--neutral-white);
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--neutral-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 34, 64, 0.05);
    overflow: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 122, 36, 0.3);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.product-link i {
    font-size: 0.8rem;
    transition: transform var(--transition-speed) ease;
}

.product-card:hover .product-link i {
    transform: translateX(4px);
}

.section-footer-btn {
    margin-top: 50px;
}

/* Why Choose Us / About Section */
.about-section {
    background-color: var(--neutral-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--secondary-color);
    color: var(--neutral-white);
    padding: 20px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 160px;
    animation: float 4s ease-in-out infinite;
}

.badge-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 15px 0;
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    color: var(--neutral-white);
}

.stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
}

/* Quality Section */
.quality-section {
    background-color: var(--primary-color);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.quality-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 36px 28px;
    transition: all var(--transition-speed) ease;
}

.quality-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.quality-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.quality-card h3 {
    color: var(--neutral-white);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.quality-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Industries Section */
.industries-section {
    background-color: var(--neutral-white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.industry-card {
    background-color: var(--neutral-bg);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: default;
}

.industry-card:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-light);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.industry-icon {
    font-size: 2.25rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
    transition: color var(--transition-speed) ease;
}

.industry-card:hover .industry-icon {
    color: var(--neutral-white);
}

.industry-name {
    font-size: 1rem;
    font-weight: 700;
    transition: color var(--transition-speed) ease;
}

.industry-card:hover .industry-name {
    color: var(--neutral-white);
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--neutral-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--neutral-white);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.footer-socials a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--neutral-white);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
}

.footer-contact-info i {
    color: var(--secondary-color);
    margin-top: 4px;
    font-size: 1rem;
}

.footer-contact-info a:hover {
    color: var(--secondary-color);
}

.footer-btn-wrapper {
    margin-top: 24px;
}

.footer-bottom {
    background-color: var(--primary-dark);
    padding: 24px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    opacity: 0.6;
}

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

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

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 21, 43, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--neutral-white);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.open .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #fafbfc;
    transition: all var(--transition-speed) ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--neutral-white);
    box-shadow: 0 0 0 3px rgba(232, 122, 36, 0.15);
}

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.modal-success.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    font-size: 4rem;
    color: #48bb78;
    margin-bottom: 10px;
}

.modal-success h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-success p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 450px;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet (Desktop under 1024px) */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    .about-img {
        height: 380px;
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Mobile Breakpoint (under 768px) */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .top-bar {
        display: none; /* Hide topbar on mobile to save space */
    }

    .main-header {
        padding: 12px 0;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--neutral-white);
        box-shadow: var(--shadow-lg);
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        padding: 40px 24px;
        z-index: 999;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-cta {
        display: none; /* Quote request is shifted to mobile menu */
    }

    .hero-section {
        padding: 80px 0 100px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .hero-wave svg {
        height: 60px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .modal-card {
        padding: 24px;
        width: 90%;
    }
}

/* Small Mobile Phones (under 480px) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-banner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
