/* ============================================================
   PYRAMIDE RECORD — COMPONENTS
   Depends on tokens.css
   ============================================================ */

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--crimson);
  --btn-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--crimson-bright); }
.btn:active { transform: translateY(1px); }

.btn--steel {
  --btn-bg: var(--blue);
  --btn-fg: #0B1017;
}
.btn--steel:hover { background: var(--gold-bright); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--blue);
  border-color: var(--gold-dim);
}
.btn--ghost:hover { background: var(--blue); color: #0B1017; border-color: var(--blue); }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: var(--hair-2);
}
.btn--quiet:hover { background: var(--panel-2); border-color: var(--gold-dim); }

.btn--whatsapp {
  --btn-bg: var(--whatsapp-bg);
  --btn-fg: #8FE3C0;
}
.btn--whatsapp:hover { background: #266b4f; }

.btn--lg { padding: 16px 34px; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }
.btn .icon { width: 15px; height: 15px; }

/* text link with underline reveal */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
  padding-bottom: 4px;
}
.link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-dim);
  transform-origin: left;
  transition: background var(--dur-fast) var(--ease);
}
.link:hover::after { background: var(--gold); }
.link .icon { width: 13px; height: 13px; fill: var(--gold); }

/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */
.field { margin-bottom: var(--sp-4); }
.field__label {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: var(--sp-2);
}
.input, .select, .textarea {
  width: 100%;
  background: var(--obsidian);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--bone);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ash); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gold-dim); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62,108,142,0.18);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A79B86' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* chips (payment methods, tags) */
.chip {
  display: inline-block;
  font-size: var(--fs-xs);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--hair-2);
  color: var(--sand);
}
.chip--gold { color: var(--gold); border-color: var(--gold-dim); }

/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card--hover:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.card__icon { width: 24px; height: 24px; fill: var(--gold); margin-bottom: var(--sp-3); }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.card__text { color: var(--sand); font-size: var(--fs-sm); line-height: 1.6; }

/* editorial numbered index row (services, curriculum) */
.index-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--hair);
  transition: padding-left var(--dur) var(--ease);
  cursor: pointer;
}
.index-row:last-child { border-bottom: 1px solid var(--hair); }
.index-row:hover { padding-left: var(--sp-2); }
.index-row__num { font-family: var(--font-display); color: #40536A; font-size: var(--fs-sm); }
.index-row__name { font-size: 21px; }
.index-row__meta { font-size: var(--fs-xs); color: var(--ash); text-align: right; }

/* image placeholder (documented: swap for real photography) */
.ph {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-2);
  color: #3A3226;
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(62,108,142,0.02) 12px, rgba(62,108,142,0.02) 24px);
}
.ph .icon { width: 26px; height: 26px; fill: #33455A; }
.ph small { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-wide); color: #445468; z-index: 1; }

/* metric / stat */
.stat__n { font-family: var(--font-display); font-size: 26px; color: var(--bone); }
.stat--gold .stat__n { color: var(--gold); }
.stat__l { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-label); color: var(--ash); text-transform: uppercase; }

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,14,12,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 40px; width: auto; }
.nav__menu { display: flex; gap: 22px; align-items: center; }
.nav__link {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--sand);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--bone); }
.nav__cta {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__cta:hover { background: var(--blue); color: #0B1017; }
.nav__burger { display: none; background: none; border: 0; color: var(--bone); cursor: pointer; width: 28px; height: 28px; }
.nav__burger svg { width: 26px; height: 26px; stroke: var(--bone); }

@media (max-width: 900px) {
  .nav__menu {
    display: none;
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: var(--sp-4);
    background: var(--obsidian);
    padding: var(--sp-5) var(--gutter);
    border-bottom: 1px solid var(--hair);
  }
  .nav__menu.is-open { display: flex; }
  .nav__burger { display: block; }
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--hair); padding: var(--sp-7) 0 var(--sp-5); }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-5); }
.footer__logo img { height: 44px; width: auto; margin-bottom: var(--sp-3); }
.footer__addr { color: var(--ash); font-size: var(--fs-xs); line-height: 1.7; }
.footer__socials { display: flex; gap: var(--sp-4); }
.footer__socials a { color: var(--sand); transition: color var(--dur-fast) var(--ease); }
.footer__socials a:hover { color: var(--gold); }
.footer__socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__note { text-align: center; color: var(--ash); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-wide); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--hair); }

/* newsletter inline */
.newsletter { display: flex; gap: var(--sp-2); max-width: 420px; margin-top: var(--sp-4); }
.newsletter .input { flex: 1; }

/* ------------------------------------------------------------
   WAVEFORM (signature motif) — animated gold bars
   ------------------------------------------------------------ */
.waveform {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  gap: 3px; padding: var(--sp-2) var(--gutter);
  overflow: hidden;
}
.waveform__bar {
  flex: 1; max-width: 7px;
  background: var(--gold);
  border-radius: 2px;
  transform-origin: center;
  opacity: 0.85;
  animation: waveform-pulse var(--bar-dur, 1.2s) var(--ease) infinite;
}
@keyframes waveform-pulse {
  0%, 100% { transform: scaleY(var(--bar-min, 0.3)); }
  50%      { transform: scaleY(1); }
}

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
/* equalizer logo mark accent */
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq b { width: 3px; height: 100%; background: var(--gold); border-radius: 2px; transform-origin: bottom; display: block; animation: eq 1s var(--ease) infinite; }
.eq b:nth-child(2){ animation-delay: .2s } .eq b:nth-child(3){ animation-delay: .4s } .eq b:nth-child(4){ animation-delay: .15s }
@keyframes eq { 0%,100% { transform: scaleY(.2) } 50% { transform: scaleY(1) } }

/* concentric ripples (quote bands) */
.ripples { position: absolute; top: 50%; left: 50%; width: 140px; height: 140px; transform: translate(-50%,-50%); }
.ripples span { position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 50%; animation: ripple 3s var(--ease-out) infinite; }
.ripples span:nth-child(2){ animation-delay: 1s } .ripples span:nth-child(3){ animation-delay: 2s }
@keyframes ripple { 0% { transform: scale(.3); opacity: .6 } 100% { transform: scale(1.7); opacity: 0 } }

/* scroll reveal (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* quote band */
.quote-band { background: var(--panel); text-align: center; position: relative; overflow: hidden; padding: var(--sp-8) 0; }
.quote-band__text { font-family: var(--font-display); font-style: italic; font-size: clamp(24px,4vw,34px); line-height: 1.35; position: relative; max-width: 600px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .waveform__bar, .eq b, .ripples span { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   RESPONSIVE GRID UTILITIES
   ------------------------------------------------------------ */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 820px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   HEADER REDESIGN — append to the END of css/components.css
   ------------------------------------------------------------
   Builds on the existing .header / .nav / .nav__logo / .nav__link
   / .nav__cta classes already used across every page. Nothing
   here renames or removes existing classes — these rules simply
   layer on top (later in the cascade wins for equal specificity).
   ============================================================ */
 
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 19, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
 
.nav {
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}
 
.nav__logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform var(--dur-fast) var(--ease);
}
 
.nav__logo:hover img {
  transform: scale(1.04);
}
 
.nav__link {
  position: relative;
  padding: 6px 2px;
  transition: color var(--dur-fast) var(--ease);
}
 
.nav__link::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
 
.nav__link:hover {
  color: var(--bone);
}
 
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
 
.nav__cta {
  border-radius: 999px;
  padding: 9px 22px;
  border: 1px solid var(--gold-dim);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
 
.nav__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B1017;
  transform: translateY(-1px);
}
 
@media (max-width: 860px) {
  .nav__logo img {
    height: 36px;
  }
}
 
