/*
  CRUDEX CONTROLS — HOMEPAGE UI REFINEMENT
  Add this file AFTER assets/css/crudex-modern.css.
  Keeps the existing HTML, content, links and functionality intact.
*/

/* 1. Shared visual system */
:root {
  --crudex-orange: #f45b18;
  --crudex-orange-hover: #d94b0d;
  --crudex-ink: #142333;
  --crudex-navy: #10283d;
  --crudex-body: #586675;
  --crudex-muted: #f5f7f9;
  --crudex-line: #e4e9ee;
  --crudex-radius: 10px;
  --crudex-shadow: 0 8px 26px rgba(16, 40, 61, .07);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.crudex-home {
  color: var(--crudex-body);
  background: #fff;
  line-height: 1.65;
}

body.crudex-home h1,
body.crudex-home h2,
body.crudex-home h3,
body.crudex-home h4,
body.crudex-home h5,
body.crudex-home h6 {
  letter-spacing: -.025em;
}

/* 2. Header — quieter, cleaner and easier to scan */
#site-header {
  padding: 5px 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 2px 14px rgba(16, 40, 61, .07) !important;
  border-bottom: 1px solid rgba(16, 40, 61, .06);
}

#site-header .navbar {
  min-height: 72px;
}

#site-header .navbar-brand img {
  height: 46px !important;
  width: auto;
}

#site-header .navbar-nav {
  align-items: center;
  gap: 3px;
}

#site-header .navbar-nav .nav-link {
  padding: .55rem .8rem !important;
  border-radius: 5px !important;
  color: #263849 !important;
  font-size: .9rem;
  font-weight: 600;
  transition: color .18s ease, background-color .18s ease;
}

#site-header .navbar-nav .nav-link:hover,
#site-header .navbar-nav .nav-item.active .nav-link {
  color: var(--crudex-orange) !important;
  background: rgba(244, 91, 24, .07) !important;
}

.btn-nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: .72rem 1.1rem !important;
  border-radius: 5px !important;
  background: var(--crudex-orange) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.btn-nav-cta:hover {
  background: var(--crudex-orange-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 3. Hero — more breathing room and a clearer message */
.crudex-hero {
  min-height: 690px;
  padding: 125px 0 58px;
  align-items: center;
  background: #071523;
}

.crudex-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 17, 29, .91) 0%, rgba(5, 17, 29, .76) 47%, rgba(5, 17, 29, .25) 100%),
    linear-gradient(0deg, rgba(5, 17, 29, .65), transparent 42%),
    url("../images/solarFront1.jpg") center / cover no-repeat;
}

.crudex-hero-content {
  width: 100%;
  max-width: 1200px;
  padding-top: 28px;
}

.crudex-hero-copy {
  max-width: 690px;
}

.crudex-hero-kicker {
  margin-bottom: 1.1rem;
  padding: .35rem .75rem;
  border-radius: 4px;
  background: rgba(244, 91, 24, .13);
  border: 1px solid rgba(255, 132, 71, .42);
  color: #ff9a69;
  font-size: .76rem;
  letter-spacing: .09em;
  backdrop-filter: none;
}

.crudex-hero-copy h2 {
  max-width: 680px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.65rem, 5vw, 4.35rem);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.045em;
}

.crudex-hero-copy h2 strong {
  background: none;
  color: #ff8248;
  -webkit-text-fill-color: #ff8248;
}

.crudex-hero-copy p {
  max-width: 610px;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, .82);
  font-size: 1.04rem;
  line-height: 1.75;
}

.crudex-hero-actions {
  gap: .75rem;
}

.crudex-hero-actions a.btn-primary-hero,
.crudex-hero-actions a.btn-secondary-hero {
  min-height: 48px;
  padding: .78rem 1.25rem;
  border-radius: 5px;
  box-shadow: none;
  backdrop-filter: none;
  font-size: .93rem;
}

.crudex-hero-actions a.btn-primary-hero {
  background: var(--crudex-orange);
}

.crudex-hero-actions a.btn-primary-hero:hover {
  background: var(--crudex-orange-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

.crudex-hero-actions a.btn-secondary-hero {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .34);
}

.crudex-hero-actions a.btn-secondary-hero:hover {
  transform: translateY(-1px);
}

.crudex-hero-highlights {
  max-width: 930px;
  margin-top: 3rem;
  padding-top: 1.35rem;
  gap: 1.4rem;
}

.crudex-highlight {
  padding: .55rem .8rem;
  border: 0;
  border-left: 2px solid rgba(255, 130, 72, .8);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.crudex-highlight:hover {
  transform: none;
  background: transparent;
  border-color: #ff8248;
}

.crudex-highlight i {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: rgba(244, 91, 24, .16);
  font-size: 1rem;
}

/* 4. Section rhythm and headings */
body.crudex-home .about-section,
body.crudex-home .products-section,
body.crudex-home .quotation-section {
  padding-top: 76px !important;
  padding-bottom: 76px !important;
}

body.crudex-home .title-main,
body.crudex-home .products-intro {
  margin-bottom: 2.6rem !important;
}

body.crudex-home .title-main h3,
body.crudex-home .products-intro h3 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  line-height: 1.2;
  font-weight: 750;
}

body.crudex-home .products-intro > p:last-child {
  max-width: 670px;
  margin: 1rem auto 0;
  font-size: .98rem;
}

/* 5. Motto / why us / vision cards */
.about-section {
  background: #f6f8fa !important;
}

.about-card-modern {
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--crudex-line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.about-card-modern::before {
  display: none;
}

.about-card-modern:hover {
  transform: none;
  border-color: rgba(244, 91, 24, .45);
  box-shadow: var(--crudex-shadow);
}

.about-card-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  border-radius: 6px;
  background: #fff0e9;
  font-size: 1.2rem;
}

.about-card-modern:hover .about-card-icon-wrap {
  transform: none;
  background: #fff0e9;
  color: var(--crudex-orange);
}

.about-card-modern h5 {
  margin-bottom: .7rem;
  font-size: 1.08rem;
}

.about-card-modern p {
  font-size: .92rem;
  line-height: 1.7;
}

/* 6. Core domains — clean image cards */
.service-w3l-bg {
  background: #10283d !important;
}

.domain-card-modern {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease;
}

.domain-card-modern:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: none;
}

.domain-card-img-wrap {
  height: 220px;
  background: #dfe5e9;
}

.domain-card-modern:hover .domain-card-img-wrap img {
  transform: none;
}

.domain-card-body {
  padding: 1.45rem 1.45rem 1.6rem;
}

.domain-card-body h4 {
  font-size: 1.18rem;
}

.domain-card-body p {
  font-size: .91rem;
  line-height: 1.65;
}

/* 7. Product cards — align image area and reduce decoration */
.products-section {
  background: #fff !important;
}

.product-card-modern {
  border-radius: 8px;
  border-color: var(--crudex-line);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product-card-modern:hover {
  transform: translateY(-3px);
  border-color: #cbd5df;
  box-shadow: var(--crudex-shadow);
}

.product-card-img-wrap {
  height: 205px;
  padding: 1.2rem;
  background: #f5f7f8;
  border-bottom: 1px solid var(--crudex-line);
}

.product-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-card-modern:hover .product-card-img-wrap img {
  transform: none;
}

.product-card-content {
  padding: 1.35rem 1.35rem 1.45rem;
}

.product-card-content h4 {
  margin-bottom: .55rem;
  font-size: 1.18rem;
}

.product-card-content p {
  font-size: .9rem;
  line-height: 1.65;
}

.badge-fuel-diesel,
.badge-fuel-def {
  border-radius: 3px;
  letter-spacing: .035em;
}

/* 8. Quotation — keep the form as the main focus */
.quotation-section {
  background: #f6f8fa !important;
}

.quotation-card-visual {
  border-radius: 8px;
  padding: 2.2rem;
  background: #10283d;
  box-shadow: none;
}

.quotation-card-visual::after {
  display: none;
}

.quotation-card-visual h4 {
  font-size: 1.7rem;
}

.quotation-form-wrap {
  padding: 2rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.quotation-form-wrap .form-control {
  border-radius: 5px;
  box-shadow: none;
}

.btn-quotation-submit {
  border-radius: 5px;
  background: var(--crudex-orange);
  box-shadow: none;
}

.btn-quotation-submit:hover {
  transform: translateY(-1px);
  background: var(--crudex-orange-hover);
  box-shadow: none;
}

/* 9. Footer */
.w3l-footer-29-main {
  background: #0b1c2b !important;
  border-top: 0;
}

.footer-29-w3l h6.footer-title-29::after {
  width: 28px;
  height: 2px;
}

.main-social-footer-29 a {
  border-radius: 5px;
}

/* 10. Remove effects that make the site feel overly templated */
.btn-nav-cta::after,
.btn-primary-crudex::after,
.btn-form-submit::after {
  display: none !important;
  animation: none !important;
}

.kicker-badge,
.about-badge-kicker,
.auth-split-kicker,
.hero-highlights-modern {
  animation: none !important;
}

/* 11. Accessibility and responsive behavior */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 91, 24, .35);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  #site-header .navbar {
    min-height: 64px;
  }

  #site-header .navbar-collapse {
    margin-top: 8px;
    border: 1px solid var(--crudex-line);
    border-radius: 7px;
    box-shadow: 0 10px 25px rgba(16, 40, 61, .1);
  }

  #site-header .navbar-nav {
    align-items: stretch;
  }

  #site-header .navbar-nav .nav-link {
    padding: .65rem .8rem !important;
  }

  .crudex-hero {
    min-height: auto;
    padding: 125px 0 55px;
  }

  .crudex-hero-content {
    padding-top: 0;
  }

  .crudex-hero-copy h2 {
    font-size: clamp(2.35rem, 7vw, 3.5rem);
  }

  .crudex-hero-highlights {
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-top: 2.2rem;
  }

  .crudex-highlight {
    padding: .35rem .5rem;
  }
}

@media (max-width: 575px) {
  body.crudex-home .about-section,
  body.crudex-home .products-section,
  body.crudex-home .quotation-section {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .crudex-hero {
    padding-top: 112px;
  }

  .crudex-hero-kicker {
    font-size: .68rem;
    letter-spacing: .06em;
  }

  .crudex-hero-copy h2 {
    font-size: 2.35rem;
  }

  .crudex-hero-copy p {
    font-size: .96rem;
  }

  .crudex-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .crudex-hero-actions a {
    justify-content: center;
    width: 100%;
  }

  .domain-card-img-wrap {
    height: 190px;
  }

  .product-card-img-wrap {
    height: 190px;
  }

  .quotation-card-visual,
  .quotation-form-wrap {
    padding: 1.5rem;
  }
}

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


/* Product Card Actions Alignment Polish */
.product-card-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.4rem !important;
  margin-top: auto !important;
  padding-top: 0.85rem !important;
  min-height: 44px !important;
  border-top: 1px solid var(--crudex-surface-subtle) !important;
}

.product-card-actions a.link-view-product {
  color: var(--crudex-orange) !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  transition: gap 0.2s ease !important;
  line-height: 1 !important;
}

.product-card-actions a.link-view-product:hover {
  gap: 0.55rem !important;
  color: var(--crudex-orange-hover) !important;
}

.product-card-actions a.btn-download-pdf {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  color: #10283d !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

.product-card-actions a.btn-download-pdf i {
  color: #f45b18 !important;
}

.product-card-actions a.btn-download-pdf:hover {
  background: #f45b18 !important;
  color: #ffffff !important;
  border-color: #f45b18 !important;
}

.product-card-actions a.btn-download-pdf:hover i {
  color: #ffffff !important;
}

