/* =========================================================
FILE: css/components.css
Reusable components: nav, cards, buttons, panels, icon rows.
========================================================= */

/* NAV */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s4);
  padding: 10px 6px 22px;
}
.nav .brand{
  display:flex;
  align-items:center;
  gap: var(--s2);
  font-weight: 600;
  letter-spacing: .2px;
}
.nav .brandDot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(30,107,110,.12);
}
.nav .links{
  display:flex;
  gap: var(--s4);
  font-size: var(--t1);
  color: var(--muted);
}
.nav .links a{
  text-decoration: none;
  opacity: .9;
}
.nav .links a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* CARD */
.card{
  background: rgba(248,245,238,.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* BUTTONS */
.btnRow{
  display:flex;
  gap: var(--s3);
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t1);
  background: rgba(248,245,238,.65);
  transition: transform .12s ease, filter .12s ease;
}
.btn.primary{
  background: var(--accent);
  border-color: rgba(0,0,0,.08);
  color: #fff;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.01); }
.btn:active{ transform: translateY(0px); }

/* SECTION wrapper */
.section{
  margin-top: var(--s6);
  padding: var(--s6);
}
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.sectionHead h2{
  margin:0;
  font-size: var(--t4);
}
.sectionHead .sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--t1);
}

/* Panels inside grids */
.panel{
  background: rgba(248,245,238,.62);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: var(--s5);
  overflow: hidden;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  }
  
}
.panel h3{
  margin: 0 0 var(--s2);
  font-size: var(--t3);
}
.panel p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: var(--t2);
}
/* Icon rows — quiet strip, shared baseline */
.iconRow{
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: flex-end;
  margin-top: auto;         /* <-- key */
  padding-top: var(--s4);   /* replaces the old margin spacing */
  opacity: 0.82;
  position: relative;
  padding-bottom: 6px;
}


/* Make height consistent; width varies naturally */

.iconRow img{
  height: 54px;
  width: auto;
  max-width: 86px;
}


.iconRow{
  position: relative;
  padding-bottom: 6px;
}

.iconRow::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(31,43,43,0.10);
}

@media (max-width: 520px){
  .iconRow{ flex-wrap: wrap; }
}


/* Footer */
.footer{
  margin-top: var(--s6);
  color: rgba(31,43,43,.58);
  font-size: var(--t0);
  text-align: center;
  padding: var(--s4) var(--s2) 0;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #4a4a4a;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.site-footer a:hover {
  border-bottom-color: rgba(0,0,0,0.5);
}

