/* ============================================================
   DOMINAHL TECHNOLOGY — Apple-inspired design system
   Accent from logo: crimson #B3352E → maroon #7A1E24
   Type: SF Pro system stack. Large, tight, confident.
   ============================================================ */

:root{
  --white: #ffffff;
  --off-white: #f5f5f7;
  --black: #000000;
  --near-black: #1d1d1f;
  --grey: #6e6e73;
  --grey-light: #86868b;
  --hairline: #d2d2d7;
  --crimson: #b3352e;
  --crimson-deep: #7a1e24;
  --crimson-soft: #d0453c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-tile: 28px;
  --nav-h: 48px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font);
  background: var(--white);
  color: var(--near-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }

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

/* ---------- Type scale ---------- */
.headline-xl{
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.headline-lg{
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.headline-md{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.headline-sm{
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.subhead{
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.001em;
  color: var(--grey);
}
.on-dark .subhead, .subhead.on-dark{ color: var(--grey-light); }
.copy{
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey);
}

.gradient-text{
  background: linear-gradient(100deg, var(--crimson-soft), var(--crimson) 45%, var(--crimson-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Links ---------- */
.link{
  color: var(--crimson);
  font-size: 17px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link:hover{ text-decoration: underline; }
.link .chev{ font-size: 15px; transition: transform .25s ease; }
.link:hover .chev{ transform: translateX(2px); }
.link-row{ display:flex; gap:32px; justify-content:center; flex-wrap:wrap; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  transition: background .25s, transform .25s, opacity .25s;
}
.btn:hover{ transform: scale(1.02); }
.btn-fill{
  background: var(--crimson);
  color: var(--white);
}
.btn-fill:hover{ background: var(--crimson-soft); }
.btn-ghost{
  border: 1px solid var(--crimson);
  color: var(--crimson);
}
.btn-ghost:hover{ background: var(--crimson); color: var(--white); }
.btn-ghost.on-dark{ border-color: rgba(255,255,255,0.6); color:#fff; }
.btn-ghost.on-dark:hover{ background:#fff; color: var(--near-black); }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky; top:0; z-index:1000;
  height: var(--nav-h);
  background: rgba(251,251,253,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner{
  max-width: 1024px; margin:0 auto; height:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 22px;
}
.nav-brand img{ height: 30px; width:auto; }
.nav-menu{ display:flex; gap:36px; }
.nav-menu a{
  font-size: 13px;
  color: rgba(29,29,31,0.8);
  letter-spacing: -0.01em;
  transition: color .2s;
}
.nav-menu a:hover, .nav-menu a.active{ color: var(--crimson); }
.nav-actions{ display:flex; align-items:center; gap:20px; }
.nav-actions .nav-cta-link{
  font-size: 13px;
  background: var(--crimson);
  color:#fff;
  padding: 6px 14px;
  border-radius: 980px;
  transition: background .25s;
}
.nav-actions .nav-cta-link:hover{ background: var(--crimson-soft); }
.nav-burger{ display:none; }

@media (max-width: 760px){
  .nav-menu{
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; gap:0;
    background: rgba(251,251,253,0.97);
    backdrop-filter: blur(20px);
    padding: 32px 40px;
    transform: translateY(-110%);
    opacity:0;
    transition: transform .4s cubic-bezier(.25,.8,.3,1), opacity .3s;
    pointer-events:none;
  }
  .nav-menu.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .nav-menu a{ font-size: 24px; font-weight:600; padding: 14px 0; border-bottom:1px solid var(--hairline); color: var(--near-black); }
  .nav-burger{
    display:flex; flex-direction:column; gap:5px; padding:8px;
  }
  .nav-burger span{ width:18px; height:1.5px; background: var(--near-black); transition:.3s; }
  .nav-burger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2){ opacity:0; }
  .nav-burger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Sections / tiles ---------- */
.stage{
  text-align:center;
  padding: 140px 22px 120px;
  max-width: 980px;
  margin: 0 auto;
}
.stage .eyebrow{
  font-size: 17px;
  font-weight: 600;
  color: var(--crimson);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.stage .subhead{ max-width: 640px; margin: 22px auto 0; }
.stage .actions{ margin-top: 36px; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }

.tile-grid{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 22px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tile-grid .tile-wide{ grid-column: 1 / -1; }
@media (max-width: 860px){ .tile-grid{ grid-template-columns:1fr; } }

.tile{
  border-radius: var(--radius-tile);
  overflow:hidden;
  padding: 72px 40px 64px;
  text-align:center;
  position:relative;
  background: var(--off-white);
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height: 480px;
}
.tile.dark{ background: var(--black); color:#f5f5f7; }
.tile .tile-eyebrow{
  font-size: 14px; font-weight:600; letter-spacing: .01em;
  color: var(--crimson); margin-bottom: 10px;
  text-transform: none;
}
.tile.dark .tile-eyebrow{ color: var(--crimson-soft); }
.tile h3{ margin-bottom: 10px; }
.tile .tile-sub{
  font-size: 17px; line-height:1.5; color: var(--grey);
  max-width: 42ch;
}
.tile.dark .tile-sub{ color: var(--grey-light); }
.tile .tile-links{ margin-top: 20px; display:flex; gap:28px; }
.tile .tile-art{
  margin-top: auto;
  padding-top: 44px;
  width:100%;
  display:flex;
  justify-content:center;
}

/* product glyph art */
.glyph{
  width: 180px; height:180px;
  border-radius: 44px;
  display:flex; align-items:center; justify-content:center;
  font-size: 72px; font-weight: 700; letter-spacing:-0.03em;
  color:#fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.25,.8,.3,1);
}
.tile:hover .glyph{ transform: translateY(-8px) scale(1.02); }
.glyph.g-freebyz{ background: linear-gradient(135deg, #d0453c, #7a1e24); }
.glyph.g-payhankey{ background: linear-gradient(135deg, #1d1d1f, #4a4a4f); border:1px solid rgba(255,255,255,.14); }
.glyph.g-eportal{ background: linear-gradient(135deg, #b3352e, #5c1420); }
.glyph.g-myhotjob{ background: linear-gradient(135deg, #e0653a, #b3352e); }
.glyph.g-famlic{ background: linear-gradient(135deg, #8b2530, #3d0f16); }
.glyph.g-mystorelink{ background: linear-gradient(135deg, #c15b44, #8b2530); }

/* ---------- Ribbon ---------- */
.ribbon{
  background: var(--off-white);
  border-top:1px solid rgba(0,0,0,.05);
  border-bottom:1px solid rgba(0,0,0,.05);
  overflow:hidden;
  padding: 18px 0;
}
.ribbon-track{
  display:flex; gap:72px; width:max-content;
  animation: ribbon 28s linear infinite;
  white-space:nowrap;
}
.ribbon-track span{
  font-size: 15px; font-weight:600; letter-spacing:-0.01em;
  color: var(--grey);
}
@keyframes ribbon{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---------- Stats band ---------- */
.stats-band{
  max-width: 980px; margin: 0 auto;
  padding: 110px 22px;
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: 40px; text-align:center;
}
@media (max-width:760px){ .stats-band{ grid-template-columns: repeat(2,1fr); } }
.stats-band .num{
  font-size: clamp(40px,5vw,64px);
  font-weight: 700; letter-spacing:-0.03em;
}
.stats-band .lbl{
  margin-top:8px; font-size:15px; color: var(--grey);
}

/* ---------- Dark full-bleed panel ---------- */
.panel-dark{
  background: var(--black);
  color:#f5f5f7;
  text-align:center;
  padding: 130px 22px;
}
.panel-dark .inner{ max-width: 800px; margin:0 auto; }
.panel-dark .subhead{ color: var(--grey-light); margin-top: 22px; }

/* ---------- Feature rows (about) ---------- */
.feature-rows{ max-width: 980px; margin: 0 auto; padding: 40px 22px 120px; }
.feature-row{
  display:grid; grid-template-columns: 220px 1fr; gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}
.feature-row:first-child{ border-top:none; }
@media (max-width:700px){ .feature-row{ grid-template-columns:1fr; gap:12px; } }
.feature-row h4{ font-size: 21px; font-weight:600; letter-spacing:-0.014em; }
.feature-row p{ font-size:17px; line-height:1.55; color: var(--grey); max-width:60ch; }

/* ---------- Timeline (Apple-flavored) ---------- */
.timeline{ max-width: 800px; margin:0 auto; padding: 0 22px 120px; }
.timeline-item{
  display:grid; grid-template-columns: 140px 1fr; gap: 36px;
  padding: 38px 0; border-top: 1px solid var(--hairline);
}
.timeline-item:first-child{ border-top:none; }
@media (max-width:600px){ .timeline-item{ grid-template-columns:1fr; gap:8px; } }
.timeline-item .year{ font-size: 21px; font-weight:700; letter-spacing:-0.02em; color: var(--crimson); }
.timeline-item h4{ font-size: 21px; font-weight:600; letter-spacing:-0.014em; margin-bottom:8px; }
.timeline-item p{ font-size: 17px; line-height:1.55; color: var(--grey); }

/* ---------- Contact form ---------- */
.contact-wrap{
  max-width: 680px; margin: 0 auto; padding: 0 22px 130px;
}
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; }
.field.full{ grid-column:1/-1; }
.field input, .field select, .field textarea{
  font-family: var(--font);
  font-size: 17px;
  padding: 16px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--white);
  color: var(--near-black);
  outline:none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--crimson);
  box-shadow: 0 0 0 4px rgba(179,53,46,0.12);
}
.field textarea{ min-height: 140px; resize:vertical; }
.form-note{ font-size:13px; color:var(--grey-light); margin-top:16px; text-align:center; }
.contact-cards{
  max-width: 980px; margin: 0 auto; padding: 0 22px 120px;
  display:grid; grid-template-columns: repeat(3,1fr); gap:22px;
}
@media (max-width:760px){ .contact-cards{ grid-template-columns:1fr; } }
.contact-card{
  background: var(--off-white); border-radius: 20px;
  padding: 36px 28px; text-align:center;
}
.contact-card h4{ font-size:19px; font-weight:600; margin-bottom:8px; letter-spacing:-0.014em; }
.contact-card p{ font-size:15px; color:var(--grey); line-height:1.55; }
.contact-card a{ color: var(--crimson); }
.contact-card a:hover{ text-decoration:underline; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--off-white);
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 40px 0 46px;
  font-size: 12px;
  color: var(--grey);
}
.footer-inner{ max-width: 1024px; margin:0 auto; padding: 0 22px; }
.footer-note{
  padding-bottom: 20px; border-bottom: 1px solid var(--hairline);
  line-height: 1.5; max-width: 72ch;
}
.footer-cols{
  display:grid; grid-template-columns: repeat(4,1fr); gap:32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width:700px){ .footer-cols{ grid-template-columns: 1fr 1fr; } }
.footer-cols h5{ font-size:12px; font-weight:600; color: var(--near-black); margin-bottom:12px; }
.footer-cols li{ margin-bottom:9px; }
.footer-cols a:hover{ text-decoration:underline; color: var(--near-black); }
.footer-legal{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 20px; flex-wrap:wrap; gap:12px;
}
.footer-legal .legal-links{ display:flex; gap:22px; }
.footer-legal a:hover{ text-decoration:underline; }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.25,.8,.3,1), transform .9s cubic-bezier(.25,.8,.3,1); }
.reveal.in{ opacity:1; transform:none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--crimson); outline-offset: 3px;
}
