/* ==========================================================================
   Nimex Group, Inc. — light theme
   Palette and fonts are all set in the :root block directly below.
   ========================================================================== */

:root {
  /* Core */
  --paper:  #FFFFFF;
  --mist:   #F5F8FB;   /* pale section background */
  --ink:    #17212E;
  --muted:  #64748B;
  --rule:   #E2E8F0;

  /* Brand */
  --accent:      #F05400;  /* orange taken from the logo */
  --accent-dark: #CC4400;
  --accent-pale: #FFF1E8;

  /* Illustration palette — also used for section tints */
  --blue:   #2E7DF6;
  --teal:   #12B5A5;
  --violet: #7B5CF0;
  --pink:   #F7567C;
  --green:  #23C27C;
  --yellow: #FFC24B;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(23, 33, 46, 0.07);
  --shadow-lg: 0 18px 48px rgba(23, 33, 46, 0.12);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.58rem); }

p { margin: 0 0 1.2em; max-width: 66ch; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 12px 20px; font-weight: 600; z-index: 300;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 88px 0; }
.section--tight { padding: 58px 0; }
.section--mist { background: var(--mist); }

.rule { width: 56px; height: 5px; background: var(--accent); border: 0; border-radius: 3px; margin: 0 0 22px; }

.lede { font-size: 1.17rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.split > :last-child > :last-child { margin-bottom: 0; }
.split--center { align-items: center; }

.center-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
/* Slimmer heading for the compact brand strip under the hero */
.center-head--slim { margin-bottom: 30px; }
.center-head--slim h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.3em; }
.center-head--slim .lede { font-size: 1.02rem; margin-bottom: 0; }
.center-head .rule { margin-left: auto; margin-right: auto; }
.center-head p { margin-left: auto; margin-right: auto; }

@media (max-width: 880px) {
  .section { padding: 58px 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
}

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

.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; gap: 16px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }

.header-right { display: flex; align-items: center; gap: 10px; }

.header-cta {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; padding: 11px 24px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(240, 84, 0, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--rule);
  color: var(--ink); font: inherit; font-size: 0.95rem;
  padding: 9px 15px; cursor: pointer; border-radius: 999px;
}

.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: var(--ink); text-decoration: none;
  padding: 9px 15px; font-size: 0.95rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--mist); }
.site-nav a.is-current { background: var(--accent-pale); color: var(--accent-dark); font-weight: 600; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .brand img { height: 32px; }
  .header-cta { font-size: 1rem; padding: 10px 18px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 14px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 14px 16px; border-radius: 12px; }
}

@media (max-width: 620px) { .header-cta { display: none; } }

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

.hero {
  position: relative;
  background:
    radial-gradient(760px 460px at 82% 6%, rgba(46,125,246,0.13), transparent 62%),
    radial-gradient(660px 420px at 6% 96%, rgba(240,84,0,0.11), transparent 60%),
    linear-gradient(180deg, #FBFDFF 0%, #F2F6FA 100%);
  overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero--home > .wrap { padding-top: 76px; padding-bottom: 80px; }
.hero--page > .wrap { padding-top: 64px; padding-bottom: 60px; }

.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.hero__kicker {
  display: inline-block;
  background: var(--accent-pale); color: var(--accent-dark);
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.1em;
  padding: 7px 16px; border-radius: 999px; margin: 0 0 20px;
}

.hero h1 { margin-bottom: 0.18em; }
.hero__tagline { font-size: clamp(1.2rem, 2.4vw, 1.65rem); color: var(--ink); max-width: 28ch; margin-bottom: 0.8em; }
.hero__intro { color: var(--muted); max-width: 52ch; }

.hero--page h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); margin-bottom: 0.22em; }
.hero--page p { color: var(--muted); margin-bottom: 0; max-width: 62ch; font-size: 1.14rem; }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__tagline { max-width: none; }
}

/* Floating illustration cluster that stands in for hero photography */
.cluster {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cluster__tile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 18px;
  text-align: center;
}
.cluster__tile p {
  margin: 6px 0 0; font-family: var(--display); font-weight: 600;
  font-size: 1.12rem; color: var(--ink); max-width: none;
}
.cluster__tile:nth-child(1) { transform: translateY(-16px); }
.cluster__tile:nth-child(4) { transform: translateY(16px); }
.cluster .illo { margin: 0 auto; }

@media (max-width: 940px) {
  .cluster__tile:nth-child(1),
  .cluster__tile:nth-child(4) { transform: none; }
}

/* --------------------------------------------------------------------------
   Illustrations
   -------------------------------------------------------------------------- */

.illo { width: 88px; height: 88px; display: block; margin-bottom: 18px; }
.illo--lg { width: 104px; height: 104px; }

/* --------------------------------------------------------------------------
   Phone link
   -------------------------------------------------------------------------- */

.tel-hero {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 600;
  margin-top: 6px;
}
.tel-hero small {
  font-family: var(--body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
}
.tel-hero:hover { color: var(--accent); }

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

.btn {
  display: inline-block;
  font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; padding: 13px 30px;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(240,84,0,0.24);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--accent-dark); border-color: var(--accent-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240,84,0,0.3);
}

.btn--outline {
  background: transparent; color: var(--ink); border-color: var(--rule); box-shadow: none;
}
.btn--outline:hover { background: var(--mist); color: var(--ink); border-color: var(--ink); box-shadow: none; }

.btn--white { background: #fff; border-color: #fff; color: var(--accent-dark); box-shadow: var(--shadow); }
.btn--white:hover { background: #fff; border-color: #fff; color: var(--accent-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, #F05400 0%, #FF7A29 100%);
  color: #fff; padding: 56px 0;
}
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band p {
  margin: 0; font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.12;
}

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

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 28px; }

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; color: var(--muted); }

.card--action { display: flex; flex-direction: column; }
.card--action p { flex-grow: 1; }
.card--action .btn { align-self: flex-start; margin-top: 20px; font-size: 1.05rem; padding: 11px 26px; }

/* Icon + text, no box */
.feature h3 { margin-bottom: 0.35em; }
.feature p { margin-bottom: 0; color: var(--muted); }

.plain-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 0 32px;
}
.plain-list li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}

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

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.stat {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 34px 24px; text-align: center; box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--display); font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 700; line-height: 0.95; color: var(--accent); margin: 0 0 6px;
}
.stat__label { margin: 0; font-size: 0.98rem; color: var(--muted); max-width: none; }

/* --------------------------------------------------------------------------
   Featured brands
   -------------------------------------------------------------------------- */

.brands {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 18px;
}
.brands li {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  min-height: 104px; padding: 20px 22px;
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.03em; color: #47566A; text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.brands li:hover { border-color: #C3CCD8; box-shadow: var(--shadow); }
.brands img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

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

.detail-list { margin: 0; }
.detail-list dt {
  font-family: var(--display); font-size: 1.02rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 26px;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 4px 0 0; font-size: 1.12rem; }
.detail-list a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.detail-list a:hover { color: var(--accent-dark); }

.form-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 12px 15px; border: 1px solid #CBD5E1; border-radius: 12px;
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: 3px solid rgba(240,84,0,0.25); outline-offset: 0;
}
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 18px 0 0; }

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

.site-footer { background: #101924; color: #9BAABB; padding: 64px 0 30px; font-size: 0.95rem; }
.site-footer a { color: #DCE4EC; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer h4 { font-size: 1.18rem; color: #fff; margin-bottom: 0.7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer p { margin: 0 0 0.8em; max-width: 42ch; }

.footer-tagline {
  color: var(--accent); font-family: var(--display);
  font-size: 1.08rem; font-weight: 600; margin-bottom: 0.6em;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-bottom {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.13); font-size: 0.88rem;
}
