﻿/* muhammad-salman.com - shared styles (tokens, base, header, footer, buttons, components) */

:root {
  --blue: #0070CC;
  --blue-dark: #004A7C;
  --dark: #1E1E1E;
  --grey: #D6D6D6;
  --white: #FFFFFF;
  /* Same look the old WordPress site rendered (its web fonts never loaded, so browsers used the system sans-serif) */
  --font-head: Arial, Helvetica, sans-serif;
  --font-text: Arial, Helvetica, sans-serif;
  --shadow-btn: -13px 13px 0 0 var(--grey);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--dark); color: var(--white); padding: 10px 16px; border-radius: 3px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.icon { width: 1em; height: 1em; display: inline-block; fill: currentColor; flex: none; }

/* ---------- Layout helpers ---------- */
.section { padding: 6% 5%; }
.container { max-width: 1280px; margin: 0 auto; }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-dark { background: var(--dark); color: var(--white); }

/* ---------- Typography ---------- */
.title {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  color: var(--dark);
}
.bg-dark .title, .bg-blue .title, .title--light { color: var(--white); }
.title--center { text-align: center; }
.lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.lead--center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 18px 34px;
  border-radius: 3px;
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-btn);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: #000; }
.btn--light { background: var(--white); color: var(--dark); }
.btn--light:hover { background: #f2f2f2; }
.btn--tall { padding-top: 20px; padding-bottom: 20px; }
.btn .icon { font-size: 18px; margin-left: 15px; vertical-align: -2px; }

/* ---------- Social icons ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social--center { justify-content: center; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 33px; height: 33px;
  border: 1px solid var(--white); border-radius: 50%;
  color: var(--white);
  font-size: 15px;
  transition: background-color .3s;
}
.social a:hover { background: var(--dark); }

/* ---------- Header ---------- */
.site-header { background: var(--blue); padding: 10px 65px; position: relative; z-index: 50; }
.site-header__inner {
  max-width: 1280px; margin: 0 auto; min-height: 80px;
  display: flex; align-items: center;
}
.site-header__logo { flex: 0 0 23%; }
.site-header__logo img { width: 295px; max-width: 100%; }
.site-header__cta { flex: 0 0 16.33%; display: flex; justify-content: center; padding-left: 15px; }
.btn--header {
  font-family: var(--font-text);
  font-size: 14px; font-weight: 600; line-height: 14px; letter-spacing: 1px;
  padding: 20px 34px;
  box-shadow: -12px 12px 0 0 var(--grey);
}

.nav { flex: 0 0 60%; display: flex; justify-content: flex-end; }
.nav__toggle {
  display: none;
  width: 50px; padding: 8px 10px; border: 0; border-radius: 4px;
  background: var(--white); color: var(--blue);
}
.nav__toggle-bars { display: block; height: 11px; position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after, .nav__toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--blue);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars span { top: 5px; }
.nav__toggle-bars::after { top: 10px; }
.nav__toggle:hover .nav__toggle-bars::before, .nav__toggle:hover .nav__toggle-bars::after,
.nav__toggle:hover .nav__toggle-bars span { background: rgb(0 0 0 / .5); }
.nav__panel { display: flex; align-items: center; }
.nav__head { display: none; }
.nav__list { display: flex; }
.nav__link {
  display: flex; align-items: center; height: 80px;
  padding: 0 15px;
  font-size: 14px; font-weight: 600; line-height: 23.8px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--white);
  transition: background-color .3s;
}
.nav__link:hover, .nav__link:focus-visible { background: var(--blue); }
.nav__item--mobile { display: none; }
.nav__backdrop { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--white); padding-top: 55px; text-align: center; }
.site-footer__logo { display: block; width: 475px; max-width: 100%; margin: 0 auto; }
.site-footer .social { margin-top: 32px; }
.footer-nav__list { display: flex; justify-content: center; flex-wrap: wrap; }
.footer-nav__link {
  display: flex; align-items: center; height: 110px; padding: 35px 15px 30px;
  font-family: var(--font-head); font-size: 18px; line-height: 30.6px; letter-spacing: 1px;
  color: var(--white); transition: color .3s;
}
.footer-nav__link:hover, .footer-nav__link:focus-visible { color: var(--blue); }
.site-footer__copy { background: var(--blue); padding: 15px 0; font-size: 14px; line-height: 23.8px; }

/* ---------- YouTube lightbox ---------- */
.lightbox {
  width: min(90vw, 1200px); max-width: none; padding: 0; border: 0; background: #000; overflow: visible;
}
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox__frame { position: relative; aspect-ratio: 16 / 9; }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px;
  border: 0; background: none; color: var(--white); font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 5% 140px; }
.notfound__code { font-family: var(--font-head); font-size: 160px; line-height: 1; color: var(--white); }
.notfound .title { margin: 10px 0 20px; }
.notfound p { font-size: 18px; line-height: 28px; letter-spacing: 1px; margin: 0 auto 40px; max-width: 640px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .section { padding: 8% 5%; }
  .title { font-size: 44px; }
  .site-header { padding: 20px 55px; }
  .site-header__inner { min-height: 67px; justify-content: space-between; }
  .site-header__logo { flex: 0 0 40%; display: flex; justify-content: center; }
  .site-header__cta { display: none; }
  .nav { flex: 0 0 auto; }
  .nav__toggle { display: block; }
  .nav__panel {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    width: 100%; max-width: 350px; overflow-y: auto;
    display: block; background: var(--white);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .4s, visibility .4s;
  }
  .nav.is-open .nav__panel { transform: none; visibility: visible; transition: transform .4s, visibility 0s; }
  .nav__head { display: flex; justify-content: flex-end; padding: 0; }
  .nav__close {
    width: 45px; height: 45px; margin: 12px; padding: 8px;
    border: 1px solid var(--white); border-radius: 4px;
    background: var(--blue); color: var(--white); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .nav__close:hover { background: var(--dark); }
  .nav__list { display: block; padding-bottom: 20px; }
  .nav__item--mobile { display: block; }
  .nav__link { height: auto; padding: 10px 15px; color: var(--dark); }
  .nav__link:hover, .nav__link:focus-visible { background: var(--blue); color: var(--white); }
  .nav__backdrop {
    position: fixed; inset: 0; z-index: 90; border: 0; padding: 0;
    background: rgb(0 0 0 / .5);
  }
  .nav.is-open .nav__backdrop { display: block; }
  .site-footer { padding-top: 45px; }
  .footer-nav__list { min-height: 96px; }
  .footer-nav__link { height: 86px; padding: 35px 15px 20px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .section { padding: 15% 4%; }
  .title { font-size: 40px; }
  .lead { line-height: 24px; }
  .site-header { padding: 5px 30px; }
  .site-header__inner { min-height: 48px; }
  .site-header__logo { flex: 0 0 auto; display: block; }
  .site-header__logo img { width: 211px; }
  .site-footer { padding-top: 20px; }
  .site-footer__logo { width: 390px; }
  .site-footer .social { margin: 32px 0 52px; }
  .footer-nav { display: none; }
  .notfound__code { font-size: 110px; }
}
