/*
Theme Name: Model Hume Pipe & Concrete Poles Pro v15 (WP Customizer Rates & Hero Slider Edition)
Theme URI: https://example.com/model-hume-pipe-pro-v15
Author: Custom Industry Theme
Description: Industrial WordPress theme featuring Dynamic Hero Photo Slider via Customizer, Dynamic Product Management via Factory Products CPT, Auto-Seeding default products, Next/Prev pagination, dual mail notifications, and full WP Customizer control for Calculator Base Weights and Rates.
Version: 15.0.0
License: GNU General Public License v2 or later
Text Domain: model-hume-pipe-pro-v15
*/

:root {
  --brand-navy: #0F172A;
  --brand-orange: #FF6B00;
  --brand-orange-hover: #E05D00;
  --brand-yellow: #FFB800;
  --dark-slate: #1E293B;
  --light-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-main); background-color: var(--light-bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; }

/* Announcement Ticker Bar */
.announcement-bar { background: var(--brand-orange); color: #FFFFFF; font-size: 0.9rem; font-weight: 700; padding: 10px 0; overflow: hidden; white-space: nowrap; position: relative; z-index: 1001; }
.announcement-ticker { display: inline-block; animation: tickerScroll 25s linear infinite; }
@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Header & Top Bar */
.site-header { background: var(--glass-bg); backdrop-filter: blur(12px); box-shadow: var(--box-shadow); position: sticky; top: 0; z-index: 1000; }
.header-top { background: linear-gradient(135deg, var(--brand-navy) 0%, var(--dark-slate) 100%); color: #E2E8F0; font-size: 0.875rem; padding: 10px 0; border-bottom: 3px solid var(--brand-orange); }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-info span { margin-right: 18px; display: inline-flex; align-items: center; gap: 6px; }
.top-contacts span { margin-left: 15px; }

.lang-btn { background: var(--brand-orange); color: #FFFFFF; border: none; padding: 5px 14px; border-radius: 6px; font-weight: 800; cursor: pointer; font-size: 0.82rem; margin-left: 10px; transition: var(--transition); }
.lang-btn:hover { background: var(--brand-yellow); color: var(--brand-navy); }

.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand-logo { font-size: 1.75rem; font-weight: 900; color: var(--brand-navy); text-transform: uppercase; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.brand-logo span { color: var(--brand-orange); }

.desktop-menu { display: flex; gap: 24px; align-items: center; }
.desktop-menu a { font-weight: 700; font-size: 0.95rem; color: var(--brand-navy); position: relative; transition: var(--transition); }
.desktop-menu a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -6px; left: 0; background-color: var(--brand-orange); border-radius: 2px; transition: var(--transition); }
.desktop-menu a:hover::after { width: 100%; }

.cta-btn { background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-hover) 100%); color: #FFFFFF !important; padding: 12px 26px; border-radius: 8px; font-weight: 800; box-shadow: 0 4px 18px rgba(255, 107, 0, 0.4); transition: var(--transition); display: inline-block; border: none; cursor: pointer; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5); }

.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; background: none; border: none; color: var(--brand-navy); }
.mobile-drawer { display: none; position: fixed; top: 0; left: -100%; width: 290px; height: 100%; background: var(--brand-navy); color: #FFFFFF; z-index: 2000; padding: 35px 25px; box-shadow: 5px 0 30px rgba(0,0,0,0.4); transition: var(--transition); }
.mobile-drawer.active { left: 0; }
.mobile-drawer .close-btn { font-size: 1.8rem; color: var(--brand-orange); cursor: pointer; text-align: right; margin-bottom: 30px; }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-drawer ul a { font-size: 1.1rem; font-weight: 700; color: #F1F5F9; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }

/* Dynamic Hero Photo Slider Styling */
.hero-slider-container { position: relative; width: 100%; height: 600px; overflow: hidden; background: var(--dark-slate); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 100%); }
.hero-content { position: relative; z-index: 10; color: #FFFFFF; text-align: center; max-width: 900px; padding: 0 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 107, 0, 0.22); color: var(--brand-orange); border: 1.5px solid var(--brand-orange); padding: 8px 22px; border-radius: 30px; font-size: 0.88rem; font-weight: 800; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-size: 3.6rem; font-weight: 900; margin-bottom: 22px; text-transform: uppercase; line-height: 1.15; }
.hero-title span { color: var(--brand-orange); }
.hero-subtitle { font-size: 1.3rem; margin: 0 auto 35px; color: #CBD5E1; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-secondary { border: 2px solid #FFFFFF; color: #FFFFFF; padding: 12px 28px; border-radius: 8px; font-weight: 800; transition: var(--transition); }
.btn-secondary:hover { background: #FFFFFF; color: var(--brand-navy); }

/* Slider Controls */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; background: rgba(15, 23, 42, 0.6); color: #FFF; border: 2px solid rgba(255,255,255,0.3); width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.slider-arrow:hover { background: var(--brand-orange); border-color: var(--brand-orange); }
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }
.slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 10px; }
.slider-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--brand-orange); width: 35px; border-radius: 10px; }

/* Stats Strip & Section Layout */
.stats-strip { background: #FFFFFF; padding: 45px 0; margin-top: -50px; position: relative; z-index: 30; border-radius: 16px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 2.6rem; color: var(--brand-orange); font-weight: 900; }
.stat-item p { font-weight: 700; color: var(--text-muted); }

.section-padding { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.6rem; color: var(--brand-navy); margin-bottom: 15px; font-weight: 900; }
.section-title::after { content: ''; width: 85px; height: 5px; background: linear-gradient(90deg, var(--brand-orange), var(--brand-yellow)); display: block; margin: 14px auto 0; border-radius: 3px; }
.section-subtext { text-align: center; color: var(--text-muted); max-width: 750px; margin: 0 auto 60px; font-size: 1.1rem; }

/* Chairman Card */
.chairman-section { background: #FFFFFF; }
.chairman-card { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: center; background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%); border-radius: 20px; overflow: hidden; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); padding: 45px; }
.chairman-img-wrap { position: relative; }
.chairman-img-wrap::after { content: ''; position: absolute; inset: 0; border-radius: 16px; border: 3px solid var(--brand-orange); transform: translate(10px, 10px); z-index: 1; }
.chairman-img { width: 100%; height: 390px; border-radius: 16px; object-fit: cover; position: relative; z-index: 2; box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.chairman-content blockquote { font-size: 1.25rem; font-style: italic; color: var(--brand-navy); margin-bottom: 25px; line-height: 1.85; position: relative; padding-left: 28px; border-left: 5px solid var(--brand-orange); }
.chairman-details h4 { font-size: 1.5rem; color: var(--brand-navy); font-weight: 800; }
.chairman-details p { color: var(--brand-orange); font-weight: 800; }

/* Calculator Section */
.calculator-section { background: linear-gradient(135deg, var(--brand-navy) 0%, var(--dark-slate) 100%); color: #FFFFFF; }
.calculator-card { background: #FFFFFF; color: var(--text-main); border-radius: 20px; padding: 50px; max-width: 960px; margin: 0 auto; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.calc-result-box { background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%); border: 2px dashed var(--brand-orange); border-radius: 16px; padding: 35px; text-align: center; margin-top: 35px; }
.calc-result-val { font-size: 2.3rem; font-weight: 900; color: var(--brand-navy); }

.letterhead-header { display: none; }
.letterhead-footer-stamp { display: none; }

/* Products & Pagination */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.product-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12); }
.card-img-wrap { height: 250px; overflow: hidden; position: relative; cursor: pointer; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.1); }
.card-body { padding: 32px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-body h3 { font-size: 1.5rem; color: var(--brand-navy); margin-bottom: 14px; font-weight: 800; }
.spec-list { margin: 20px 0; padding-left: 0; }
.spec-list li { font-size: 0.95rem; color: var(--text-muted); padding: 8px 0; border-bottom: 1px dashed #E2E8F0; }

.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 50px; }
.pagination-wrap a, .pagination-wrap span { padding: 10px 18px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 8px; font-weight: 800; color: var(--brand-navy); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: var(--transition); }
.pagination-wrap a:hover, .pagination-wrap span.current { background: var(--brand-orange); color: #FFFFFF; border-color: var(--brand-orange); }

.media-section { background-color: #F8FAFC; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; margin-bottom: 50px; }
.video-card { background: #000; border-radius: 16px; overflow: hidden; box-shadow: var(--box-shadow); }
.video-card video { width: 100%; display: block; }
.video-info { background: var(--dark-slate); color: #FFF; padding: 18px 24px; font-size: 1rem; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.gallery-item { height: 220px; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.12); }

/* Completed Projects Portfolio */
.projects-section { background: #FFFFFF; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.project-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--box-shadow); background: #F8FAFC; transition: var(--transition); }
.project-card:hover { transform: translateY(-5px); }
.project-img { height: 240px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-info { padding: 25px; }
.project-info h3 { font-size: 1.3rem; color: var(--brand-navy); margin-bottom: 10px; font-weight: 800; }
.project-info p { color: var(--text-muted); font-size: 0.95rem; }

/* Logo Marquee */
.marquee-section { background: #F1F5F9; padding: 50px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; }
.marquee-title { text-align: center; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 30px; letter-spacing: 1px; }
.marquee-track { display: flex; width: max-content; gap: 50px; animation: scrollMarquee 30s linear infinite; align-items: center; }
.client-logo-badge { display: flex; align-items: center; gap: 10px; background: #FFFFFF; padding: 12px 24px; border-radius: 50px; font-weight: 800; color: var(--brand-navy); border: 1px solid var(--border-color); white-space: nowrap; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Map Section */
.map-section { background: #F8FAFC; padding: 80px 0; }
.map-container { border-radius: 16px; overflow: hidden; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); height: 450px; width: 100%; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Floating Widgets */
.floating-widgets { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #FFF; box-shadow: 0 8px 25px rgba(0,0,0,0.25); transition: var(--transition); text-decoration: none; }
.float-btn:hover { transform: scale(1.1); }
.whatsapp-float { background: #25D366; }
.call-float { background: var(--brand-orange); }

/* Lightbox Modal */
#imageLightbox { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.9); z-index: 10000; align-items: center; justify-content: center; padding: 30px; }
#imageLightbox.active { display: flex; }
#lightboxImg { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 25px; right: 35px; font-size: 2.5rem; color: #FFF; cursor: pointer; font-weight: 900; }

/* Inquiry Form & Footer */
.inquiry-section { background: #FFFFFF; }
.inquiry-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.inquiry-form { background: var(--light-bg); padding: 45px; border-radius: 16px; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--brand-navy); }
.form-control { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18); }
.submit-btn { width: 100%; background: var(--brand-navy); color: #FFFFFF; padding: 16px; border: none; border-radius: 8px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.submit-btn:hover { background: var(--brand-orange); }

.site-footer { background: var(--brand-navy); color: #94A3B8; padding: 85px 0 35px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 45px; margin-bottom: 50px; }
.footer-col h4 { color: #FFFFFF; font-size: 1.3rem; margin-bottom: 25px; position: relative; font-weight: 800; }
.footer-col h4::after { content: ''; width: 45px; height: 3px; background: var(--brand-orange); display: block; margin-top: 10px; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a:hover { color: var(--brand-orange); }
.copyright { text-align: center; padding-top: 35px; border-top: 1px solid var(--dark-slate); font-size: 0.95rem; }

/* Letterhead Print Styles */
@media print {
  body * { visibility: hidden; }
  #calculator, #calculator * { visibility: visible; }
  #calculator { position: absolute; left: 0; top: 0; width: 100%; background: #FFF !important; color: #000 !important; padding: 0 !important; }
  .calculator-card { box-shadow: none !important; border: none !important; padding: 10px !important; }
  .calc-grid, .cta-btn, .slider-arrow, .section-subtext, .section-title { display: none !important; }
  
  .letterhead-header {
    display: block !important;
    text-align: center;
    border-bottom: 3px double var(--brand-navy);
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  .letterhead-header h2 {
    font-size: 1.8rem;
    color: #0F172A;
    text-transform: uppercase;
    font-weight: 900;
  }
  .letterhead-header p {
    font-size: 0.9rem;
    color: #334155;
    margin-top: 4px;
    font-weight: 600;
  }
  .calc-result-box {
    border: 2px solid #0F172A !important;
    background: #FFF !important;
    margin-top: 10px !important;
  }
  .letterhead-footer-stamp {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
  }
}

@media (max-width: 992px) {
  .desktop-menu { display: none; }
  .mobile-toggle { display: block; }
  .mobile-drawer { display: block; }
  .hero-title { font-size: 2.6rem; }
  .chairman-card { grid-template-columns: 1fr; text-align: center; }
  .chairman-img-wrap::after { display: none; }
  .chairman-img { height: 320px; margin: 0 auto; }
  .chairman-content blockquote { padding-left: 0; border-left: none; }
  .slider-arrow { display: none; }
}
@media (max-width: 768px) {
  .header-top .container { flex-direction: column; gap: 8px; text-align: center; }
  .hero-slider-container { height: 520px; }
  .hero-title { font-size: 2.2rem; }
  .calc-grid, .inquiry-container { grid-template-columns: 1fr; }
}
