/* ============================================================================
   CONCRETEX NEPAL — css/styles.css
   Brand: White + Industrial Charcoal (#263640) + Concretex Orange (#F67A52,
   accent only). Montserrat throughout. Industrial/architectural, restrained —
   hairline rules, sharp-ish corners, no gradients, no heavy shadows, minimal
   motion. Signature device: engineering-drawing style numbered callouts
   (01 / 02 ...) used for stats and section eyebrows — a nod to the fact this
   is a precision manufacturer, not decoration for its own sake.
   ============================================================================ */

:root {
  --charcoal: #263640;
  --charcoal-soft: #3c4d57;
  --orange: #f67a52;
  --orange-dark: #de5c34;
  --white: #ffffff;
  --grey-50: #f7f8f7;
  --grey-100: #edeeec;
  --grey-200: #dde0de;
  --grey-400: #a8b0ac;
  --grey-600: #6b7570;
  --line: #e2e4e1;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body { font-size: 16px; line-height: 1.6; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 14px; color: var(--charcoal); }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; color: var(--charcoal-soft); }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 20px; color: var(--charcoal-soft); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--grey-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.eyebrow .num {
  font-family: var(--font);
  font-weight: 800;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  padding: 1px 6px;
  font-size: 11px;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: var(--white); text-decoration: none; }
.btn-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-on-dark:hover { background: var(--white); color: var(--charcoal); text-decoration: none; }
.btn-block { width: 100%; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Header / Navigation                                                    */
/* ---------------------------------------------------------------------- */

#site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; }
.brand-logo-fallback {
  height: 40px; width: 40px;
  background: var(--charcoal);
  color: var(--orange);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.brand-text-lockup { line-height: 1.1; }
.brand-text-lockup .l1 { display: block; font-weight: 800; font-size: 15.5px; color: var(--charcoal); letter-spacing: 0.01em; }
.brand-text-lockup .l2 { display: block; font-weight: 600; font-size: 10.5px; color: var(--orange-dark); letter-spacing: 0.14em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--orange-dark); text-decoration: none; }
.nav-link.erp-link {
  color: var(--white);
  background: var(--charcoal);
  padding: 9px 16px;
  margin-left: 6px;
}
.nav-link.erp-link:hover { background: var(--orange-dark); }

.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(38,54,64,0.08);
  min-width: 240px;
  padding: 8px;
  display: none;
  border-radius: var(--radius);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--charcoal-soft);
  border-radius: var(--radius);
}
.nav-dropdown a:hover { background: var(--grey-50); color: var(--orange-dark); text-decoration: none; }

.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.lang-switch button {
  background: none; border: none; cursor: pointer;
  color: var(--grey-600); font-family: var(--font); font-weight: 700; font-size: 12.5px;
  padding: 4px 6px;
}
.lang-switch button.active { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
.lang-switch .sep { color: var(--grey-400); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--charcoal); display: block; }

#mobile-nav {
  display: none;
  position: fixed; inset: 0; top: 68px;
  background: var(--white);
  z-index: 199;
  overflow-y: auto;
  padding: 8px 20px 40px;
}
#mobile-nav.open { display: block; }
#mobile-nav .m-link {
  display: block; padding: 14px 4px; font-size: 16px; font-weight: 600;
  color: var(--charcoal); border-bottom: 1px solid var(--line); text-decoration: none;
}
#mobile-nav .m-sub { padding-left: 16px; }
#mobile-nav .m-sub a { font-size: 14.5px; font-weight: 500; color: var(--charcoal-soft); padding: 10px 4px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(38,54,64,0.35) 0%, rgba(38,54,64,0.88) 78%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 34px),
    linear-gradient(135deg, #2f4048 0%, #1c2830 100%);
}
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-media.no-img::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
}
.hero-content { position: relative; z-index: 2; padding: 64px 24px 56px; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-content h1 { color: var(--white); max-width: 720px; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.hero-content .lede { color: rgba(255,255,255,0.95); font-size: 17px; max-width: 620px; margin-bottom: 28px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 52px 0 44px;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .lede { color: rgba(255,255,255,0.78); max-width: 680px; margin-bottom: 0; }
.breadcrumb { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Stats                                                                  */
/* ---------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat-block {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 22px;
}
.stat-block .num-tag { font-size: 11px; font-weight: 700; color: var(--grey-400); letter-spacing: 0.06em; margin-bottom: 10px; }
.stat-block .figure { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--charcoal); }
.stat-block .figure .plus { color: var(--orange); }
.stat-block .caption { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey-600); margin-top: 6px; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------- */
/* Cards                                                                  */
/* ---------------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  padding: 30px 26px;
}
.card h3 { margin-bottom: 10px; }
.card .num-tag { font-size: 11px; font-weight: 700; color: var(--grey-400); letter-spacing: 0.06em; margin-bottom: 12px; }

.product-card {
  background: var(--white);
  display: flex; flex-direction: column;
}
.product-card .thumb { aspect-ratio: 4/3; }
.product-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card .body p { flex: 1; }
.product-card .spec-line { font-size: 13px; color: var(--grey-600); font-weight: 600; margin-bottom: 10px; }

/* image placeholder pattern: shown while real photo asset is not yet present */
.img-frame {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--grey-100) 0 2px, var(--grey-50) 2px 22px);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame .placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--grey-400);
}
.img-frame img.loaded + .placeholder-label,
.img-frame img:not(.broken) ~ .placeholder-label { display: none; }
.img-frame img.broken { display: none; }

/* ---------------------------------------------------------------------- */
/* Applications                                                           */
/* ---------------------------------------------------------------------- */

.app-block { padding: 26px; border: 1px solid var(--line); background: var(--white); }
.app-block h3 { margin-bottom: 8px; }
.app-block a.app-link { font-size: 13.5px; font-weight: 700; }

/* ---------------------------------------------------------------------- */
/* Pole variant tabs                                                      */
/* ---------------------------------------------------------------------- */

.variant-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.variant-tab {
  border: 1.5px solid var(--line);
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  min-width: 150px;
}
.variant-tab .code { display: block; font-weight: 800; font-size: 14px; color: var(--charcoal); }
.variant-tab .desc { display: block; font-size: 12px; color: var(--grey-600); margin-top: 2px; }
.variant-tab.active { border-color: var(--orange); background: #fff6f2; }
.variant-tab:hover { border-color: var(--orange); }

/* ---------------------------------------------------------------------- */
/* Tables                                                                 */
/* ---------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.spec-table { width: 100%; border-collapse: collapse; min-width: 520px; }
table.spec-table th, table.spec-table td {
  text-align: left; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.spec-table th { background: var(--grey-50); font-weight: 700; color: var(--charcoal); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
table.spec-table tr:last-child td { border-bottom: none; }
table.spec-table td.param-label { font-weight: 600; color: var(--charcoal); white-space: normal; }
.spec-na { color: var(--grey-400); font-style: italic; }

/* ---------------------------------------------------------------------- */
/* FAQ                                                                    */
/* ---------------------------------------------------------------------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 4px; font-family: var(--font); font-weight: 700; font-size: 15.5px; color: var(--charcoal);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .icon { font-size: 18px; color: var(--orange-dark); flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 18px; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Gallery + Lightbox                                                     */
/* ---------------------------------------------------------------------- */

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.gallery-filter {
  border: 1.5px solid var(--line); background: var(--white); padding: 8px 16px;
  border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 13px; cursor: pointer;
}
.gallery-filter.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery-item { aspect-ratio: 4/3; cursor: pointer; border: none; padding: 0; }

.lightbox {
  position: fixed; inset: 0; background: rgba(20,26,29,0.95);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border: 1px solid rgba(255,255,255,0.1); }
.lightbox-caption { color: rgba(255,255,255,0.75); font-size: 13.5px; margin-top: 14px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.08); color: var(--white); border: none;
  cursor: pointer; font-size: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); }

/* ---------------------------------------------------------------------- */
/* Form                                                                   */
/* ---------------------------------------------------------------------- */

.enquiry-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--grey-600); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--charcoal);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
}
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: #fdeceb; color: #b2372a; border: 1px solid #f4c3bc; }
.form-msg.success { background: #eaf6ef; color: #1d7a4c; border: 1px solid #bfe6cf; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-success { text-align: center; padding: 40px 20px; }
.form-success h2 { margin-bottom: 8px; }

/* ---------------------------------------------------------------------- */
/* WhatsApp CTA                                                           */
/* ---------------------------------------------------------------------- */

.whatsapp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid #2f9e5c; color: #1d7a4c; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius); text-decoration: none;
}
.whatsapp-cta:hover { background: #eaf6ef; text-decoration: none; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

#site-footer { background: var(--charcoal); color: rgba(255,255,255,0.72); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 52px 24px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
.footer-brand .brand-text-lockup .l1 { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 14px; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.68); font-size: 14px; margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px; max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Utility                                                                */
/* ---------------------------------------------------------------------- */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.section-header { max-width: 640px; margin-bottom: 36px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
