@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --ink:        #14213D;
  --ink-soft:   #3A4664;
  --paper:      #F6F3EC;
  --panel:      #FFFFFF;

  /* navy + gold + orange, lifted from the IMPA B2B header banner */
  --navy:       #0B1C3F;
  --navy-deep:  #060F24;
  --navy-mid:   #16295A;
  --gold-light: #F6DD9B;
  --gold:       #f3b334;
  --brass:      #e6a61d;
  --brass-deep: #da9500;
  --orange:     #E2592B;

  --line:       #E4DECF;
  --good:       #2F6F4E;
  --good-bg:    #E7F1EA;
  --warn:       #9A4B2E;
  --warn-bg:    #F5E7DF;
  --neutral-bg: #EFEBE1;
  --radius:     16px;
}

*{ box-sizing: border-box; }

code, kbd, pre, samp{ font-family: inherit; }

body{
  margin:0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::after {
  position: fixed;
  content: "";
  inset: 0;
  z-index: -1;
  opacity: .08;
  background: url('lines-wave-pattern-bg.png') no-repeat right center;
  background-size: 100% auto;
}

/* Animated, mouse-reactive wave layers painted behind all page content. */
.bg-waves{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Playful "water drop" ripple spawned on click, see interactions.js. */
.click-ripple{
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1px solid rgba(246,221,155,.7);
  background: rgba(246,221,155,.05);
  pointer-events: none;
  z-index: 9999;
  transform: scale(0);
  opacity: .8;
  animation: ripple-pop .7s ease-out forwards;
}
@keyframes ripple-pop{
  0%{ transform: scale(0); opacity: .8; }
  100%{ transform: scale(var(--ripple-scale, 6)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .click-ripple{ animation-duration: .01ms; }
}

/* Full-bleed header banner: edge-to-edge, no side padding.
   A desktop-specific crop can be swapped in later with a
   <picture>/media-query source without touching this rule. */
.brand-banner{
  display:block;
  width:100%;
  height:auto;
}

/* ---- Homepage: just the banner image, centered ---- */
.home-center{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.home-center img{
  display:block;
  width:100%;
  max-width: 640px;
  height:auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(6,15,36,.6);
}

.page{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding: 26px 16px 64px;
}

.wrap{ width:100%; max-width:640px; }
.wide{ width:100%; max-width:1180px; }

.eyebrow{
  text-align:center;
  color: var(--gold-light);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .9;
}

.tagline{
  display:inline-block;
  font-family:'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(217,169,75,.55);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---- The contact card ---- */
.pass{
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(6,15,36,.45), 0 2px 0 rgba(20,33,61,.04);
  overflow: hidden;
  animation: rise .5s ease both;
}

@keyframes rise{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

.pass-head{
  background: var(--navy-deep);
  color: var(--paper);
  padding: 26px 26px 22px;
  position: relative;
  text-align: center;
}

.pass-head .tagline{ margin-bottom: 14px; }

.pass-head h1{
  font-family:'Sora', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 6px;
  padding: 6px 0 10px;
  letter-spacing: .01em;
  color: #edb027;
}

.pass-head .role{
  font-size: 14px;
  color: #D9D2C2;
}

.pass-head .member-id{
  position:absolute;
  top: 26px;
  right: 26px;
  font-family:'Inter', sans-serif;
  font-size: 13px;
  letter-spacing:.04em;
  background: rgba(217,169,75,.14);
  border: 1px solid rgba(217,169,75,.5);
  color: var(--gold-light);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ticket perforation between head and body */
.perf{
  position:relative;
  height: 0;
  border-top: 2px dashed var(--line);
  margin: 0 0;
}
.perf::before, .perf::after{
  content:"";
  position:absolute;
  top:-11px;
  width:22px; height:22px;
  border-radius:50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.perf::before{ left:-11px; }
.perf::after{ right:-11px; }

.pass-body{ padding: 22px 26px 8px; }

.owner-photo{
  text-align:center;
  margin: 0 0 18px;
}
.owner-photo img{
  width: 150px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 3px solid rgba(217,169,75,.5);
  box-shadow: 0 14px 28px -16px rgba(6,15,36,.7);
}

.field{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.field:last-child{ border-bottom:none; }

.field .label{
  font-family:'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 3px;
}

.field .value{
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}
.field .value a{ color: var(--ink-soft); }

.drive-link{
  margin: 18px 26px 4px;
  font-size: 13px;
}
.drive-link a{
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.actions{ padding: 22px 26px 26px; }

.btn{
  display:block;
  width:100%;
  text-align:center;
  padding: 15px 18px;
  border-radius: 10px;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size: 15px;
  text-decoration:none;
  border: none;
  cursor:pointer;
}

.btn-primary{
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 12px 22px -8px rgba(201,152,47,.55);
}
.btn-primary:hover{ background: var(--brass); }

.foot-note{
  text-align:center;
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 16px;
  line-height:1.5;
  opacity:.9;
}

.powered-by{
  text-align:center;
  font-size: 11px;
  color: var(--gold-light);
  margin-top: 22px;
  opacity:.65;
}
.powered-by a{
  color: inherit;
  text-decoration: underline;
}
.powered-by a:hover{ opacity:.85; }

.error-box{
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align:center;
}
.error-box h1{ font-family:'Sora', sans-serif; font-size:22px; margin-top:0; color: var(--ink); }
.error-box p{ color: var(--ink-soft); }
.error-box code{ font-family:'Inter', sans-serif; background: var(--neutral-bg); padding: 2px 6px; border-radius: 4px; }

/* ---- Buttons ---- */
.btn-outline{
  background: transparent;
  border: 1px solid rgba(246,221,155,.55);
  color: var(--gold-light);
}
.btn-outline:hover{ background: rgba(246,221,155,.1); }

/* ---- Directory: grid of all contacts ---- */
.dir-head{
  width:100%;
  color: var(--paper);
  text-align:center;
  margin-bottom: 26px;
}
.dir-head .tagline{ margin-bottom: 14px; }
.dir-head h1{
  font-family:'Sora', sans-serif;
  font-size: clamp(26px, 5vw, 34px);
  margin: 0 0 8px;
  color:#fff;
}
.dir-head p{
  color: var(--gold-light);
  opacity:.85;
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto 22px;
}

.dir-search{
  width:100%;
  max-width: 420px;
  margin: 0 auto;
  display:block;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(246,221,155,.4);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-family:'Inter', sans-serif;
  font-size: 14px;
}
.dir-search::placeholder{ color: rgba(246,236,210,.6); }
.dir-search:focus{ outline:none; border-color: var(--gold-light); background: rgba(255,255,255,.12); }

.directory-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  width:100%;
}

.dir-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background: var(--panel);
  border-radius: 14px;
  border-top: 3px solid var(--gold);
  padding: 20px 20px 18px;
  text-decoration:none;
  color: var(--ink);
  box-shadow: 0 16px 34px -20px rgba(6,15,36,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dir-card:hover{ transform: translateY(-3px); box-shadow: 0 22px 42px -18px rgba(6,15,36,.6); }

.dir-info{
  width:100%;
  min-width:0;
}

.dir-card .dir-id{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size: 10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: var(--brass-deep);
  margin-bottom: 8px;
}
.dir-card h2{
  font-family:'Sora', sans-serif;
  font-size: 19px;
  margin: 0 0 4px;
  color: var(--ink);
}
.dir-card .dir-role{
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  min-height: 16px;
}
.dir-card .dir-contact{
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
  word-break: break-word;
}

.dir-empty, .dir-loading-hint{
  grid-column: 1 / -1;
  text-align:center;
  color: var(--gold-light);
  padding: 40px 0;
  opacity:.8;
}

.dir-count{
  text-align:center;
  font-family:'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing:.06em;
  color: var(--gold-light);
  opacity:.75;
  margin: -6px 0 20px;
}

@media (prefers-reduced-motion: reduce){
  .pass{ animation:none; }
}

/* ---- Mobile responsiveness for the member pass card ---- */
@media (max-width: 480px){
  .page{ padding: 18px 12px 44px; }

  .pass-head{ padding: 22px 18px 18px; }
  .pass-head h1{ font-size: 24px; padding: 4px 0 6px; }
  .pass-head .role{ font-size: 13px; }
  .pass-head .member-id{
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }

  .pass-body{ padding: 18px 18px 4px; }
  .field{ padding: 10px 0; }
  .field .value{ font-size: 14px; }

  .actions{ padding: 18px 18px 22px; }
  .btn{ padding: 13px 16px; font-size: 14px; }

  .dir-search{ padding: 12px 16px; font-size: 13px; }
  .dir-card{ padding: 16px 16px 14px; }
  .directory-grid{ grid-template-columns: 1fr; gap: 14px; }
}
