/*
  jagedo-shared.css — JaGedo Marketing Site
  Shared across: index.html (landing) · about.html (about us)
  Source: JaGedo_Brand_Identity_Brief.md
  ----------------------------------------------------------------
  Accessibility note: CTA text is navy-on-orange (not white) — 
  white-on-orange fails WCAG AA (~2.7:1); navy passes (~5:1).
*/

/* ================================================================
   1 — RESET + FONT TOKENS
   ================================================================ */
:root {
  --font-display: 'Poppins', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    'Inter',   -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, select, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.material-symbols-outlined, .ms {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
:focus-visible { outline: 3px solid var(--color-orange); outline-offset: 2px; }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--color-navy); color: #fff;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; z-index: 9999; transition: top 150ms;
}
.skip-link:focus { top: 8px; }
.spacer { flex: 1; }

/* ================================================================
   2 — BRAND TOKENS (JaGedo_Brand_Identity_Brief.md)
   ================================================================ */
:root {
  /* Palette */
  --color-navy:        #1B2A5E;
  --color-navy-deep:   #121D42;
  --color-green:       #8CC63F;
  --color-green-deep:  #6FA22E;
  --color-orange:      #F5821F;
  --color-orange-tint: #FDECDC;
  --color-ink:         #1A1A1A;
  --color-ink-muted:   #5C5E66;
  --color-offwhite:    #F7F7F7;
  --color-outline:     #E2E2E6;

  /* On-colours (accessibility-corrected) */
  --on-navy:   #FFFFFF;
  --on-green:  #1B2A5E;
  --on-orange: #1B2A5E;

  /* Shape */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 9999px;

  /* Spacing (8px base) */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-6: 48px; --sp-8: 64px; --sp-12: 96px;

  /* Elevation */
  --shadow-1: 0 1px 3px rgba(27,42,94,0.08), 0 1px 2px rgba(27,42,94,0.06);
  --shadow-2: 0 6px 18px rgba(27,42,94,0.10);

  /* Motion */
  --dur:  180ms;
  --ease: cubic-bezier(0.2,0,0,1);
}

/* ================================================================
   3 — LAYOUT
   ================================================================ */
:root { --page-max: 1180px; --topbar-h: 76px; --diag: 56px; }

body { background: var(--color-offwhite); color: var(--color-ink); }
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--color-navy); }

/* ================================================================
   4 — BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: var(--r-sm); border: none;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), transform var(--dur), box-shadow var(--dur);
}
.btn .ms { font-size: 20px; }
.btn-cta { background: var(--color-orange); color: var(--on-orange); }
.btn-cta:hover { background: #e37310; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn-outline-navy { background: transparent; color: var(--color-navy); border: 1.5px solid var(--color-navy); }
.btn-outline-navy:hover { background: rgba(27,42,94,0.06); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 15.5px; }

/* ================================================================
   5 — TOP BAR + NAV
   ================================================================ */
.top-bar {
  position: sticky; top: 0; z-index: 500; height: var(--topbar-h);
  background: rgba(247,247,247,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-outline);
  display: flex; align-items: center;
}
.top-bar .container { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
/* brand-mark / brand-lockup / brand-name / brand-tagline — footer only */
.brand-mark {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--color-orange); color: var(--color-navy);
  display: grid; place-items: center; font-size: 22px;
}
.brand-mark .ms { font-variation-settings: 'FILL' 1, 'wght' 500; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--color-navy); }
.brand-tagline { font-size: 10.5px; font-weight: 600; letter-spacing: 0.4px; color: var(--color-ink-muted); }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a {
  font-size: 14px; font-weight: 600; color: var(--color-ink-muted);
  padding: 10px 14px; border-radius: var(--r-sm);
  transition: background var(--dur), color var(--dur);
}
.top-nav a:hover { background: rgba(27,42,94,0.06); color: var(--color-navy); }
.top-nav a.active { background: rgba(27,42,94,0.06); color: var(--color-navy); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ================================================================
   6 — DIAGONAL SECTION SYSTEM
   Signature recurring layout device — solid-colour clip-path.
   Two colours overlapping (diag-a + diag-b) create corner peeks:
   place the backing element behind the main section for the effect.
   ================================================================ */
.diag { position: relative; padding: calc(var(--sp-12) + var(--diag)) 0; overflow: hidden; }
.diag-a { clip-path: polygon(0 var(--diag), 100% 0, 100% calc(100% - var(--diag)), 0 100%); }
.diag-b { clip-path: polygon(0 0, 100% var(--diag), 100% 100%, 0 calc(100% - var(--diag))); }
/* Flat top, diagonal bottom only — used on the about hero */
.diag-top-flat {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%);
  padding-top: var(--sp-12);
}
.diag-navy { background: var(--color-navy); color: #fff; }
.diag-green { background: var(--color-green); color: var(--color-navy); }

/* Diagonal section-head colour overrides */
.diag-navy .section-eyebrow { color: var(--color-green); }
.diag-green .section-eyebrow { color: var(--color-navy-deep); }
.diag .section-head h2 { color: #fff; }
.diag-green .section-head h2 { color: var(--color-navy); }
.diag .section-head p { color: rgba(255,255,255,0.82); }
.diag-green .section-head p { color: rgba(27,42,94,0.78); }

/* ================================================================
   7 — SECTION SHELL
   ================================================================ */
section:not(.diag) { padding: var(--sp-12) 0; }
.section-head { max-width: 640px; margin: 0 auto var(--sp-6); text-align: center; }
.section-eyebrow {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-orange); margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--color-ink-muted); line-height: 1.65; }

/* ================================================================
   8 — IMAGE PLACEHOLDER (replace with real photos before launch)
   ================================================================ */
.img-placeholder {
  border: 1.5px dashed #B9BCC6; border-radius: var(--r-lg);
  background: #EDEDF0; color: var(--color-ink-muted);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; text-align: center; padding: 24px;
}
.img-placeholder .ms { font-size: 32px; opacity: 0.55; }
.img-placeholder .ph-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.img-placeholder .ph-desc { font-size: 12px; max-width: 280px; line-height: 1.55; }

/* ================================================================
   9 — STORE BADGES + FOOTER CTA
   ================================================================ */
.store-badges { display: flex; gap: 14px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: var(--r-sm); padding: 10px 20px; height: 52px;
}
.store-badge .ms { font-size: 26px; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .sb-text small { font-size: 10px; opacity: 0.85; }
.store-badge .sb-text strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.apple-logo { flex-shrink: 0; }
.store-badge-disabled { cursor: default; opacity: 0.7; }

.footer-cta { text-align: center; max-width: 640px; margin: 0 auto; padding-bottom: 48px; }
.footer-cta h2 { color: #fff; font-size: 30px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 14px; }
.footer-cta p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.6; margin-bottom: 32px; }
.footer-cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store-badges.footer-cta-buttons { margin-top: 14px; }
.coming-soon-label {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.55); margin-top: 36px; margin-bottom: 4px;
}
.footer-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 8px 0 44px; }

/* ================================================================
   10 — FOOTER
   Green triangle at top-left painted by ::before within footer's
   own top padding. No wrapper divs; footer is one flat container.
   ================================================================ */
footer {
  background: var(--color-navy-deep); color: #fff;
  padding: calc(var(--sp-12) + var(--diag)) 0 28px;
  position: relative;
}
footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-green);
  clip-path: polygon(0 0, 0 var(--diag), 100% 0);
}
.footer-logo-wrap {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.90); border-radius: var(--r-sm);
  padding: 7px 12px; margin-bottom: 18px;
}
.footer-brand-img { height: 36px; width: auto; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 18px; color: #fff; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: rgba(255,255,255,0.68); margin-bottom: 12px; line-height: 1.65; }
.footer-col a:hover { color: var(--color-green); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  margin-bottom: 0; transition: background var(--dur);
}
.footer-social a:hover { background: var(--color-orange); color: var(--color-navy); }
.footer-social .ms { font-size: 18px; }
.footer-social a svg { width: 18px; height: 18px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ================================================================
   11 — RESPONSIVE: TABLET ≤ 1024px
   ================================================================ */
@media (max-width: 1024px) {
  :root { --diag: 40px; }
  .top-nav { gap: 0; }
  .top-nav a { font-size: 13px; padding: 8px 10px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ================================================================
   12 — RESPONSIVE: MOBILE ≤ 640px
   ================================================================ */
@media (max-width: 640px) {
  :root { --diag: 28px; }
  section:not(.diag) { padding: 64px 0; }
  .diag { padding: calc(64px + var(--diag)) 0; }

  .brand-logo { height: 36px; }

  /* Hamburger drawer */
  .nav-drawer {
    display: none; flex-direction: column;
    position: absolute; top: calc(var(--topbar-h) - 1px); left: 0; right: 0;
    background: var(--color-offwhite); border-bottom: 1px solid var(--color-outline);
    padding: 0 16px 20px; z-index: 499;
    box-shadow: 0 8px 24px rgba(27,42,94,0.10);
  }
  .nav-drawer.open { display: flex; }
  .top-nav { flex-direction: column; gap: 4px; }
  .top-nav a { padding: 12px 14px; font-size: 15px; border-radius: var(--r-sm); color: var(--color-navy); }
  .top-actions {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--color-outline);
  }
  .top-actions .btn { width: 100%; justify-content: center; height: 46px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: none; border: none;
    cursor: pointer; color: var(--color-navy); flex-shrink: 0;
    border-radius: var(--r-sm); transition: background var(--dur);
  }
  .nav-toggle:hover { background: rgba(27,42,94,0.08); }
  .nav-toggle .ms { font-size: 26px; }

  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14.5px; }
  .section-head { margin-bottom: 32px; }

  /* Footer */
  .footer-cta h2 { font-size: 22px; }
  .footer-cta-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .footer-cta-buttons .btn { width: 100%; justify-content: center; }
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: 200px; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (min-width: 641px) {
  .nav-toggle { display: none; }
  .nav-drawer { display: contents; }
}

/* ================================================================
   Hero-specific badge contrast overrides
   Ensure store badges and the 'Coming Soon' label are visible
   on the light hero background (desktop + mobile)
   ================================================================ */
.hero .coming-soon-label {
  color: var(--color-navy);
  margin-top: 20px;
}
.hero .store-badges, .hero .hero-cta-badges {
  display: flex; gap: 12px; margin-top: 8px; align-items: center;
}
.hero .store-badge {
  background: #fff; border: 1px solid var(--color-outline);
  color: var(--color-navy); box-shadow: var(--shadow-1);
}
.hero .store-badge .sb-text small { opacity: 0.8; color: rgba(27,42,94,0.75); }
.hero .store-badge .sb-text strong { color: var(--color-navy); }
.hero .store-badge .ms { color: var(--color-navy); }
.hero .store-badge-disabled { opacity: 0.95; }

@media (max-width: 640px) {
  .hero .store-badges { flex-direction: column; }
  .hero .store-badge { width: 220px; justify-content: center; }
}
