/* ============================================
   EME MAJID HUSSAIN ENTERPRISES
   Shared Theme Tokens - Yellow / White
   ============================================ */

:root {
  /* Brand */
  --yellow:        #FFC107;
  --yellow-deep:   #F5A800;
  /* Text-safe brand brown. #C98A00 measured only 2.9:1 on white, below
     the 4.5:1 WCAG AA minimum for body text, and it is used for eyebrows,
     active nav, two-tone titles and card metadata. #9C6600 clears 4.87:1
     on white and 4.66:1 on the alternating band. */
  --yellow-dark:   #9C6600;
  /* The old value stays available for large display type and for accents
     on dark backgrounds, where the contrast requirement is lower. */
  --yellow-amber:  #C98A00;
  --yellow-soft:   #FFF4D1;
  --yellow-tint:   #FFFBF0;

  /* Neutrals */
  --white:         #FFFFFF;
  --off-white:     #FAFAFA;
  --grey-100:      #F2F2F2;
  --grey-200:      #E4E4E4;
  --grey-400:      #9A9A9A;
  --grey-600:      #5C5C5C;
  --charcoal:      #232323;
  --black:         #141414;

  /* Semantic */
  --bg:            var(--white);
  --bg-alt:        var(--off-white);
  --text:          var(--charcoal);
  --text-muted:    var(--grey-600);
  --border:        var(--grey-200);
  --accent:        var(--yellow);

  /* Type */
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(0,0,0,.06);
  --sh-md: 0 8px 24px rgba(0,0,0,.09);
  --sh-lg: 0 18px 44px rgba(0,0,0,.14);
  --sh-yellow: 0 8px 22px rgba(245,168,0,.32);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Layout metrics */
  --topbar-h:     40px;   /* desktop contact strip */
  --header-h:     86px;   /* desktop header */
  --m-header-h:   64px;   /* mobile header */
  --callbar-h:    62px;   /* mobile sticky call bar */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .3px;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---------- Shared utilities ---------- */
/* Accent text on light backgrounds uses the text-safe brown. The bright
   --yellow-deep is reserved for fills and for dark backgrounds. */
.yellow-text { color: var(--yellow-dark); }
.hl { color: var(--yellow-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 3px;
  transition: all .25s var(--ease);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: var(--sh-yellow);
}
.btn-primary:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--yellow); background: var(--yellow-tint); }
.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover { background: var(--yellow); }

/* Diagonal caution stripe — construction motif */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 18px,
    var(--charcoal) 18px 36px
  );
}

.section-title {
  font-size: clamp(28px, 3.1vw, 42px);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 0;
}
/* With the kicker label removed the heading needs its own accent, so the
   underline returns — short, and only under section titles. */
.section-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  background: var(--yellow);
  margin-top: 16px;
  border-radius: 2px;
}
.center { text-align: center; }
.center .section-title::after { margin-left: auto; margin-right: auto; }

.lead {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 0;
}
.center .lead { margin-left: auto; margin-right: auto; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Near-zero rather than `none`: transitionend still fires, so any JS
     waiting on it is not left hanging. */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
