/**
 * GIYA homepage — minimalist UX layer
 * Bold Inter typography, larger icons, calm motion
 */

:root {
  --giya-header-h: 4.25rem;
  --giya-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --giya-duration: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --giya-duration: 0.01ms;
  }
  html {
    scroll-behavior: auto;
  }
}

.giya-explore-chip {
  text-decoration: none;
}

body {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
}

/* Sans-first: display headings use Inter bold */
.type-display,
.type-h2,
.font-display {
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
}

.type-h1,
h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Larger impact icons */
.g-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  transition: transform var(--giya-duration) var(--giya-ease);
}

.g-icon-wrap--gold {
  background: #f5f3ee;
  color: #e3c781;
}

.g-icon-wrap--muted {
  background: #f4f5f6;
  color: #374151;
}

/* Hero — split layout + five pillars panel */
.hero-split {
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero-split__copy {
    padding-right: 0.5rem;
  }
}

.hero-pillars-panel {
  background: #fff;
  border: 1px solid rgba(196, 160, 82, 0.22);
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow:
    0 20px 50px -16px rgba(10, 10, 11, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.hero-pillars-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a18745;
  margin: 0;
}

.hero-pillars-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0b;
  margin: 0.35rem 0 0;
}

.hero-pillars-lead {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.35rem 0 1rem;
  line-height: 1.45;
}

.hero-pillars-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid #e5e7eb;
  background: #fafaf9;
  transition:
    transform var(--giya-duration) var(--giya-ease),
    box-shadow var(--giya-duration) var(--giya-ease),
    border-color var(--giya-duration) var(--giya-ease);
}

.hero-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(10, 10, 11, 0.12);
  border-color: rgba(196, 160, 82, 0.35);
}

.hero-pillar-card:hover .hero-pillar-icon {
  transform: scale(1.06);
}

.hero-pillar-card--featured {
  position: relative;
  overflow: hidden;
  border-width: 2px;
  border-color: rgba(212, 179, 104, 0.72);
  background: linear-gradient(135deg, #fffef6 0%, #faf0d4 48%, #f3e4b8 100%);
  box-shadow:
    0 6px 28px -6px rgba(212, 179, 104, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-pillar-card--featured:hover,
.hero-pillar-card--featured:focus-within {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(228, 198, 120, 0.95);
  box-shadow:
    0 14px 36px -8px rgba(212, 179, 104, 0.55),
    0 0 0 1px rgba(255, 252, 235, 0.6) inset;
}

.hero-pillar-name--business {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(105deg, #7a5c18 0%, #c9a03d 42%, #e8c96a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pillar-card--featured .hero-pillar-body p {
  color: #5c4a28;
}

.hero-pillar-card--featured .hero-pillar-link {
  color: #7a5c18;
  font-weight: 800;
}

.hero-pillar-flagship {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  margin: 0;
  text-align: center;
  background: linear-gradient(
    155deg,
    rgba(255, 254, 248, 0.98) 0%,
    rgba(252, 243, 210, 0.99) 55%,
    rgba(245, 228, 170, 0.99) 100%
  );
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.28s var(--giya-ease),
    transform 0.32s var(--giya-ease);
  pointer-events: none;
}

.hero-pillar-card--featured:hover .hero-pillar-flagship,
.hero-pillar-card--featured:focus-within .hero-pillar-flagship {
  opacity: 1;
  transform: scale(1);
}

.hero-pillar-flagship__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7340;
}

.hero-pillar-flagship__title {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.95rem, 3.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

@media (min-width: 1024px) {
  .hero-pillar-card--featured:hover .hero-pillar-flagship__title,
  .hero-pillar-card--featured:focus-within .hero-pillar-flagship__title {
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pillar-flagship {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .hero-pillar-card--featured:hover,
  .hero-pillar-card--featured:focus-within {
    transform: translateY(-2px);
  }
}

.hero-pillar-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform var(--giya-duration) var(--giya-ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 3px 10px -2px rgba(10, 10, 11, 0.15);
}

.hero-pillar-icon--wealth {
  background: linear-gradient(145deg, #f5f3ee 0%, #e8e4dc 100%);
  color: #a88442;
  border: 1px solid rgba(196, 160, 82, 0.25);
}

.hero-pillar-icon--health {
  background: linear-gradient(145deg, #fef7f7 0%, #f5e8e8 100%);
  color: #9b4d4d;
  border: 1px solid rgba(155, 77, 77, 0.15);
}

.hero-pillar-icon--business {
  background: linear-gradient(
    152deg,
    #fff4c8 0%,
    #e8c96a 38%,
    #d4b368 72%,
    #a88442 100%
  );
  color: #1c160a;
  border: 1px solid rgba(212, 179, 104, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 240, 0.85),
    0 6px 18px -2px rgba(212, 179, 104, 0.55);
  font-size: 1.45rem;
}

.hero-pillar-card--featured:hover .hero-pillar-icon--business,
.hero-pillar-card--featured:focus-within .hero-pillar-icon--business {
  transform: scale(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 22px -2px rgba(212, 179, 104, 0.65);
}

.hero-pillar-icon--estate {
  background: linear-gradient(145deg, #f0f4f8 0%, #dce4ec 100%);
  color: #4a5f73;
  border: 1px solid rgba(74, 95, 115, 0.2);
}

.hero-pillar-icon--leadership {
  background: linear-gradient(145deg, #1a1a1c 0%, #0a0a0b 100%);
  color: #d4b368;
  border: 1px solid rgba(212, 179, 104, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 12px -2px rgba(0, 0, 0, 0.35);
}

.hero-pillar-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0a0a0b;
  margin: 0;
  line-height: 1.25;
}

.hero-pillar-body p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

.hero-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a7340;
  text-decoration: none;
}

.hero-pillar-link:hover {
  color: #0a0a0b;
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .hero-pillars {
    margin-top: 0.5rem;
  }

  .hero-pillars-panel {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Buttons — consistent press feedback */
a.touch-target,
button.touch-target {
  transition:
    transform var(--giya-duration) var(--giya-ease),
    background-color var(--giya-duration) var(--giya-ease),
    border-color var(--giya-duration) var(--giya-ease),
    color var(--giya-duration) var(--giya-ease);
}

a.touch-target:active,
button.touch-target:active {
  transform: scale(0.98);
}

/* Homepage accordion (native details) */
.g-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.g-accordion details {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.g-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}

.g-accordion summary::-webkit-details-marker {
  display: none;
}

.g-accordion summary::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #8a7340;
  border-bottom: 2px solid #8a7340;
  transform: rotate(45deg);
  transition: transform var(--giya-duration) var(--giya-ease);
  flex-shrink: 0;
}

.g-accordion details[open] summary::after {
  transform: rotate(-135deg);
}

.g-accordion .g-accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 500;
}

/* Anchor scroll offset for sticky header */
section[id] {
  scroll-margin-top: calc(var(--giya-header-h) + 0.5rem);
}

/* Nav focus path */
header nav a:focus-visible,
header nav button:focus-visible {
  outline: 2px solid #c4a052;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Mobile menu open state */
#mobile-menu:not(.hidden) {
  animation: gMenuIn 0.25s var(--giya-ease);
}

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

/* Floating action hint — assessment CTA */
.g-path-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: #0a0a0b;
  color: #f5f3ee;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.g-path-banner a {
  color: #e8d4a8;
  font-weight: 700;
  text-decoration: none;
}

.g-path-banner a:hover {
  text-decoration: underline;
}

/* Official GIYA logo — brighten metallic gold & lift contrast */
:root {
  /* New official logo asset — light polish only (metallic gold already bold in file) */
  --giya-logo-filter: brightness(1.03) contrast(1.1) saturate(1.12);
  --giya-logo-filter-strong: brightness(1.05) contrast(1.14) saturate(1.18);
  --giya-logo-glow: drop-shadow(0 2px 12px rgba(224, 196, 122, 0.4));
}

.giya-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: var(--giya-logo-filter);
  -webkit-filter: var(--giya-logo-filter);
}

.giya-logo--nav {
  height: 2.28rem;
  width: auto;
  max-width: 7.7rem;
  border-radius: 0.5rem;
}

/* Logo PNG has a dark field — pearl panel on dark UI (headers, footers, hero on navy) */
.giya-logo--on-dark,
.app-header .giya-logo,
.app-header .giya-logo--nav,
.bg-g-black .giya-logo,
.bg-g-black .giya-logo--footer,
.bg-g-ink .giya-logo,
.bg-g-ink .giya-logo--nav,
.hero .giya-logo {
  background: linear-gradient(165deg, #fffdf8 0%, #f5f3ee 55%, #ebe6dc 100%);
  padding: 0.28rem 0.55rem;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 90, 0.75);
  filter: var(--giya-logo-filter-strong) var(--giya-logo-glow);
  -webkit-filter: var(--giya-logo-filter-strong) var(--giya-logo-glow);
}

.giya-logo--hero {
  max-width: min(4.725rem, 27.3vw);
  width: auto;
  height: auto;
  margin: 0 0 1rem;
  border-radius: 0.5rem;
  filter: var(--giya-logo-filter-strong) var(--giya-logo-glow);
  -webkit-filter: var(--giya-logo-filter-strong) var(--giya-logo-glow);
}

.giya-logo--auth {
  max-width: 154px;
  width: 100%;
  border-radius: 0.75rem;
  box-shadow:
    0 8px 32px rgba(10, 10, 11, 0.12),
    0 0 20px rgba(196, 160, 82, 0.15);
  filter: var(--giya-logo-filter-strong) var(--giya-logo-glow);
  -webkit-filter: var(--giya-logo-filter-strong) var(--giya-logo-glow);
}

.giya-logo--footer {
  height: 1.75rem;
  width: auto;
  max-width: 5.6rem;
  border-radius: 0.35rem;
}

.giya-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.giya-brand-link:focus-visible {
  outline: 2px solid #e0c47a;
  outline-offset: 3px;
  border-radius: 0.5rem;
}

/* GIYA Institute — certification ladder & fellows */
.g-cert-step {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 1.5rem;
}

.g-cert-step:last-child {
  padding-bottom: 0;
}

.g-cert-step::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.g-cert-step:last-child::before {
  display: none;
}

.g-cert-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #0a0a0b;
  color: #e0c47a;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .g-cert-step.is-current .g-cert-num — metallic styles at end of file */

.g-fellow-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.g-fellow-card.is-live {
  border-color: rgba(196, 160, 82, 0.45);
  box-shadow: 0 4px 24px rgba(196, 160, 82, 0.12);
}

.g-fellow-card.is-soon {
  opacity: 0.92;
  background: #fafaf9;
}

.g-flywheel-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.g-flywheel-arrow {
  color: #e0c47a;
  font-size: 0.7rem;
  padding-left: 0.5rem;
}

/* ——— Metallic gold buttons (brighter gold, not yellow) ——— */
:root {
  --giya-gold-metallic: linear-gradient(
    152deg,
    #f0e4bc 0%,
    #e2cc8a 14%,
    #d4b56e 32%,
    #c9a456 50%,
    #b89448 68%,
    #d8bc78 84%,
    #edd89c 100%
  );
  --giya-gold-metallic-hover: linear-gradient(
    152deg,
    #f6ecd4 0%,
    #ead498 16%,
    #ddc078 34%,
    #d0b062 52%,
    #c4a458 70%,
    #e2c888 86%,
    #f4e8b4 100%
  );
  --giya-gold-btn-text: #1c160a;
  --giya-gold-btn-border: rgba(150, 115, 55, 0.65);
  --giya-gold-btn-shadow:
    inset 0 1px 0 rgba(255, 252, 240, 0.55),
    inset 0 -1px 0 rgba(120, 90, 40, 0.2),
    0 2px 6px rgba(140, 105, 45, 0.28),
    0 6px 18px rgba(196, 160, 82, 0.22);
}

a.bg-g-gold,
button.bg-g-gold,
a.hover\:bg-g-gold:hover,
button.hover\:bg-g-gold:hover,
a[class*='hover:bg-g-gold']:hover,
button[class*='hover:bg-g-gold']:hover {
  position: relative;
  overflow: hidden;
  background: var(--giya-gold-metallic) !important;
  background-color: #d4b56e !important;
  color: var(--giya-gold-btn-text) !important;
  border: 1px solid var(--giya-gold-btn-border) !important;
  box-shadow: var(--giya-gold-btn-shadow) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-font-smoothing: antialiased;
}

a.bg-g-gold:hover,
button.bg-g-gold:hover,
a.hover\:bg-g-gold:hover,
button.hover\:bg-g-gold:hover,
a[class*='hover:bg-g-gold']:hover,
button[class*='hover:bg-g-gold']:hover {
  background: var(--giya-gold-metallic-hover) !important;
  background-color: #ddc078 !important;
  filter: brightness(1.04);
}

a.bg-g-gold:active,
button.bg-g-gold:active {
  transform: scale(0.98);
  box-shadow:
    inset 0 2px 4px rgba(100, 75, 35, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 4px rgba(140, 105, 45, 0.2) !important;
}

/* Solid gold badges/pills — subtle sheen, not full button treatment */
span.bg-g-gold,
.badge-gold-metallic {
  background: linear-gradient(160deg, #ead498 0%, #d4b56e 55%, #c4a458 100%) !important;
  border: 1px solid rgba(168, 132, 66, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.g-cert-step.is-current .g-cert-num {
  background: var(--giya-gold-metallic) !important;
  color: var(--giya-gold-btn-text) !important;
  border: 1px solid var(--giya-gold-btn-border);
  box-shadow: var(--giya-gold-btn-shadow);
}
