/* ============================================================================
   MAS BUSINESS GROUP — BASE  (Premium edition)
   Modern reset + premium typography (editorial serif display + clean sans
   body) + reveal-on-scroll utilities.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv05";
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* ---- Typography -------------------------------------------------------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  color: var(--brand-deep);
  letter-spacing: -.018em;
  font-optical-sizing: auto;
}
h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }

p { max-width: 68ch; }
strong { font-weight: 700; color: var(--ink); }

/* Editorial accent — wrap a word in <em> inside a display heading */
h1 em, h2 em { font-style: italic; color: var(--brand); font-weight: 500; }

/* ---- Accessibility ----------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: min(100% - 36px, var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 36px, var(--container-wide)); margin-inline: auto; }

.section { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-soft); }
.section--dark { background: var(--grad-dark); color: #d8e6dd; }
.section--dark h1, .section--dark h2 { color: #fff; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.brand-text { color: var(--brand); }
.gold-text { color: var(--gold); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; } .mt-4 { margin-top: 44px; }
.maxw { max-width: 60ch; }
.mx-auto { margin-inline: auto; }

/* ---- Eyebrow + section heading ---------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-300);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.eyebrow--center { justify-content: center; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 14px;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.section-head > div { max-width: 60ch; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-head .link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-family: var(--font-head); font-weight: 700;
  white-space: nowrap; transition: gap var(--t), color var(--t);
}
.section-head .link-more:hover { color: var(--brand-dark); gap: 11px; }

/* ---- Decorative divider ------------------------------------------------ */
.divider-leaf {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); margin: 0 auto;
}
.divider-leaf::before, .divider-leaf::after {
  content: ""; height: 1px; width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.divider-leaf::after { background: linear-gradient(270deg, transparent, var(--line-2)); }

/* ---- Reveal-on-scroll (added by app.js; respects reduced motion) ------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

[hidden] { display: none !important; }

/* Hide an element on mobile/phone widths */
@media (max-width: 760px) { .hide-on-mobile { display: none !important; } }
