/* ============================================
   Sheet Pile Supplier BD - Shared Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0A1F44;
    --primary-light: #1a3a6b;
    --secondary: #2E5090;
    --accent: #D4A843;
    --accent-light: #f0d68a;
    --success: #1B7A4A;
    --danger: #C0392B;
    --dark: #0d1b2a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-main: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(10,31,68,0.06);
    --shadow-md: 0 4px 12px rgba(10,31,68,0.1);
    --shadow-lg: 0 12px 40px rgba(10,31,68,0.12);
    --shadow-xl: 0 20px 60px rgba(10,31,68,0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    overflow-x: hidden;
    line-height: 1.7;
    background: #fff;
}

[data-lang="bn"] body,
[data-lang="bn"] * {
    font-family: 'Noto Sans Bengali', var(--font-main);
}

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

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}
.top-bar a:hover { color: var(--accent); }

/* ---------- Navbar ---------- */
.navbar-custom {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    padding: 0.5rem 0;
}
.navbar-custom.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.25rem 0;
}
.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary) !important;
}
.navbar-brand-custom span { color: var(--accent); }

.nav-link-custom {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.88rem;
    position: relative;
}
.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--secondary) !important;
    background: rgba(46,80,144,0.06);
}
.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Dropdown */
.dropdown-menu-custom {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 280px;
    animation: dropdownFade 0.2s ease;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.dropdown-item-custom:hover {
    background: rgba(46,80,144,0.06);
    color: var(--secondary);
}
.dropdown-item-custom .dd-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
    font-size: 0.88rem;
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46,80,144,0.3);
    color: white !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}
.hero-glow-1 { background: var(--accent); top: -200px; right: -100px; }
.hero-glow-2 { background: var(--secondary); bottom: -200px; left: -100px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin: 1.5rem 0;
}
.hero-title .highlight { color: var(--accent); }

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.hero-stat {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}
.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}
.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.25rem;
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent), #c49a30);
    color: var(--primary) !important;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}
.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212,168,67,0.35);
    color: var(--primary) !important;
}

.btn-outline-custom {
    background: transparent;
    color: white !important;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.25);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}
.btn-outline-custom:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
    color: white !important;
    transform: translateY(-2px);
}

/* ---------- Section Styles ---------- */
.section-padding { padding: 5.5rem 0; }
.section-padding-sm { padding: 4rem 0; }

.section-header { margin-bottom: 3.5rem; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(46,80,144,0.07);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 620px;
}

/* ---------- Service Cards (Homepage) ---------- */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    color: inherit;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    color: inherit;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
}

.service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.service-card p {
    color: var(--gray-600);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.service-card .card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}
.service-card:hover .card-link { gap: 0.6rem; }

/* ---------- Trust Logos ---------- */
.trust-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    transition: var(--transition);
    min-height: 60px;
    letter-spacing: 0.5px;
}
.trust-logo:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
}

/* ---------- Why Choose Us ---------- */
.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}
.why-card:hover .why-icon { transform: scale(1.1); }
.why-card h5 { font-size: 1rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.4) 1px, transparent 0);
    background-size: 30px 30px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 1rem; }
.testimonial-card blockquote {
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 5rem 0 2rem;
}
.footer h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.88rem;
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    margin-top: 3rem;
}
.cert-badge-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}
.cert-badge-footer i { color: var(--accent); }

/* ---------- Floating Elements ---------- */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    color: white;
}

.floating-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
}
.floating-scroll-top.visible { opacity: 1; visibility: visible; }
.floating-scroll-top:hover { transform: translateY(-3px); background: var(--primary); }

/* ---------- Page Hero (Service Pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
}
.page-hero .breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}
.page-hero .breadcrumb-custom a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb-custom a:hover { color: var(--accent); }
.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.page-hero .lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ---------- Spec Table ---------- */
.spec-table {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.spec-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
}
.spec-table td {
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.spec-table tr:nth-child(even) td { background: var(--gray-50); }

/* ---------- FAQ ---------- */
.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--secondary); }
.faq-question {
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gray-800);
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover { color: var(--secondary); }
.faq-question i { transition: var(--transition); color: var(--gray-400); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--secondary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.8;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

/* ---------- Calculator ---------- */
.calc-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.calc-result {
    background: linear-gradient(135deg, rgba(46,80,144,0.04), rgba(212,168,67,0.04));
    border: 1px solid rgba(46,80,144,0.12);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.calc-result .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

/* ---------- Case Study Card ---------- */
.case-study-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    background: white;
}
.case-study-card:hover { box-shadow: var(--shadow-lg); }
.case-study-img {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.case-study-img i { font-size: 3rem; color: rgba(255,255,255,0.3); }
.case-study-body { padding: 1.5rem; }
.case-study-body h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.case-study-body p { font-size: 0.88rem; color: var(--gray-600); }

/* ---------- Page Loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Related Services ---------- */
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.related-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
    color: inherit;
}
.related-card .rc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-section { min-height: auto; padding-top: 100px; }
}
@media (max-width: 767px) {
    .section-padding { padding: 3.5rem 0; }
    .top-bar { display: none; }
    .hero-title { font-size: 2rem; }
    .page-hero { padding: 8rem 0 3rem; }
}

/* ---------- Print ---------- */
@media print {
    .no-print { display: none !important; }
}
