/* ==========================================================================
   AMEB (Australian Music Examinations Board) - Master Stylesheet
   ========================================================================== */

@charset "UTF-8";

/* --- Font Faces --- */
@font-face {
  font-family: 'Apercu';
  src: url('../fonts/apercu/regular/apercu-regular-pro.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu';
  src: url('../fonts/apercu/medium/apercu-medium-pro.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu';
  src: url('../fonts/apercu/bold/apercu-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/regular/roboto-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/500/roboto-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/700/roboto-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather/regular/merriweather-v21-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather/700/merriweather-v21-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Root Variables --- */
:root {
  --font-primary: 'Apercu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  --color-text-main: #111111;
  --color-text-muted: #555555;
  --color-text-light: #777777;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-gray: #f2f2f2;
  --color-bg-dark: #1a1a1a;
  
  --color-ameb-blue: #0056b3;
  --color-ameb-blue-light: #e3f1ff;
  --color-ameb-coral: #d9381e;
  --color-ameb-coral-light: #feebe8;
  --color-ameb-green: #1b7a42;
  --color-ameb-green-light: #e4f9ea;
  --color-ameb-yellow: #c47d00;
  --color-ameb-yellow-light: #fdf5d6;
  
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  
  --header-height: 84px;
  --topbar-height: 38px;
  
  --container-max: 1320px;
  --container-pad: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.14);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

.h1, h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
.h2, h2 { font-size: 2.25rem; letter-spacing: -0.015em; }
.h3, h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.h4, h4 { font-size: 1.25rem; }
.h5, h5 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #333333;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  border: 1.5px solid #000000;
}

.btn-outline:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-white {
  background-color: #ffffff;
  color: #000000;
}

.btn-white:hover {
  background-color: #f2f2f2;
  transform: translateY(-1px);
}

.btn-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.btn-link::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* --- Top Utility Bar --- */
.topbar {
  background-color: #111111;
  color: #ffffff;
  font-size: 0.8125rem;
  height: var(--topbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-state-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #cccccc;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.topbar-state-btn:hover {
  color: #ffffff;
}

.topbar-state-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.topbar-link {
  color: #cccccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* State selector dropdown modal */
.state-dropdown {
  position: absolute;
  top: 100%;
  left: 24px;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
  padding: 1.25rem;
  width: 320px;
  display: none;
  z-index: 1010;
  border: 1px solid var(--color-border);
}

.state-dropdown.is-open {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

.state-dropdown-title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.state-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.state-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #333333;
}

.state-list a:hover {
  background-color: var(--color-bg-light);
  color: #000000;
  font-weight: 500;
}

/* --- Main Navigation Header --- */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 52px;
  width: auto;
}

/* Primary Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: #111111;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width var(--transition-fast);
}

.nav-item:hover > .nav-link::after {
  width: 100%;
}

.nav-arrow {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Standard Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border-light);
  z-index: 1020;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  color: #333333;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--color-bg-light);
  color: #000000;
  font-weight: 500;
  padding-left: 1.45rem;
}

/* Shop Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 100vw;
  max-width: var(--container-max);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-dropdown);
  padding: 2.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border-light);
  z-index: 1020;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 280px;
  gap: 2rem;
}

.mega-column-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000000;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.4rem;
}

.mega-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mega-link-list a {
  font-size: 0.9rem;
  color: #444444;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mega-link-list a:hover {
  color: #000000;
  font-weight: 500;
  padding-left: 4px;
}

.mega-promo-card {
  background: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.mega-promo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.mega-promo-content {
  padding: 1rem;
}

.mega-promo-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.mega-promo-content p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #111111;
  transition: background-color var(--transition-fast);
}

.search-trigger:hover {
  background-color: var(--color-bg-light);
}

.search-trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #111111;
  transition: background-color var(--transition-fast);
}

.cart-link:hover {
  background-color: var(--color-bg-light);
}

.cart-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1050;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: #000000;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-modal.is-open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.search-container {
  width: 90%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input-wrap svg {
  width: 22px;
  height: 22px;
  fill: var(--color-text-muted);
}

.search-input {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 1.25rem;
  outline: none;
}

.search-close-btn {
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.search-close-btn:hover {
  color: #000000;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.search-popular-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-tag {
  background: var(--color-bg-light);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #333333;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-tag:hover {
  background: #000000;
  color: #ffffff;
}

/* --- Hero Banner Slider --- */
.hero-section {
  position: relative;
  background-color: #f6f6f6;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  min-height: 580px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 580px;
  padding: 3rem 0;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.1));
  transition: transform 0.5s ease;
}

.hero-slide.is-active .hero-image-wrap img {
  transform: scale(1.02);
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  z-index: 10;
}

.hero-controls .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.is-active {
  background-color: #000000;
  width: 32px;
  border-radius: 6px;
}

.hero-nav-arrows {
  display: flex;
  gap: 0.5rem;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-arrow:hover {
  background: #000000;
  color: #ffffff;
  transform: scale(1.05);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Select Your Interest Explorer --- */
.explorer-section {
  padding: 5.5rem 0;
  background-color: #ffffff;
}

.explorer-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.explorer-header h2 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.explorer-header p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* Main Category Tabs */
.explorer-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.explorer-tab-btn {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  background-color: var(--color-bg-light);
  color: #444444;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
}

.explorer-tab-btn .tab-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.explorer-tab-btn[data-category="music"] .tab-badge { background-color: var(--color-ameb-blue); }
.explorer-tab-btn[data-category="speech"] .tab-badge { background-color: var(--color-ameb-coral); }
.explorer-tab-btn[data-category="dance"] .tab-badge { background-color: var(--color-ameb-green); }
.explorer-tab-btn[data-category="award"] .tab-badge { background-color: var(--color-ameb-yellow); }

.explorer-tab-btn.is-active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Sub-filter Bar */
.sub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.sub-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: var(--color-bg-light);
  color: #555555;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: #e8e8e8;
  color: #111111;
}

.filter-pill.is-active {
  background: #111111;
  color: #ffffff;
}

.instrument-search-wrap {
  position: relative;
  min-width: 260px;
}

.instrument-search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.instrument-search-input:focus {
  border-color: #000000;
  background: #ffffff;
}

.instrument-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--color-text-muted);
}

/* Instrument Cards Grid */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.instrument-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem 1rem 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.instrument-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #000000;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.instrument-card:hover {
  transform: translateY(-6px);
  border-color: #000000;
  box-shadow: var(--shadow-md);
}

.instrument-card:hover::before {
  opacity: 1;
}

.instrument-icon-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.instrument-card:hover .instrument-icon-wrap {
  transform: scale(1.12);
}

.instrument-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.instrument-name {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.25rem;
}

.instrument-category {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.instrument-card .card-hover-action {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ameb-blue);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
}

.instrument-card:hover .card-hover-action {
  opacity: 1;
  transform: translateY(0);
}

/* --- Split Spotlight Banner --- */
.spotlight-section {
  background: #faf8f5;
  padding: 6rem 0;
  overflow: hidden;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.spotlight-content h2 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.spotlight-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.spotlight-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 2px;
}

.feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.spotlight-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.spotlight-image-wrap img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

/* --- 3-Step Journey Section --- */
.journey-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.journey-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.journey-header h2 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.journey-step-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 4rem;
  padding: 2.5rem;
  background: var(--color-bg-light);
  border-radius: 20px;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.journey-step-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.journey-step-row.reverse {
  grid-template-columns: 1.1fr 1fr;
}

.journey-step-row.reverse .step-info {
  order: 2;
}

.journey-step-row.reverse .step-graphic {
  order: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.step-badge.step-1 { background-color: #dfface; color: #1b7a42; }
.step-badge.step-2 { background-color: #e3f1ff; color: #0056b3; }
.step-badge.step-3 { background-color: #feebe8; color: #d9381e; }

.step-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step-info p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.step-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-graphic img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  object-fit: cover;
}

/* --- State Branch Offices Directory --- */
.branches-section {
  padding: 5.5rem 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.branches-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.branches-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.branch-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: #000000;
}

.branch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.branch-state {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.branch-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-bg-light);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  color: var(--color-text-muted);
}

.branch-institute {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.branch-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.branch-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333333;
}

.branch-contact-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-text-muted);
}

/* --- Partner Accreditation Bar --- */
.partners-section {
  padding: 4rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.partners-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.partner-logo {
  max-height: 48px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: all var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* --- Indigenous Acknowledgement --- */
.indigenous-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 3rem 0;
  border-bottom: 1px solid #333333;
}

.indigenous-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.indigenous-flags {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.indigenous-flags img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.indigenous-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cccccc;
}

/* --- Newsletter "Get On The List" --- */
.newsletter-section {
  background-color: #000000;
  color: #ffffff;
  padding: 4.5rem 0;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.newsletter-content h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: #bbbbbb;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-input {
  flex: 1;
  background: #ffffff;
  color: #000000;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background: #dddddd;
  transform: translateY(-1px);
}

/* --- Footer --- */
.site-footer {
  background-color: #111111;
  background-image: url('../images/bg-footer.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  color: #ffffff;
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-brand p {
  color: #999999;
  font-size: 0.875rem;
  max-width: 280px;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222222;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon-link:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.social-icon-link:hover svg {
  fill: #000000;
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  transition: fill var(--transition-fast);
}

.footer-col-title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #999999;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #222222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #777777;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #777777;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --- Mobile Drawer Navigation --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85vw;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  z-index: 1040;
  transition: right var(--transition-smooth);
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem 1.5rem;
}

.mobile-drawer.is-open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav-header svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.mobile-nav-item.is-open .mobile-nav-header svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding: 0.5rem 0 1rem 1rem;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-item.is-open .mobile-submenu {
  display: flex;
}

.mobile-submenu a {
  font-size: 0.95rem;
  color: #555555;
}

.mobile-drawer-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1100px) {
  .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-promo-card {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-slide-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem 0;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .spotlight-features {
    text-align: left;
    max-width: 480px;
    margin: 0 auto 2rem auto;
  }
  .spotlight-image-wrap {
    order: -1;
  }
  .journey-step-row, .journey-step-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }
  .journey-step-row.reverse .step-info {
    order: 1;
  }
  .journey-step-row.reverse .step-graphic {
    order: 2;
  }
  .newsletter-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-form {
    max-width: 480px;
    margin: 0 auto;
  }
  .indigenous-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --container-pad: 16px;
    --header-height: 70px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .explorer-header h2, .journey-header h2, .spotlight-content h2 {
    font-size: 2rem;
  }
  .instruments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-form {
    flex-direction: column;
  }
}
