/* Meliman — dark navy site canvas (#0A1931) */

:root {
  --canvas: #0A1931;
  --brand-navy: #0A1931;
  --brand-navy-deep: #061224;
  --brand-navy-light: #132847;
  --surface: #0D1F3C;
  --surface-2: #132847;
  --dark-2: #0A1931;
  --text-charcoal: #E8ECF2;
  --text-muted: #A8B4C8;
  --dark: #E8ECF2;
  --dark-3: #C5CEDB;
  --gray: #A8B4C8;
  --light: #1A3050;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-text: #212121;
  --card-text-muted: #5C6470;
  --gradient-dark: linear-gradient(135deg, #0A1931 0%, #061224 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.42);
}

html,
body {
  background: var(--canvas);
  color: var(--text-charcoal);
}

/* Top bar — cream utility band (always light) */
.top-bar {
  background: #f4f5f5 !important;
  border-bottom: 1px solid #e3e7ee !important;
}

.top-bar-brand strong {
  color: var(--brand-navy) !important;
}

.top-bar-brand .top-bar-tagline {
  color: #424242 !important;
}

.top-bar-contact a {
  color: #424242 !important;
}

.top-bar-contact a[href^="tel:"] {
  color: var(--action-red) !important;
}

.top-bar-social-link {
  background: #ffffff !important;
  border-color: #e3e7ee !important;
  color: var(--brand-navy) !important;
}

.site-header-wrap .header {
  background: rgba(10, 25, 49, 0.96);
  border-bottom-color: rgba(255, 213, 79, 0.14);
}

/* Logo sizing */
.logo-img.site-logo,
.preloader-logo-img.site-logo,
.footer-logo.site-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: none !important;
}

.preloader-logo-img.site-logo {
  height: 96px;
}

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

.logo-hazard-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  filter: none !important;
  transition: transform 0.35s ease;
}

.logo:hover .logo-hazard-mark {
  transform: rotate(-4deg) scale(1.05);
}

/* Sections & cards */
.section,
.about,
.distinct,
.photo-gallery,
.safety-page {
  background: var(--canvas);
}

.section:nth-child(even),
.about {
  background: linear-gradient(180deg, var(--canvas) 0%, var(--surface) 100%);
}

/* Light section bands (original white areas) */
.home-products,
.showcase,
.training-event,
.services,
.products,
.transport,
.cut-quick-portal,
.gallery-cut,
.branches,
.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 55%, #ffffff 100%) !important;
}

.services.section-bg::before,
.products.section-bg::before,
.contact.section-bg::before {
  opacity: 0 !important;
}

.home-products .section-title,
.home-products .section-tag,
.home-products .section-desc,
.showcase .section-title,
.showcase .section-tag,
.showcase .section-desc,
.training-event .section-title,
.training-event .section-tag,
.training-event .section-desc,
.training-event .news-subsection-header h3,
.training-event .news-subsection-header p,
.services .section-title,
.services .section-tag,
.services .section-desc,
.products .section-title,
.products .section-tag,
.products .section-desc,
.transport .section-title,
.transport .section-tag,
.transport .lead,
.transport .transport-content p,
.cut-quick-portal .section-title,
.cut-quick-portal .section-tag,
.cut-quick-portal .section-desc,
.gallery-cut .section-title,
.gallery-cut .section-tag,
.gallery-cut .section-desc,
.branches .section-title,
.branches .section-tag,
.branches .section-desc,
.contact .section-title,
.contact .section-tag,
.contact .section-desc {
  color: var(--card-text);
}

.home-products .section-desc,
.showcase .section-desc,
.training-event .section-desc,
.training-event .news-subsection-header p,
.services .section-desc,
.products .section-desc,
.transport .transport-content p,
.transport .lead,
.gallery-cut .section-desc,
.branches .section-desc,
.contact .section-desc {
  color: var(--card-text-muted);
}

.transport .section-title {
  color: var(--card-text) !important;
}

.transport .section-tag {
  color: var(--primary-dark) !important;
}

.transport .transport-hook em,
.transport .transport-content p strong {
  color: #7a5c00;
}

.transport .transport-badges span {
  background: #ffffff;
  color: var(--card-text);
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: 0 4px 14px rgba(10, 25, 49, 0.06);
}

.transport .transport-badges svg {
  color: #a67c00;
}

.cut-quick-portal .section-desc {
  color: var(--card-text-muted);
}

.cut-quick-portal .section-tag {
  color: #7a5c00 !important;
}

.cut-quick-portal .section-title {
  color: var(--brand-navy) !important;
}

.cut-quick-portal .cut-portal-card strong {
  color: var(--brand-navy);
}

.cut-quick-portal .cut-portal-card span {
  color: var(--card-text-muted);
}

.training-event .section-tag {
  color: var(--primary-dark) !important;
}

.services .section-tag,
.products .section-tag,
.gallery-cut .section-tag,
.branches .section-tag,
.contact .section-tag {
  color: var(--primary-dark) !important;
}

.branches-locations-label {
  color: var(--card-text-muted) !important;
}

.branches-map-section {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.branches-map-header {
  background: #f8f9fb !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

.branches-map-header h3 {
  color: var(--card-text) !important;
}

.branches-map-frame,
.branches-map-hint {
  background: #f3f5f8 !important;
}

.branches-map-hint {
  color: var(--card-text-muted) !important;
}

.section-title,
.section-tag,
h1, h2, h3, h4 {
  color: var(--white);
}

.section-desc,
.section-header p,
p,
.lead {
  color: var(--text-muted);
}

.product-card,
.home-product-card,
.news-feature,
.branch-card,
.distinct-item,
.formal-card,
.profile-card,
.gallery-cut-card,
.service-card {
  background: var(--card-bg);
  border-color: rgba(0, 0, 0, 0.07);
  color: var(--card-text);
}

.product-card h3,
.product-card p,
.home-product-card-body h3,
.home-product-card-body p,
.news-feature-body h3,
.news-feature-body p,
.branch-card h3,
.distinct-item h3,
.distinct-item p,
.gallery-cut-card-body h3,
.gallery-cut-card-body p {
  color: var(--card-text);
}

.product-card p,
.home-product-card-body p,
.gallery-cut-card-body p {
  color: var(--card-text-muted);
}

.product-image,
.home-product-card-image {
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f3f5f8 52%, #e8ecf1 100%) !important;
}

/* White panels on dark sections */
.hero-stats {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top-color: rgba(0, 0, 0, 0.04) !important;
}

.stat {
  border-right-color: rgba(0, 0, 0, 0.05);
}

.stat strong {
  color: var(--brand-navy) !important;
}

.stat span {
  color: var(--card-text-muted);
}

.contact-form,
.contact-info {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: var(--card-text);
}

.contact-info p,
.contact-item span {
  color: var(--card-text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact .form-group input,
.contact .form-group select,
.contact .form-group textarea {
  background: #ffffff !important;
  color: var(--card-text) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa3af;
}

.contact-form label,
.form-group label,
.checkout-section h4 {
  color: var(--card-text);
}

/* Contact info panel — navy + soft gold (not flat yellow on white) */
.contact .contact-info p {
  color: var(--card-text-muted);
  line-height: 1.65;
}

.contact .contact-info p strong {
  color: var(--brand-navy);
  font-weight: 700;
}

.contact .contact-item {
  border-bottom-color: rgba(10, 25, 49, 0.07);
  padding: 0.85rem 0;
  transition: background 0.25s ease;
}

.contact .contact-item:hover {
  background: rgba(10, 25, 49, 0.02);
}

.contact .contact-item strong {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.contact .contact-item a {
  color: var(--brand-navy);
  font-weight: 600;
}

.contact .contact-item a:hover {
  color: #8a6914;
}

.contact .contact-item span {
  color: var(--card-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact .contact-item-icon {
  background: linear-gradient(145deg, rgba(10, 25, 49, 0.08), rgba(10, 25, 49, 0.03));
  border: 1px solid rgba(10, 25, 49, 0.1);
  color: #a67c00;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact .contact-item:hover .contact-item-icon {
  background: linear-gradient(145deg, rgba(255, 213, 79, 0.2), rgba(255, 213, 79, 0.08));
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--brand-navy);
  transform: scale(1.04);
}

.contact .contact-item-highlight {
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.14) 0%, rgba(255, 213, 79, 0.04) 72%, transparent 100%);
  border-left: 3px solid var(--highlight-yellow);
  border-bottom: none !important;
  margin: 0;
  padding: 0.85rem 0.75rem !important;
  border-radius: 0 12px 12px 0;
}

.contact .contact-item-highlight .contact-item-icon {
  background: linear-gradient(145deg, rgba(10, 25, 49, 0.92), rgba(6, 18, 36, 0.88));
  border-color: rgba(255, 213, 79, 0.35);
  color: var(--highlight-yellow);
}

.contact .contact-item-highlight a {
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 1.02rem;
}

.contact .section-tag {
  color: #8a6914 !important;
}

.contact .section-tag::before {
  background: linear-gradient(90deg, #c9a227, var(--highlight-yellow));
}

.hero-float-card-inner {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fb 100%) !important;
}

.hero-float-card-foot {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
}

.hero-float-card-foot strong {
  color: var(--card-text) !important;
}

.hero-float-card-image {
  background: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%) !important;
}

.modal {
  background: var(--card-bg);
}

.modal-header {
  background: var(--card-bg);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.fulfillment-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: var(--card-bg);
  color: var(--card-text);
}

.fulfillment-option input:checked + .fulfillment-card {
  background: rgba(255, 213, 79, 0.08);
}

.cart-panel,
input,
textarea,
select {
  background: var(--surface);
  color: var(--text-charcoal);
  border-color: rgba(255, 255, 255, 0.12);
}

.cart-panel h3,
.cart-panel h4 {
  color: var(--white);
}

.page-banner {
  background: var(--gradient-dark);
}

.preloader {
  background: radial-gradient(ellipse at center, #0d1f3c 0%, #061224 70%);
}

/* Trust strip on home */
.trust-bar--hero {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 18, 36, 0.55) 35%, rgba(6, 18, 36, 0.88) 100%);
}

/* Gallery & News — readable text on white bands (override dark-theme vars) */
.gallery-cut .section-header .section-title,
.gallery-cut-card-body h3,
.gallery-cut-album-heading .section-title,
#galleryAlbumTitle {
  color: #0a1931 !important;
}

.gallery-cut .section-header .section-desc,
.gallery-cut-card-body p,
.gallery-cut-album-heading .section-desc,
#galleryAlbumDesc {
  color: #5c6470 !important;
}

.gallery-cut-card-badge,
.gallery-cut-back,
.gallery-cut-album-count {
  color: #0a1931 !important;
}

.gallery-cut-card-cta {
  color: #7a5c00 !important;
}

.training-event .section-title,
.news-feature-body h3 {
  color: #0a1931 !important;
}

.training-event .section-desc,
.news-feature-body p,
.news-feature-body li {
  color: #5c6470 !important;
}

.news-feature-body strong,
.news-feature-body b {
  color: #212121 !important;
}

.news-meta {
  color: #7a5c00 !important;
}

.news-tags span {
  background: rgba(10, 25, 49, 0.06) !important;
  border-color: rgba(10, 25, 49, 0.1) !important;
  color: #4a5568 !important;
}

.news-badge {
  color: #0a1931 !important;
}

.news-badge-archive {
  background: #f3f5f8 !important;
  color: #4a5568 !important;
}

/* ——— Compact cream top bar on scroll ——— */
.site-header-wrap .top-bar {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease, border-width 0.22s ease;
}

.site-header-wrap.is-compact .top-bar {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
}

.site-header-wrap.is-compact .brand-stripe {
  opacity: 0.85;
}

html.header-compact {
  --header-stack-height: 72px;
}

@media (max-width: 900px) {
  html.header-compact {
    --header-stack-height: 64px;
  }
}

/* Service cards: navy/gold fallback if photo missing */
.service-card-bg {
  background-color: #0A1931;
  background-image:
    linear-gradient(145deg, rgba(255, 213, 79, 0.18), transparent 55%),
    var(--card-bg);
}

/* Faster paint: reduce layout thrash */
img {
  max-width: 100%;
  height: auto;
}

.hero,
.hero-swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero,
.hero-swiper {
  min-height: min(88vh, 760px);
}

#featuredProductsGrid,
.products-grid,
.branches-grid,
.services-grid {
  min-height: 2rem;
}

/* Prevent AOS flash on phones/tablets */
@media (max-width: 900px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero {
    padding-top: var(--header-stack-height) !important;
    min-height: auto !important;
    height: auto !important;
    overflow: hidden;
  }

  .hero,
  .hero-swiper {
    min-height: calc(100svh - var(--header-stack-height)) !important;
    max-height: none;
  }

  .hero-product-collage,
  .hero-nav,
  .hero-counter {
    display: none !important;
  }

  .hero-slide,
  .hero-slide--showcase,
  .hero-slide--has-cards {
    padding-right: 0 !important;
    align-items: flex-end !important;
  }

  .hero .container.hero-content,
  .hero-slide--has-cards .container.hero-content,
  .hero-slide--showcase .container.hero-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem 1rem 5.5rem !important;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: clamp(1.45rem, 7vw, 2.2rem) !important;
    line-height: 1.12 !important;
    word-break: break-word;
  }

  .hero-content p {
    font-size: 0.9rem !important;
    max-width: 36ch;
  }

  .hero-btns {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-btns .btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .hero-updates-row {
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: auto !important;
    max-width: none !important;
  }

  .cut-quick-portal .cut-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .services-grid,
  .products-grid,
  .home-products-grid,
  .branches-grid {
    grid-template-columns: 1fr !important;
  }

  .top-bar-brand .top-bar-tagline,
  .top-bar-label,
  .top-bar-email span {
    display: none !important;
  }

  .top-bar-inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0 !important;
  }

  .top-bar-brand strong {
    font-size: 0.85rem !important;
  }

  .page-banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cut-quick-portal .cut-portal-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-content h1 {
    font-size: clamp(1.35rem, 8vw, 1.85rem) !important;
  }

  .hero .container.hero-content {
    padding: 0.85rem 0.85rem 5rem !important;
  }

  .btn-order-now {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .hero-product-collage {
    width: min(340px, 34vw) !important;
    right: 1rem !important;
  }

  .hero .container.hero-content {
    max-width: calc(100% - min(380px, 38vw) - 2rem) !important;
  }
}

