/* ==========================================================================
   Himbex — Basic Live Website Stylesheet (www.himbex.com)
   Accessible, responsive, high-contrast corporate industrial styling
   ========================================================================== */

:root {
  --hbx-navy: #0b1e4b;
  --hbx-navy-dark: #071333;
  --hbx-primary: #0f172a;
  --hbx-accent: #0369a1;
  --hbx-accent-hover: #075985;
  --hbx-red: #c81e1e;
  --hbx-bg: #f8fafc;
  --hbx-surface: #ffffff;
  --hbx-muted: #f1f5f9;
  --hbx-text: #0f172a;
  --hbx-text-muted: #475569;
  --hbx-border: #e2e8f0;
  --hbx-ring: rgba(3, 105, 161, 0.35);
  --hbx-radius-lg: 20px;
  --hbx-radius-md: 14px;
  --hbx-radius-sm: 10px;
  --hbx-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --hbx-shadow-md: 0 12px 32px -8px rgba(11, 30, 75, 0.12), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  --hbx-shadow-lg: 0 24px 48px -12px rgba(11, 30, 75, 0.16);
  --hbx-transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--hbx-text);
  background-color: var(--hbx-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--hbx-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hbx-navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hbx-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-radius: 10px;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(11, 30, 75, 0.14));
}

.brand-tagline {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hbx-navy);
  border-left: 1px solid var(--hbx-border);
  padding-left: 0.75rem;
}

@media (min-width: 900px) {
  .brand-tagline {
    display: inline-block;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hbx-text-muted);
  transition: color var(--hbx-transition), background-color var(--hbx-transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--hbx-navy);
  background-color: var(--hbx-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--hbx-transition), background-color var(--hbx-transition), border-color var(--hbx-transition), box-shadow var(--hbx-transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--hbx-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 30, 75, 0.22);
}

.btn-primary:hover {
  background-color: var(--hbx-accent);
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.28);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--hbx-navy);
  border-color: var(--hbx-border);
  box-shadow: var(--hbx-shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--hbx-muted);
  border-color: #cbd5e1;
}

.btn-whatsapp {
  background-color: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.22);
}

.btn-whatsapp:hover {
  background-color: #166534;
}

.header-call-btn {
  display: none;
}

@media (min-width: 640px) {
  .header-call-btn {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--hbx-border);
  background: #ffffff;
  color: var(--hbx-navy);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--hbx-border);
  background: #ffffff;
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-drawer .nav-link {
  width: 100%;
  border-radius: 10px;
}

/* ==========================================================================
   HERO / HOME SECTION (with subtle indirect pipes & fittings backdrop)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 3.25rem 0 3.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(3, 105, 161, 0.08), transparent 48%),
    radial-gradient(circle at 12% 85%, rgba(11, 30, 75, 0.06), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--hbx-border);
}

/* Indirect subtle pipes & fittings watermark atmosphere */
.hero-indirect-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-indirect-backdrop img {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%) scale(1.06);
  width: min(760px, 75vw);
  height: auto;
  opacity: 0.075;
  filter: saturate(0.75) contrast(1.05);
  mask-image: radial-gradient(ellipse at 60% 50%, rgba(0, 0, 0, 1) 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, rgba(0, 0, 0, 1) 18%, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-section {
    padding: 4.5rem 0 4.75rem;
  }
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.25rem;
  }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--hbx-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hbx-red);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--hbx-navy-dark);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--hbx-text-muted);
  max-width: 56ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--hbx-border);
  border-radius: var(--hbx-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hbx-primary);
}

.pillar-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--hbx-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Visual Product Showcase Card */
.showcase-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hbx-border);
  border-radius: var(--hbx-radius-lg);
  box-shadow: var(--hbx-shadow-lg);
  overflow: hidden;
}

.showcase-stage {
  position: relative;
  padding: 1.75rem 1.5rem 1.25rem;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-pipes-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.03);
}

.showcase-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--hbx-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hbx-navy);
  box-shadow: var(--hbx-shadow-sm);
}

.showcase-footer {
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--hbx-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.showcase-footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hbx-navy);
  margin: 0;
}

.showcase-footer-sub {
  font-size: 0.8125rem;
  color: var(--hbx-text-muted);
  margin: 0.15rem 0 0;
}

/* ==========================================================================
   INDIRECT PIPES & SOLUTIONS OVERVIEW STRIP
   ========================================================================== */

.solutions-section {
  padding: 3.25rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--hbx-border);
}

.section-header {
  max-width: 660px;
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hbx-accent);
  margin-bottom: 0.45rem;
}

.section-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hbx-navy-dark);
}

.section-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--hbx-text-muted);
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .solutions-grid {
    grid-template-columns: 1fr 1fr 1.15fr;
  }
}

.solution-card {
  padding: 1.5rem;
  border-radius: var(--hbx-radius-md);
  border: 1px solid var(--hbx-border);
  background: var(--hbx-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.solution-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hbx-navy);
}

.solution-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--hbx-text-muted);
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--hbx-border);
  color: var(--hbx-primary);
}

/* Indirect Soft-Blended Banner Accent Card */
.indirect-visual-card {
  position: relative;
  border-radius: var(--hbx-radius-md);
  border: 1px solid var(--hbx-border);
  overflow: hidden;
  min-height: 210px;
  background: linear-gradient(135deg, #0b1e4b 0%, #0f2d6b 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
}

.indirect-visual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.24;
  filter: saturate(0.85) contrast(1.08);
  transition: transform 400ms ease, opacity 300ms ease;
}

.indirect-visual-card:hover img {
  opacity: 0.34;
  transform: scale(1.03);
}

.indirect-visual-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(11, 30, 75, 0.1) 0%, rgba(7, 19, 51, 0.92) 70%);
}

.indirect-visual-overlay h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.indirect-visual-overlay p {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  padding: 3.75rem 0;
  background: var(--hbx-bg);
  border-bottom: 1px solid var(--hbx-border);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.card-panel {
  background: #ffffff;
  border: 1px solid var(--hbx-border);
  border-radius: var(--hbx-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--hbx-shadow-md);
}

.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--hbx-radius-md);
  border: 1px solid var(--hbx-border);
  background: var(--hbx-bg);
}

.contact-icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--hbx-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hbx-text-muted);
}

.contact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hbx-navy);
  margin: 0.1rem 0 0.25rem;
}

.contact-sub {
  font-size: 0.875rem;
  color: var(--hbx-text-muted);
  margin: 0;
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* Inquiry Form */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hbx-primary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--hbx-radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--hbx-text);
  font-size: 0.9375rem;
  transition: border-color var(--hbx-transition), box-shadow var(--hbx-transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--hbx-accent);
  box-shadow: 0 0 0 3px var(--hbx-ring);
}

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

/* ==========================================================================
   LOCATION SECTION
   ========================================================================== */

.location-section {
  padding: 3.75rem 0;
  background: #ffffff;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--hbx-radius-lg);
  border: 1px solid var(--hbx-border);
  overflow: hidden;
  box-shadow: var(--hbx-shadow-md);
  background: #ffffff;
}

@media (min-width: 860px) {
  .location-card {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.location-map-visual {
  position: relative;
  min-height: 290px;
  padding: 2rem;
  background:
    linear-gradient(rgba(3, 105, 161, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 105, 161, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #e0f2fe 0%, #f1f5f9 75%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.map-pin-badge {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hbx-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(11, 30, 75, 0.28);
}

.map-pin-badge::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(3, 105, 161, 0.35);
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.location-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.location-details h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hbx-navy);
}

.location-details p {
  margin: 0;
  color: var(--hbx-text-muted);
}

.location-url-box {
  padding: 0.75rem 1rem;
  border-radius: var(--hbx-radius-sm);
  background: var(--hbx-muted);
  border: 1px solid var(--hbx-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--hbx-navy);
  word-break: break-all;
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */

.site-footer {
  background: var(--hbx-navy-dark);
  color: #e2e8f0;
  padding: 2.5rem 0 1.75rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #cbd5e1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  background: var(--hbx-navy-dark);
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--hbx-shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
