/*
  ============================================================================
  IDEA Studio website styles
  ============================================================================
  Organization guide:
  1. Font loading
  2. Design tokens / theme variables
  3. Base / element defaults
  4. Layout helpers
  5. Component styles
  6. Responsive adjustments

  Notes for future maintainers:
  - Prefer reusing the color and spacing tokens in :root before adding new ones.
  - Keep selectors shallow. Avoid styling based on brittle HTML nesting.
  - Components are intentionally modular so sections can be moved or reused.
*/

/* ==========================================================================
   Font loading
   ========================================================================== */
@font-face {
  font-family: "Mission Gothic";
  src: url("fonts/mission-gothic/Mission Gothic Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mission Gothic";
  src: url("fonts/mission-gothic/Mission Gothic Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Mission Gothic";
  src: url("fonts/mission-gothic/Mission Gothic Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --cnm-navy: #003a70;
  --cnm-gold: #f6be00;
  --cnm-magenta: #e30563;

  --ink: #152234;
  --muted: #5b6c80;
  --bg: #ffffff;
  --surface-solid: #ffffff;
  --surface-tint: #eff6fd;
  --border: rgba(0, 58, 112, 0.12);

  --shadow-lg: 0 22px 44px rgba(0, 33, 71, 0.12);
  --shadow-md: 0 12px 26px rgba(0, 33, 71, 0.08);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --wrap: 1180px;
}

/* ==========================================================================
   Base / element defaults
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 18%, #ffffff 100%);
  color: var(--ink);
  font-family: "Mission Gothic", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

iframe {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1 {
  margin-top: 0;
  color: var(--surface-solid);
  line-height: 1.08;
}

h2,
h3 {
  margin-top: 0;
  color: var(--cnm-navy);
  line-height: 1.08;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 8vw, 6.4rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  font-weight: 900;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.alt {
  background: linear-gradient(180deg, #f7fbff 0%, #f3f8fd 100%);
}

.about-wrap,
.narrow {
  width: min(860px, 100%);
}

.steps-grid,
.card-grid {
  display: grid;
  gap: 1.2rem;
}

.steps-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================================
   Reusable typography helpers
   ========================================================================== */
.section-label {
  margin: 0 0 0.7rem;
  color: var(--cnm-magenta);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-subhead {
  max-width: 32ch;
  margin: 0 0 0.7rem;
  color: var(--surface-solid);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.lead,
.section-intro,
.feature-copy p,
.step-card p,
.workshop-copy p,
.contact-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

/* ==========================================================================
   Global interactive elements
   ========================================================================== */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  padding: 0.8rem 1rem;
  background: var(--cnm-navy);
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--cnm-magenta), #c80056);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(227, 5, 99, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 58, 112, 0.22);
  color: var(--cnm-navy);
  backdrop-filter: blur(12px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
}

/* ==========================================================================
   Header / hero
   ========================================================================== */
.topbar {
  background: var(--cnm-navy);
  color: #ffffff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
}

.eyebrow,
.topbar-link {
  font-weight: 700;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.9rem 0;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  color: var(--cnm-navy);
  font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(0, 58, 112, 0.1);
  background: var(--surface-tint);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: clip;
}

.simple-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
    url("../header-blur.jpg") center / cover no-repeat;
  transform: scale(1.08);
  filter: saturate(1.04);
}

.hero-simple-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

/* ==========================================================================
   Cards / panels / embeds
   ========================================================================== */
.panel,
.feature-card,
.step-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  box-shadow: var(none);
}

.panel {
  padding: 1.5rem;
}

.about-panel,
.workshop-panel,
.contact-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 253, 0.92));
}

.about-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.feature-card {
  overflow: hidden;
}

.feature-card img,
.workshop-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-copy {
  padding: 1.1rem;
}

.compact .feature-copy {
  padding: 1rem 1rem 1.15rem;
}

.compact .feature-copy h3 {
  font-size: 1.04rem;
}

.step-card {
  padding: 1.35rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cnm-gold), var(--cnm-gold));
  color: #ffffff;
  font-weight: 900;
}

.video-card,
.embed-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  background: #000000;
}

.video-card {
  aspect-ratio: 16 / 9;
}

.video-card iframe,
.embed-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-container {
  position: relative;
  max-width: 860px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-button::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 24px;
  border-style: solid;
  border-width: 16px 0 16px 24px;
  border-color: transparent transparent transparent white;
}

.embed-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
}

.panel-head {
  margin-bottom: 1rem;
}

.single-column {
  margin-top: 1.4rem;
}

.panel.single-column {
  overflow: hidden;
}

.workshop-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.workshop-image {
  padding: 0.7rem;
}

.workshop-image img {
  border-radius: calc(var(--radius-xl) - 10px);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 4px solid var(--cnm-gold);
  background: var(--cnm-navy);
  color: #ffffff;
}

.footer-inner {
  padding: 1.35rem 0;
}

.footer-inner p {
  margin: 0;
  font-weight: 700;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 1080px) {
  .about-panel,
  .workshop-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .four-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .steps-grid,
  .three-up,
  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-simple-inner {
    padding: 4rem 0 3rem;
  }

  h1 {
    max-width: 12ch;
  }

  .steps-grid,
  .three-up,
  .four-up,
  .about-panel,
  .workshop-panel {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .embed-wrap {
    min-height: 260px;
  }
}
