/* =================================================
   NEW CREATION CLEANING — SHARED STYLESHEET
   Linked by all pages. Page-specific styles remain
   in each file's <style> block.
================================================= */

/* =================================================
   DESIGN TOKENS
================================================= */
:root {
  --blue:       #29ABE2;
  --blue-dark:  #1E8FBF;
  --blue-light: #EEF6FB;
  --navy:       #1A2535;
  --navy-mid:   #2C3E52;
  --white:      #FFFFFF;
  --grey-bg:    #F5F9FC;
  --grey-line:  #DDE8EF;
  --text:       #1A2535;
  --text-muted: rgba(26,37,53,0.68);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:    1200px;
  --pad-x:    1.5rem;
  --radius:   8px;
  --shadow:   0 2px 16px rgba(26,37,53,0.08);
  --shadow-md:0 4px 24px rgba(26,37,53,0.12);
  --ease:     0.2s ease;
}

/* =================================================
   RESET & BASE
================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =================================================
   TYPOGRAPHY HELPERS
================================================= */

/* Kill italic on ALL heading emphasis — keep it bold and readable throughout */
h1 em, h2 em, h3 em, h1 .accent, h2 .accent, h3 .accent { font-style: normal; }

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* Signature element: blue left-rule on section h2s */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
  margin-bottom: 1.25rem;
}

.intro {
  font-size: 1.025rem;
  line-height: 1.78;
  color: var(--text-muted);
  max-width: 560px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* =================================================
   PLACEHOLDER IMAGES
================================================= */
.ph {
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}

/* =================================================
   BRAND PANELS
   Designed illustration panels used wherever
   photography will eventually go. Swap the whole
   .ph.brand-panel block for an <img> when real
   photos are available — page height rules on
   `.page-hero-img .ph` etc. keep working.
================================================= */
.ph.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--navy);
  border-radius: var(--radius);
  border: 1px solid rgba(41,171,226,0.18);
  background:
    radial-gradient(circle at 80% 16%, rgba(41,171,226,0.18), transparent 52%),
    radial-gradient(circle at 12% 88%, rgba(41,171,226,0.14), transparent 48%),
    linear-gradient(160deg, #F5FBFE 0%, #E3F2FA 55%, #CFE9F7 100%);
}
/* faint oversized brand marks bleeding off opposite corners */
.ph.brand-panel::before,
.ph.brand-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
}
.ph.brand-panel::before {
  top: -34px; left: -28px;
  width: 150px; height: 150px;
  background: url('/images/ncc_icons/transparent/09_sparkles_group.png') no-repeat center / contain;
}
.ph.brand-panel::after {
  bottom: -44px; right: -36px;
  width: 175px; height: 175px;
  background: url('/images/ncc_icons/transparent/05_bubbles.png') no-repeat center / contain;
}
/* the icon — !important guards defeat container `... img` photo rules */
.ph.brand-panel .bp-icon {
  position: static !important;
  inset: auto !important;
  width: clamp(110px, 40%, 175px) !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 16px 26px rgba(26,37,53,0.16));
  animation: bpFloat 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes bpFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.bp-tag {
  position: relative; z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(41,171,226,0.35);
  border-radius: 100px;
  padding: 0.38rem 1rem;
  margin-top: 0.3rem;
}
.bp-line {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: normal;
  max-width: 320px;
}
@media (prefers-reduced-motion: reduce) {
  .ph.brand-panel .bp-icon { animation: none; }
}

/* =================================================
   BUTTONS
================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.6rem;
  min-height: 44px; /* WCAG touch target */
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover { background: var(--grey-bg); }

/* =================================================
   NAV
================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  border-color: var(--grey-line);
  box-shadow: 0 2px 14px rgba(26,37,53,0.07);
}
.nav-inner {
  max-width: none;
  padding: 0 2.5rem;
  height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  padding: 0.5rem 0; /* ensures 44px tap target height */
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a,
.nav-trigger {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  min-height: 36px; /* desktop — mouse usage, 36px fine */
  border-radius: 6px;
  transition: background var(--ease), color var(--ease);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a:hover,
.nav-trigger:hover { background: var(--blue-light); color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* Dropdown */
.nav-dd-wrap { position: relative; }
.nav-dd {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 196px;
  padding: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-dd.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dd a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 5px;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.nav-dd a:hover { background: var(--blue-light); color: var(--blue); }

.chevron {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ease);
}
.chevron.open { transform: rotate(225deg) translateY(1px); }

/* Hamburger — 44px tap target */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px; /* 10+10+3×2+2×5 = ~36px → with line heights ≥44px */
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--grey-line);
  padding: 0.75rem var(--pad-x) 1.25rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;   /* ≥44px touch target */
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--grey-line);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile-sub { padding-left: 1rem; }
.nav-mobile-sub a { font-size: 0.875rem; color: var(--blue); }
.nav-mobile .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* Nav CTA button */
.nav-cta { flex-shrink: 0; }

/* Focus styles — visible on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =================================================
   FOOTER
================================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 3.75rem var(--pad-x) 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.f-logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.f-logo-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.f-blurb {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.6;
  margin-top: 0.6rem;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
  display: inline-block;
  min-height: 24px; /* desktop footer links */
}
.footer-col ul li a:hover { color: var(--white); }
.contact-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}
.contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =================================================
   MISSION STRIP
================================================= */
.mission {
  background: var(--blue-light);
  border-top: 1px solid rgba(41,171,226,0.18);
  border-bottom: 1px solid rgba(41,171,226,0.18);
  padding: 2.5rem var(--pad-x);
  text-align: center;
}
.mission-inner { max-width: 720px; margin: 0 auto; }
.mission p { font-size: 1rem; line-height: 1.78; color: var(--text); margin-bottom: 1.1rem; }
.mission a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mission a:hover { color: var(--blue-dark); }

/* =================================================
   ICON DECORATIONS
   Brand icons (transparent PNGs) used as floating
   accents and faded watermarks to fill empty space.
   All are decorative only — pointer-events: none.
================================================= */
/* Hero containers anchor their decorations */
.page-hero, .hero { position: relative; }

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
/* height:auto + static defeat any container `... img` rules (e.g. hero photos) */
.deco img {
  display: block;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Large faded brand watermark — bleeds off section edges */
.deco-watermark { z-index: 0; opacity: 0.06; }
.deco-watermark.on-dark { opacity: 0.05; }

/* Floating sparkle accents */
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(var(--deco-rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--deco-rot, 0deg)); }
}
@keyframes decoFloatSm {
  0%, 100% { transform: translateY(0) rotate(var(--deco-rot, 0deg)); }
  50%      { transform: translateY(-8px) rotate(var(--deco-rot, 0deg)); }
}
@keyframes decoTwinkle {
  0%, 100% { opacity: 0.85; transform: scale(1) rotate(var(--deco-rot, 0deg)); }
  50%      { opacity: 0.35; transform: scale(0.88) rotate(var(--deco-rot, 0deg)); }
}
.deco-float   { animation: decoFloat 6s ease-in-out infinite; }
.deco-float-2 { animation: decoFloat 7.5s ease-in-out infinite; animation-delay: -2s; }
.deco-float-sm{ animation: decoFloatSm 5s ease-in-out infinite; }
.deco-twinkle { animation: decoTwinkle 4s ease-in-out infinite; }
.deco-twinkle-2 { animation: decoTwinkle 5.5s ease-in-out infinite; animation-delay: -1.5s; }

@media (prefers-reduced-motion: reduce) {
  .deco-float, .deco-float-2, .deco-float-sm,
  .deco-twinkle, .deco-twinkle-2 { animation: none; }
}

/* Inline contextual icon (e.g. beside a heading or in a badge) */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-chip img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Hide busier decorations on small screens to avoid clutter */
@media (max-width: 768px) {
  .deco-mobile-hide { display: none !important; }
}

/* ---- Site-wide pseudo-element decorations (apply everywhere) ---- */

/* Footer: faint brand swoosh bleeding off the bottom-right corner */
.footer { position: relative; overflow: hidden; }
.footer::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -20px;
  width: 220px; height: 220px;
  background: url('/images/ncc_icons/transparent/11_swoosh_sparkle.png') no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

/* Mission strip: sparkle accents in opposite corners */
.mission { position: relative; overflow: hidden; }
.mission::before,
.mission::after {
  content: '';
  position: absolute;
  width: 54px; height: 54px;
  background: url('/images/ncc_icons/transparent/09_sparkles_group.png') no-repeat center / contain;
  opacity: 0.45;
  pointer-events: none;
}
.mission::before { top: 1.1rem; left: 2.2rem; }
.mission::after  { bottom: 1.1rem; right: 2.2rem; transform: scaleX(-1); }
.mission-inner { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .mission::before, .mission::after { display: none; }
}

/* =================================================
   RESPONSIVE — SHARED BREAKPOINTS
================================================= */
@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; order: -1; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .logo { justify-self: end; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
