/* ==========================================================================
   Hasanji Aldowaliya Co — Site-wide styles
   Palette: light galvanized steel / concrete, charcoal text, hazard-tape yellow
   Display type: Oswald (stamped-metal signage)  |  Body type: IBM Plex Sans
   ========================================================================== */

:root {
  --bg: #f0efeb;
  --panel: #ffffff;
  --panel-border: #dcdcd7;
  --steel: #6b7580;
  --accent: #f4c60d;
  --accent-ink: #1a1a1a;
  --accent-dark: #b89600;
  --text: #1e2328;
  --text-dim: #5b646c;
  --nav-bg: #1e2328;
  --nav-text: #d9dbdc;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-tagline: "Big Shoulders Text", "Oswald", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- hazard / caution tape band ------------------------------------------- */
.hazard-band {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 16px,
    var(--accent-ink) 16px,
    var(--accent-ink) 32px
  );
}

/* Size modifiers - stack with the base class, e.g.
   class="hazard-band hazard-band--lg"                                   */
.hazard-band--sm {
  height: 6px;
  background-size: 200% 200%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 10px,
    var(--accent-ink) 10px,
    var(--accent-ink) 20px
  );
}

.hazard-band--lg {
  height: 16px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 22px,
    var(--accent-ink) 22px,
    var(--accent-ink) 44px
  );
}

/* ---- shared brand mark ------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark svg circle:first-of-type {
    animation: spin 14s linear infinite;
    transform-origin: 32px 32px;
  }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark svg circle:first-of-type { animation: none; }
}

/* Company logo is portrait, 312 x 395px native. Height-constrained so it
   scales down while keeping its own aspect ratio (width: auto). */
.site-logo {
  height: 52px;
  width: auto;
  display: block;
}

.site-logo--footer {
  height: 44px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: 1180px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-divider {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--accent-dark);
}

.brand-tagline {
  font-family: var(--font-tagline);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-quick-contact {
  gap: 28px;
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
}

.quick-contact-item i {
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.quick-contact-item:hover {
  color: var(--accent-dark);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  background: var(--nav-bg);
}

.site-nav .container {
  max-width: 1180px;
}

.site-nav .navbar-nav {
  gap: 4px;
}

.site-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--nav-text) !important;
  padding: 16px 18px !important;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav .nav-link:hover {
  color: #ffffff !important;
  border-bottom-color: var(--accent-dark);
}

.site-nav .nav-link.active {
  color: #ffffff !important;
  border-bottom-color: var(--accent);
}

.site-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
  margin: 10px 0;
}

.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28244, 198, 13, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   PAGE CONTENT WRAPPER
   ========================================================================== */
.site-main {
  min-height: 40vh;
}

.page-stub {
  text-align: center;
  padding: 90px 20px;
  color: var(--text-dim);
}

.page-stub i {
  font-size: 2.4rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
  display: inline-block;
}

.page-stub h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin: 0 0 10px;
}

.page-stub p {
  max-width: 44ch;
  margin: 0 auto;
}

.container {
  max-width: 1180px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--panel-border);
}

.footer-top {
  padding: 56px 0 44px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-blurb {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 18px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-value--block {
  display: block;
  line-height: 1.5;
}

a.contact-value:hover {
  color: var(--accent-dark) !important;
  border-bottom-color: var(--accent-dark);
}

.footer-bottom {
  background: var(--bg);
  border-top: 1px solid var(--panel-border);
}

.footer-bottom-inner {
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {
  .site-nav .navbar-nav {
    padding: 10px 0 16px;
  }
  .site-nav .nav-link {
    padding: 12px 4px !important;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: 12px !important;
  }
  .site-nav .nav-link:hover,
  .site-nav .nav-link.active {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }
}

@media (max-width: 767.98px) {
  .footer-top { padding: 40px 0 32px; }
}

/* ==========================================================================
   HOME PAGE - shared section rhythm
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text);
  margin: 0 0 14px;
}

.section-heading.text-center {
  text-align: center;
}

.section-copy {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 24px;
}

.section-copy--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.btn-cta:hover {
  background: #ffd63d;
}

.btn-outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--text);
  color: var(--text) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline-cta:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff !important;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero-carousel-wrap {
  position: relative;
}

.hero-hazard-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

/* Belt-and-suspenders: only ever show the band on the slide that is
   currently active, regardless of how the carousel is hiding the rest. */
.carousel-item:not(.active) .hero-hazard-band {
  display: none;
}

.hero-carousel .carousel-item {
  position: relative;
  height: min(62vh, 620px);
  min-height: 360px;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 28, 0.78) 0%, rgba(20, 24, 28, 0.4) 55%, rgba(20, 24, 28, 0.15) 100%);
}

.hero-caption-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  max-width: 1180px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 24px;
}

.hero-caption {
  max-width: 560px;
}

.hero-caption h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 24px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--accent);
  width: 34px;
  height: 4px;
  border-radius: 2px;
  opacity: 0.5;
}

.hero-carousel .carousel-indicators .active {
  opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 56px;
}

/* ==========================================================================
   ABOUT SUMMARY (homepage) / ABOUT US PAGE - banner, stats strip, tags, CTA
   ========================================================================== */
.about-image {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
}

.page-banner {
  padding: 40px 0 44px;
  text-align: center;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
}

.breadcrumb-custom {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.breadcrumb-custom a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb-custom a:hover {
  color: var(--accent-dark);
}

.breadcrumb-custom i {
  font-size: 0.7rem;
  vertical-align: middle;
  margin: 0 2px;
}

.page-banner-logo {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}

.page-banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  margin: 0 0 10px;
}

.page-banner-copy {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 52ch;
  margin: 0 auto;
}

/* ---- highlights / stats strip ---- */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.stat-card {
  flex: 1 1 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
}

.stat-card i {
  font-size: 1.8rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--text);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---- product tag grid ---- */
.product-tag-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
}

/* ---- CTA banner ---- */
.cta-banner {
  padding: 60px 0;
  text-align: center;
  background: var(--nav-bg);
}

.cta-banner-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #ffffff;
  max-width: 46ch;
  margin: 0 auto 28px;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta-banner .btn-outline-cta {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

.cta-banner .btn-outline-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--text) !important;
}

/* ==========================================================================
   CONTACT US PAGE - info grid and map embed
   ========================================================================== */
.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-card {
  flex: 1 1 200px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
}

.contact-card i {
  font-size: 1.7rem;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.contact-card-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}

.contact-card-value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.contact-card-value a {
  color: var(--text);
  text-decoration: none;
}

.contact-card-value a:hover {
  color: var(--accent-dark);
}

.map-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.map-section-heading .section-heading {
  margin: 0;
}

.map-embed-wrap {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  line-height: 0;
}

/* ==========================================================================
   PRODUCT CATEGORIES
   ========================================================================== */
.category-grid { margin-top: 36px; }

.category-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  border: 1px solid var(--panel-border);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(20, 24, 28, 0.82) 0%, rgba(20, 24, 28, 0.05) 65%);
}

.category-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  border-bottom: 2px solid transparent;
}

.category-card:hover .category-name {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   INDUSTRIES WE SERVE
   ========================================================================== */
.industries-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.industries-row .industry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--panel);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}

.industries-row .industry-item i {
  color: var(--accent-dark);
  font-size: 1.25rem;
}

/* ==========================================================================
   BRANDS WE ENDORSE
   ========================================================================== */
.brands-carousel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.brands-carousel {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
}

.brand-nav-btn:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--panel);
}

.brand-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- responsive: home page sections -------------------------------------- */
@media (max-width: 767.98px) {
  .section { padding: 44px 0; }
  .hero-caption-container { align-items: flex-end; padding-bottom: 40px; }
  .brands-carousel-row { gap: 10px; }
  .brand-nav-btn { width: 36px; height: 36px; }
}
