@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --color-bg-primary: #0a0f1d;
    --color-bg-secondary: #0f1629;
    --color-bg-tertiary: #16203b;
    --color-border: #222f54;

    --color-accent-orange: #ff5a09;
    --color-accent-orange-hover: #e04a00;
    --color-accent-orange-glow: rgba(255, 90, 9, 0.35);
    --color-accent-orange-light: rgba(255, 90, 9, 0.1);

    --color-text-primary: #ffffff;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #64748b;

    --color-success: #10b981;
    --color-success-light: rgba(16, 185, 129, 0.15);

    /* Layout & Spacing */
    --container-width: 1280px;
    --header-height: 88px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadow & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 22, 41, 0.7);
    --glass-border: rgba(34, 47, 84, 0.6);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Heading Underline Accent */
h2.with-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-orange);
    border-radius: 2px;
}

h2.with-underline.center::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    color: var(--color-text-secondary);
    font-weight: 400;
}

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

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

section {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}

.section-alternate {
    background-color: var(--color-bg-secondary);
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background-color: #faf9f6;
    /* cream white background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    height: 76px;
    background-color: rgba(250, 249, 246, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 62px;
    /* increased logo icon/text size */
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

header.scrolled .logo-img {
    height: 50px;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #1a3a7c;
    /* navy blue to match logo text */
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-btn {
    background-color: var(--color-accent-orange);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 4px;
    box-shadow: 0 4px 14px var(--color-accent-orange-glow);
}

.nav-btn:hover {
    background-color: var(--color-accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-accent-orange-glow);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1a3a7c;
    position: absolute;
    transition: var(--transition-smooth);
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-toggle span:nth-child(3) {
    top: 18px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-accent-orange);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--color-accent-orange-glow);
}

.btn-primary:hover {
    background-color: var(--color-accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-accent-orange-glow);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-accent-orange);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(10, 15, 29, 0.85), rgba(10, 15, 29, 0.95)), url('assets/hero_pipes.png');
    background-size: cover;
    background-position: center;
    padding-top: calc(var(--header-height) + 40px);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, var(--color-bg-primary));
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 40px;
    max-width: 620px;
    color: var(--color-text-secondary);
}

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

/* Pipe Calculator Widget Widget */
.calc-widget {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.calc-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-accent-orange);
}

.calc-widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-form-group {
    margin-bottom: 18px;
}

.calc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

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

.calc-input {
    width: 100%;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.calc-input:focus {
    outline: none;
    border-color: var(--color-accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 9, 0.15);
}

.calc-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
    pointer-events: none;
}

.calc-units-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 3px;
    margin-bottom: 20px;
}

.calc-toggle-btn {
    border: none;
    background: none;
    color: var(--color-text-secondary);
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.calc-toggle-btn.active {
    background-color: var(--color-accent-orange);
    color: #ffffff;
}

.calc-result-box {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.calc-result-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent-orange);
    line-height: 1;
    margin-bottom: 6px;
}

.calc-result-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Feature Grid Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 40px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background-color: var(--color-accent-orange-light);
    color: var(--color-accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

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

.feature-card p {
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-accent-orange);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feature-link:hover {
    color: #ffffff;
}

/* Stat Banner Section */
.stats-banner {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-accent-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Split Visual Layout Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    height: 480px;
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.split-image-container:hover .split-image {
    transform: scale(1.05);
}

/* Quality Checklist Items */
.checklist {
    list-style: none;
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-icon {
    color: var(--color-success);
    margin-top: 3px;
    flex-shrink: 0;
}

.checklist-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.checklist-text p {
    font-size: 14px;
}

/* Product Catalog Table Details */
.product-tabs-container {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 32px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 4px;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: #ffffff;
    background-color: var(--color-bg-secondary);
}

.tab-btn.active {
    background-color: var(--color-accent-orange);
    color: #ffffff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-bg-secondary);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

th,
td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: var(--color-bg-tertiary);
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Contact Details & RFQ Form Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
    height: fit-content;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: var(--color-accent-orange-light);
    color: var(--color-accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.contact-detail-text p {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

/* RFQ Multi-step and Input Forms */
.rfq-form-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-select,
.form-textarea {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 9, 0.15);
}

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

.form-btn-wrapper {
    margin-top: 32px;
}

/* Notification Dialog */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-bg-secondary);
    border-left: 4px solid var(--color-success);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2000;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    color: var(--color-success);
    font-size: 24px;
}

.notification-content h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.notification-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Footer Section */
footer {
    background-color: rgba(250, 249, 246, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
    color: #1a3a7c;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 15px;
    max-width: 280px;
    color: #1a3a7c;
}

.footer-heading {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #1a3a7c;
}

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

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

.footer-links a {
    color: #1a3a7c;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--color-accent-orange);
    padding-left: 6px;
}

.footer-newsletter p {
    font-size: 14px;
    margin-bottom: 18px;
    color: #1a3a7c;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    background-color: #ffffff;
    border: 1px solid rgba(26, 58, 124, 0.2);
    color: #1a3a7c;
    padding: 12px 16px;
    border-radius: 4px;
    width: 100%;
    font-family: var(--font-body);
}

.newsletter-input::placeholder {
    color: rgba(26, 58, 124, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent-orange);
}

.newsletter-btn {
    background-color: var(--color-accent-orange);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    background-color: var(--color-accent-orange-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 14px;
    color: rgba(26, 58, 124, 0.7);
}

.footer-legal {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: rgba(26, 58, 124, 0.7);
}

.footer-legal a {
    color: inherit;
}

.footer-legal a:hover {
    color: var(--color-accent-orange);
}

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

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .calc-widget {
        margin-top: 70px;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .split-image-container {
        height: 380px;
    }

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

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

@media (max-width: 768px) {
    :root {
        --header-height: 76px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 24px;
        border-top: 1px solid var(--color-border);
        transition: var(--transition-smooth);
        overflow-y: auto;
    }

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

    .nav-link {
        color: var(--color-text-secondary);
        /* light colors on mobile dark overlay */
    }

    .nav-link:hover,
    .nav-link.active {
        color: #ffffff;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

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

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

    .rfq-form-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}