/* ============================================
   WASEEM SALAMA — SHARED DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  /* Palette — Burger King */
  --sand:       #fff8e7;
  --sand-dark:  #ffe8a0;
  --white:      #ffffff;
  --ink:        #3d1a02;
  --ink-70:     #6b3a1f;
  --ink-40:     #c4956a;
  --ink-15:     #f0d9b5;
  --terra:      #d62300;
  --terra-light:#ffd4c2;
  --navy:       #502314;
  --navy-light: #6b3a1f;
  --gold:       #f5a800;

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;

  /* Spacing */
  --nav-h: 68px;
  --page-x: clamp(1.5rem, 5vw, 5rem);
  --max-w: 1240px;
}

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-x);
  background: rgba(255,248,231,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-15);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(28,25,22,0.08); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--terra); font-style: italic; font-weight: 400; }

.nav-menu {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-menu a {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-70);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--ink); background: var(--sand-dark); }
.nav-menu a.active { color: var(--terra); font-weight: 500; }

.nav-contact {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--terra);
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.nav-contact:hover { background: #b01c00; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink); transition: all 0.3s;
}

/* ── PAGE WRAPPER ── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 5rem var(--page-x) 4rem;
  border-bottom: 1px solid var(--ink-15);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sand) 60%, var(--sand-dark) 100%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1;
}
.page-hero-bg.has-image {
  background-size: cover;
  background-position: center;
}
.page-hero.has-image .breadcrumb,
.page-hero.has-image .page-hero-label,
.page-hero.has-image .page-hero-title,
.page-hero.has-image .page-hero-sub { color: #fff; }
.page-hero.has-image .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero.has-image .page-hero-title em { color: #f5a800; }
.page-hero.has-image .page-hero-label { color: rgba(255,255,255,0.7); }
.page-hero-content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.breadcrumb a { color: var(--terra); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
  display: block;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.page-hero-title em { font-style: italic; color: var(--terra); }
.page-hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 560px;
}

/* ── SECTION COMMON ── */
.section {
  padding: 5rem var(--page-x);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--terra);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.section-title em { font-style: italic; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-terra {
  background: var(--terra);
  color: var(--white);
}
.btn-terra:hover { background: #b01c00; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(214,35,0,0.3); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-15);
}
.btn-outline:hover { border-color: var(--terra); color: var(--terra); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--ink-15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28,25,22,0.1);
}

/* ── DIVIDER ── */
.divider {
  width: 100%; height: 1px;
  background: var(--ink-15);
  border: none;
  margin: 0;
}

/* ── TAG / PILL ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--sand-dark);
  color: var(--ink-70);
}
.tag-terra { background: var(--terra-light); color: var(--terra); }
.tag-navy  { background: rgba(27,42,59,0.08); color: var(--navy); }
.tag-gold  { background: rgba(201,151,63,0.12); color: #8a6520; }

/* ── PHOTO PLACEHOLDER ── */
.photo-ph {
  background: linear-gradient(135deg, var(--sand-dark) 0%, var(--ink-15) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  color: var(--ink-40);
}
.photo-ph svg { opacity: 0.35; }
.photo-ph p {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 3rem var(--page-x);
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
}
.footer-logo span { color: var(--terra); font-style: italic; }
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-links {
  display: flex; gap: 1.5rem; list-style: none;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--terra); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  grid-column: 1 / -1;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    padding: 1.5rem var(--page-x) 2rem;
    border-bottom: 1px solid var(--ink-15);
    gap: 0.25rem;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 199;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { font-size: 1rem; padding: 0.75rem 0; border-radius: 0; border-bottom: 1px solid var(--ink-15); }
  .nav-contact { display: none; }
}

/* ── SVG ICONS ── */
.ltp-icon, .wc-icon, .stack-icon, .soft-icon, .cert-icon, .bc-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ltp-icon svg { width: 1.5rem; height: 1.5rem; }
.wc-icon svg  { width: 2rem;   height: 2rem; }
.stack-icon svg { width: 1.25rem; height: 1.25rem; }
.soft-icon svg  { width: 1.75rem; height: 1.75rem; }
.cert-icon svg  { width: 1.4rem;  height: 1.4rem; }
.bc-icon svg    { width: 2.25rem; height: 2.25rem; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
